package o;

import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Bp, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0041Bp implements InterfaceC1326gp {
    public final C1055dy a;
    public final C2000nt b;
    public final C0168Gm c;
    public final C2277qp d;
    public int f;
    public C2058oa0 g;
    public final C2062oc0 i;
    public final C2062oc0 l;
    public final C2427sR e = C1884mi0.d();
    public final C0247Jn h = new C0247Jn(4);
    public final C1014dc0 j = new C1014dc0(new C1802lp(this, 1));
    public final C1014dc0 k = new C1014dc0(new C1802lp(this, 0));

    public C0041Bp(C1055dy c1055dy, List list, C2000nt c2000nt, C0168Gm c0168Gm) {
        this.a = c1055dy;
        this.b = c2000nt;
        this.c = c0168Gm;
        InterfaceC0220Im interfaceC0220Im = null;
        this.d = new C2277qp(new C2484t(this, interfaceC0220Im, 5));
        this.i = new C2062oc0(this, list);
        this.l = new C2062oc0(c0168Gm, new C2769w(14, this), new C2105p(this, interfaceC0220Im, 17));
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object c(o.C0041Bp r4, o.AbstractC0298Lm r5) {
        /*
            boolean r0 = r5 instanceof o.C2371rp
            if (r0 == 0) goto L13
            r0 = r5
            o.rp r0 = (o.C2371rp) r0
            int r1 = r0.s
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.s = r1
            goto L18
        L13:
            o.rp r0 = new o.rp
            r0.<init>(r4, r5)
        L18:
            java.lang.Object r5 = r0.q
            int r1 = r0.s
            r2 = 1
            if (r1 == 0) goto L33
            if (r1 != r2) goto L2b
            o.sR r4 = r0.p
            o.Bp r0 = r0.f705o
            o.IJ.H(r5)
            r5 = r4
            r4 = r0
            goto L47
        L2b:
            java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
            java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
            r4.<init>(r5)
            throw r4
        L33:
            o.IJ.H(r5)
            o.sR r5 = r4.e
            r0.f705o = r4
            r0.p = r5
            r0.s = r2
            java.lang.Object r0 = r5.d(r0)
            o.Dn r1 = o.EnumC0091Dn.l
            if (r0 != r1) goto L47
            return r1
        L47:
            r0 = 0
            int r1 = r4.f     // Catch: java.lang.Throwable -> L58
            int r1 = r1 + (-1)
            r4.f = r1     // Catch: java.lang.Throwable -> L58
            if (r1 != 0) goto L5c
            o.oa0 r1 = r4.g     // Catch: java.lang.Throwable -> L58
            if (r1 == 0) goto L5a
            r1.c(r0)     // Catch: java.lang.Throwable -> L58
            goto L5a
        L58:
            r4 = move-exception
            goto L62
        L5a:
            r4.g = r0     // Catch: java.lang.Throwable -> L58
        L5c:
            r5.f(r0)
            o.Oh0 r4 = o.Oh0.a
            return r4
        L62:
            r5.f(r0)
            throw r4
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0041Bp.c(o.Bp, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Can't wrap try/catch for region: R(9:0|2|(2:4|(1:6)(1:7))(0)|8|(8:68|(1:(1:(2:18|19))(3:20|21|22))|13|14|62|(1:64)(1:65)|66|67)(5:23|73|24|(3:26|71|27)(3:37|(1:39)(1:40)|(2:42|(2:44|(1:46))(2:53|54))(2:55|(2:57|58)(2:59|60)))|50)|47|69|48|(1:(0))) */
    /* JADX WARN: Code restructure failed: missing block: B:28:0x0071, code lost:
    
        if (r9 == r6) goto L50;
     */
    /* JADX WARN: Code restructure failed: missing block: B:30:0x0074, code lost:
    
        r8 = r11;
        r11 = r9;
        r9 = r8;
     */
    /* JADX WARN: Code restructure failed: missing block: B:49:0x00b5, code lost:
    
        if (r9 == r6) goto L50;
     */
    /* JADX WARN: Code restructure failed: missing block: B:51:0x00b8, code lost:
    
        r9 = th;
     */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:64:0x00db  */
    /* JADX WARN: Removed duplicated region for block: B:65:0x00df  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX WARN: Type inference failed for: r1v3, types: [o.SC, o.Sb0] */
    /* JADX WARN: Type inference failed for: r1v9, types: [o.SC, o.Sb0] */
    /* JADX WARN: Type inference failed for: r9v9 */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object d(o.C0041Bp r9, o.C1666kP r10, o.AbstractC0298Lm r11) {
        /*
            Method dump skipped, instructions count: 238
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0041Bp.d(o.Bp, o.kP, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object e(o.C0041Bp r4, o.AbstractC0298Lm r5) {
        /*
            boolean r0 = r5 instanceof o.C2561tp
            if (r0 == 0) goto L13
            r0 = r5
            o.tp r0 = (o.C2561tp) r0
            int r1 = r0.s
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.s = r1
            goto L18
        L13:
            o.tp r0 = new o.tp
            r0.<init>(r4, r5)
        L18:
            java.lang.Object r5 = r0.q
            int r1 = r0.s
            r2 = 1
            if (r1 == 0) goto L33
            if (r1 != r2) goto L2b
            o.sR r4 = r0.p
            o.Bp r0 = r0.f734o
            o.IJ.H(r5)
            r5 = r4
            r4 = r0
            goto L47
        L2b:
            java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
            java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
            r4.<init>(r5)
            throw r4
        L33:
            o.IJ.H(r5)
            o.sR r5 = r4.e
            r0.f734o = r4
            r0.p = r5
            r0.s = r2
            java.lang.Object r0 = r5.d(r0)
            o.Dn r1 = o.EnumC0091Dn.l
            if (r0 != r1) goto L47
            return r1
        L47:
            r0 = 0
            int r1 = r4.f     // Catch: java.lang.Throwable -> L5f
            int r1 = r1 + r2
            r4.f = r1     // Catch: java.lang.Throwable -> L5f
            if (r1 != r2) goto L61
            o.Gm r1 = r4.c     // Catch: java.lang.Throwable -> L5f
            o.mp r2 = new o.mp     // Catch: java.lang.Throwable -> L5f
            r3 = 1
            r2.<init>(r4, r0, r3)     // Catch: java.lang.Throwable -> L5f
            r3 = 3
            o.oa0 r1 = o.AbstractC1692kh0.C(r1, r0, r2, r3)     // Catch: java.lang.Throwable -> L5f
            r4.g = r1     // Catch: java.lang.Throwable -> L5f
            goto L61
        L5f:
            r4 = move-exception
            goto L67
        L61:
            r5.f(r0)
            o.Oh0 r4 = o.Oh0.a
            return r4
        L67:
            r5.f(r0)
            throw r4
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0041Bp.e(o.Bp, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Removed duplicated region for block: B:45:0x00c4  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object f(o.C0041Bp r8, boolean r9, o.InterfaceC0220Im r10) {
        /*
            Method dump skipped, instructions count: 210
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0041Bp.f(o.Bp, boolean, o.Im):java.lang.Object");
    }

    /* JADX WARN: Removed duplicated region for block: B:40:0x009f A[Catch: Gn -> 0x005f, TryCatch #1 {Gn -> 0x005f, blocks: (B:19:0x005a, B:54:0x00ff, B:24:0x0068, B:51:0x00e0, B:32:0x0085, B:40:0x009f, B:42:0x00a5, B:36:0x008e, B:48:0x00cd), top: B:80:0x0020 }] */
    /* JADX WARN: Removed duplicated region for block: B:41:0x00a4  */
    /* JADX WARN: Removed duplicated region for block: B:45:0x00bc  */
    /* JADX WARN: Removed duplicated region for block: B:53:0x00fd  */
    /* JADX WARN: Removed duplicated region for block: B:63:0x013e A[Catch: all -> 0x016b, TryCatch #2 {all -> 0x016b, blocks: (B:61:0x012c, B:63:0x013e, B:64:0x0146), top: B:81:0x012c }] */
    /* JADX WARN: Removed duplicated region for block: B:64:0x0146 A[Catch: all -> 0x016b, TRY_LEAVE, TryCatch #2 {all -> 0x016b, blocks: (B:61:0x012c, B:63:0x013e, B:64:0x0146), top: B:81:0x012c }] */
    /* JADX WARN: Removed duplicated region for block: B:67:0x0157  */
    /* JADX WARN: Removed duplicated region for block: B:70:0x015f  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object g(o.C0041Bp r9, boolean r10, o.AbstractC0298Lm r11) {
        /*
            Method dump skipped, instructions count: 388
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0041Bp.g(o.Bp, boolean, o.Lm):java.lang.Object");
    }

    @Override // o.InterfaceC1326gp
    public final Object a(SC sc, AbstractC0298Lm abstractC0298Lm) {
        C1313gi0 c1313gi0 = (C1313gi0) abstractC0298Lm.h().m(ME.K);
        if (c1313gi0 != null) {
            c1313gi0.a(this);
        }
        return AbstractC1692kh0.T(new C1313gi0(c1313gi0, this), new C2484t(this, sc, (InterfaceC0220Im) null), abstractC0298Lm);
    }

    @Override // o.InterfaceC1326gp
    public final InterfaceC2104oz b() {
        return this.d;
    }

    public final InterfaceC1754lI h() {
        return (InterfaceC1754lI) this.k.getValue();
    }

    /* JADX WARN: Code restructure failed: missing block: B:26:0x0063, code lost:
    
        if (r3.g(r0) == r4) goto L27;
     */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object i(o.AbstractC0298Lm r7) throws java.lang.Throwable {
        /*
            r6 = this;
            boolean r0 = r7 instanceof o.C2656up
            if (r0 == 0) goto L13
            r0 = r7
            o.up r0 = (o.C2656up) r0
            int r1 = r0.s
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.s = r1
            goto L18
        L13:
            o.up r0 = new o.up
            r0.<init>(r6, r7)
        L18:
            java.lang.Object r7 = r0.q
            int r1 = r0.s
            r2 = 2
            r3 = 1
            o.Dn r4 = o.EnumC0091Dn.l
            if (r1 == 0) goto L3e
            if (r1 == r3) goto L38
            if (r1 != r2) goto L30
            int r1 = r0.p
            o.Bp r0 = r0.f749o
            o.IJ.H(r7)     // Catch: java.lang.Throwable -> L2e
            goto L66
        L2e:
            r7 = move-exception
            goto L6e
        L30:
            java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
            java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
            r7.<init>(r0)
            throw r7
        L38:
            o.Bp r1 = r0.f749o
            o.IJ.H(r7)
            goto L51
        L3e:
            o.IJ.H(r7)
            o.lI r7 = r6.h()
            r0.f749o = r6
            r0.s = r3
            java.lang.Object r7 = r7.d(r0)
            if (r7 != r4) goto L50
            goto L65
        L50:
            r1 = r6
        L51:
            java.lang.Number r7 = (java.lang.Number) r7
            int r7 = r7.intValue()
            o.oc0 r3 = r1.i     // Catch: java.lang.Throwable -> L69
            r0.f749o = r1     // Catch: java.lang.Throwable -> L69
            r0.p = r7     // Catch: java.lang.Throwable -> L69
            r0.s = r2     // Catch: java.lang.Throwable -> L69
            java.lang.Object r7 = r3.g(r0)     // Catch: java.lang.Throwable -> L69
            if (r7 != r4) goto L66
        L65:
            return r4
        L66:
            o.Oh0 r7 = o.Oh0.a
            return r7
        L69:
            r0 = move-exception
            r5 = r1
            r1 = r7
            r7 = r0
            r0 = r5
        L6e:
            o.Jn r0 = r0.h
            o.g00 r2 = new o.g00
            r2.<init>(r1, r7)
            r0.x(r2)
            throw r7
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0041Bp.i(o.Lm):java.lang.Object");
    }

    public final Object j(AbstractC0298Lm abstractC0298Lm) {
        return ((C1343gy) this.j.getValue()).a(new C2087op(3, (InterfaceC0220Im) null), abstractC0298Lm);
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object k(java.lang.Object r10, boolean r11, o.AbstractC0298Lm r12) {
        /*
            r9 = this;
            boolean r0 = r12 instanceof o.C3131zp
            if (r0 == 0) goto L13
            r0 = r12
            o.zp r0 = (o.C3131zp) r0
            int r1 = r0.r
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.r = r1
            goto L18
        L13:
            o.zp r0 = new o.zp
            r0.<init>(r9, r12)
        L18:
            java.lang.Object r12 = r0.p
            int r1 = r0.r
            r2 = 1
            if (r1 == 0) goto L2f
            if (r1 != r2) goto L27
            o.z10 r10 = r0.f832o
            o.IJ.H(r12)
            goto L56
        L27:
            java.lang.IllegalStateException r10 = new java.lang.IllegalStateException
            java.lang.String r11 = "call to 'resume' before 'invoke' with coroutine"
            r10.<init>(r11)
            throw r10
        L2f:
            o.IJ.H(r12)
            o.z10 r4 = new o.z10
            r4.<init>()
            o.dc0 r12 = r9.j
            java.lang.Object r12 = r12.getValue()
            o.gy r12 = (o.C1343gy) r12
            o.Ap r3 = new o.Ap
            r8 = 0
            r5 = r9
            r6 = r10
            r7 = r11
            r3.<init>(r4, r5, r6, r7, r8)
            r0.f832o = r4
            r0.r = r2
            java.lang.Object r10 = r12.b(r3, r0)
            o.Dn r11 = o.EnumC0091Dn.l
            if (r10 != r11) goto L55
            return r11
        L55:
            r10 = r4
        L56:
            int r10 = r10.l
            java.lang.Integer r11 = new java.lang.Integer
            r11.<init>(r10)
            return r11
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0041Bp.k(java.lang.Object, boolean, o.Lm):java.lang.Object");
    }
}
