package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.kw, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1721kw {
    public final C2961y00 a;
    public final Gm0 b;
    public final C0247Jn c;

    public C1721kw(C2961y00 c2961y00, Gm0 gm0) {
        this.a = c2961y00;
        this.b = gm0;
        this.c = new C0247Jn(26, c2961y00, gm0);
    }

    /* JADX WARN: Removed duplicated region for block: B:17:0x005b  */
    /* JADX WARN: Removed duplicated region for block: B:18:0x0077  */
    /* JADX WARN: Removed duplicated region for block: B:20:0x007a  */
    /* JADX WARN: Removed duplicated region for block: B:25:0x00ac  */
    /* JADX WARN: Removed duplicated region for block: B:33:0x00c6  */
    /* JADX WARN: Removed duplicated region for block: B:34:0x00c8  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0016  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:21:0x00a2 -> B:23:0x00a5). Please report as a decompilation issue!!! */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object a(o.C1721kw r7, o.X90 r8, o.C0372Oj r9, o.C2891xG r10, java.lang.Object r11, o.NU r12, o.C0282Kw r13, o.AbstractC0298Lm r14) throws java.lang.Throwable {
        /*
            Method dump skipped, instructions count: 224
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C1721kw.a(o.kw, o.X90, o.Oj, o.xG, java.lang.Object, o.NU, o.Kw, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Code restructure failed: missing block: B:71:0x01b2, code lost:
    
        if (r1 == r10) goto L72;
     */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:58:0x0162  */
    /* JADX WARN: Removed duplicated region for block: B:59:0x0165  */
    /* JADX WARN: Removed duplicated region for block: B:61:0x0168  */
    /* JADX WARN: Removed duplicated region for block: B:65:0x0191  */
    /* JADX WARN: Removed duplicated region for block: B:85:0x01d8  */
    /* JADX WARN: Removed duplicated region for block: B:87:0x01dd  */
    /* JADX WARN: Removed duplicated region for block: B:8:0x0018  */
    /* JADX WARN: Type inference failed for: r2v16 */
    /* JADX WARN: Type inference failed for: r2v3, types: [int] */
    /* JADX WARN: Type inference failed for: r2v6 */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object b(o.C1721kw r24, o.C2891xG r25, java.lang.Object r26, o.NU r27, o.C0282Kw r28, o.AbstractC0298Lm r29) throws java.lang.Throwable {
        /*
            Method dump skipped, instructions count: 483
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C1721kw.b(o.kw, o.xG, java.lang.Object, o.NU, o.Kw, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Removed duplicated region for block: B:17:0x006d  */
    /* JADX WARN: Removed duplicated region for block: B:25:0x009b  */
    /* JADX WARN: Removed duplicated region for block: B:32:0x00d2 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:33:0x00d3  */
    /* JADX WARN: Removed duplicated region for block: B:41:0x00e5  */
    /* JADX WARN: Removed duplicated region for block: B:45:0x0098 A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0017  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:28:0x00c4 -> B:29:0x00ca). Please report as a decompilation issue!!! */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object c(o.C0372Oj r18, o.C2891xG r19, java.lang.Object r20, o.NU r21, o.C0282Kw r22, o.AbstractC0298Lm r23) throws java.io.IOException {
        /*
            Method dump skipped, instructions count: 253
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C1721kw.c(o.Oj, o.xG, java.lang.Object, o.NU, o.Kw, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Removed duplicated region for block: B:8:0x001c  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object d(o.B00 r17, o.AbstractC0298Lm r18) {
        /*
            r16 = this;
            r1 = r16
            r7 = r17
            r0 = r18
            o.Jn r2 = r1.c
            boolean r3 = r0 instanceof o.C1530iw
            if (r3 == 0) goto L1c
            r3 = r0
            o.iw r3 = (o.C1530iw) r3
            int r4 = r3.s
            r5 = -2147483648(0xffffffff80000000, float:-0.0)
            r6 = r4 & r5
            if (r6 == 0) goto L1c
            int r4 = r4 - r5
            r3.s = r4
        L1a:
            r9 = r3
            goto L22
        L1c:
            o.iw r3 = new o.iw
            r3.<init>(r1, r0)
            goto L1a
        L22:
            java.lang.Object r0 = r9.q
            int r3 = r9.s
            r10 = 1
            if (r3 == 0) goto L3f
            if (r3 != r10) goto L37
            o.B00 r2 = r9.p
            o.kw r3 = r9.f588o
            o.IJ.H(r0)     // Catch: java.lang.Throwable -> L33
            return r0
        L33:
            r0 = move-exception
            r7 = r2
            goto Lb6
        L37:
            java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
            java.lang.String r2 = "call to 'resume' before 'invoke' with coroutine"
            r0.<init>(r2)
            throw r0
        L3f:
            o.IJ.H(r0)
            o.xG r0 = r7.d     // Catch: java.lang.Throwable -> L90
            java.lang.Object r3 = r0.b     // Catch: java.lang.Throwable -> L90
            o.S80 r4 = r7.e     // Catch: java.lang.Throwable -> L90
            android.graphics.Bitmap$Config[] r5 = o.AbstractC1345h.a     // Catch: java.lang.Throwable -> L90
            o.Kw r5 = r7.f     // Catch: java.lang.Throwable -> L90
            o.Gm0 r6 = r1.b     // Catch: java.lang.Throwable -> L90
            o.NU r6 = r6.n(r0, r4)     // Catch: java.lang.Throwable -> L90
            int r8 = r6.d     // Catch: java.lang.Throwable -> L90
            o.y00 r11 = r1.a     // Catch: java.lang.Throwable -> L90
            o.Oj r11 = r11.d     // Catch: java.lang.Throwable -> L90
            java.util.List r11 = r11.b     // Catch: java.lang.Throwable -> L90
            int r12 = r11.size()     // Catch: java.lang.Throwable -> L90
            r13 = 0
        L5f:
            if (r13 >= r12) goto L84
            java.lang.Object r14 = r11.get(r13)     // Catch: java.lang.Throwable -> L90
            o.yV r14 = (o.C3001yV) r14     // Catch: java.lang.Throwable -> L90
            java.lang.Object r15 = r14.l     // Catch: java.lang.Throwable -> L90
            o.yf r15 = (o.C3016yf) r15     // Catch: java.lang.Throwable -> L90
            java.lang.Object r14 = r14.m     // Catch: java.lang.Throwable -> L90
            java.lang.Class r14 = (java.lang.Class) r14     // Catch: java.lang.Throwable -> L90
            java.lang.Class r10 = r3.getClass()     // Catch: java.lang.Throwable -> L90
            boolean r10 = r14.isAssignableFrom(r10)     // Catch: java.lang.Throwable -> L90
            if (r10 == 0) goto L80
            java.lang.Object r10 = r15.a(r3, r6)     // Catch: java.lang.Throwable -> L90
            if (r10 == 0) goto L80
            r3 = r10
        L80:
            int r13 = r13 + 1
            r10 = 1
            goto L5f
        L84:
            r10 = r6
            o.xO r6 = r2.t(r0, r3, r10, r5)     // Catch: java.lang.Throwable -> L90
            if (r6 == 0) goto L93
            o.yO r2 = r2.g(r0, r6, r4, r8)     // Catch: java.lang.Throwable -> L90
            goto L94
        L90:
            r0 = move-exception
            r3 = r1
            goto Lb6
        L93:
            r2 = 0
        L94:
            if (r2 == 0) goto L9b
            o.tb0 r0 = o.C0247Jn.u(r7, r0, r6, r2)     // Catch: java.lang.Throwable -> L90
            return r0
        L9b:
            o.wn r11 = r0.n     // Catch: java.lang.Throwable -> L90
            r2 = r0
            o.Wc r0 = new o.Wc     // Catch: java.lang.Throwable -> L90
            r8 = 0
            r4 = r10
            r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8)     // Catch: java.lang.Throwable -> L90
            r9.f588o = r1     // Catch: java.lang.Throwable -> L90
            r9.p = r7     // Catch: java.lang.Throwable -> L90
            r2 = 1
            r9.s = r2     // Catch: java.lang.Throwable -> L90
            java.lang.Object r0 = o.AbstractC1692kh0.T(r11, r0, r9)     // Catch: java.lang.Throwable -> L90
            o.Dn r2 = o.EnumC0091Dn.l
            if (r0 != r2) goto Lb5
            return r2
        Lb5:
            return r0
        Lb6:
            boolean r2 = r0 instanceof java.util.concurrent.CancellationException
            if (r2 != 0) goto Lc3
            o.Gm0 r2 = r3.b
            o.xG r2 = r7.d
            o.Fw r0 = o.Gm0.h(r2, r0)
            return r0
        Lc3:
            throw r0
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C1721kw.d(o.B00, o.Lm):java.lang.Object");
    }
}
