package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.jJ, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1565jJ {
    public static final C1565jJ d = new C1565jJ();
    public final C0688a6 a;
    public final BP b;
    public final C0247Jn c;

    public C1565jJ() {
        C0688a6 c0688a6 = new C0688a6(26);
        BP bp = AbstractC2001nt0.d;
        this.a = c0688a6;
        this.b = bp;
        this.c = new C0247Jn(10);
    }

    /* JADX WARN: Code restructure failed: missing block: B:17:0x0048, code lost:
    
        r0.b = r1.length();
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object a(o.EJ r7, java.lang.String r8) {
        /*
            r6 = this;
            o.a6 r0 = r6.a
            r0.getClass()
            o.Ua0 r0 = new o.Ua0
            r0.<init>(r8)
            o.Ua0 r1 = new o.Ua0
            o.Vm0 r2 = o.Vm0.n
            o.L60 r3 = r7.d()
            r1.<init>(r6, r2, r0, r3)
            java.lang.Object r7 = r1.r(r7)
            java.lang.Object r1 = r0.f
            java.lang.String r1 = (java.lang.String) r1
            int r2 = r0.b
        L1f:
            r3 = -1
            r4 = 10
            if (r2 == r3) goto L48
            int r3 = r1.length()
            if (r2 >= r3) goto L48
            int r3 = r2 + 1
            char r2 = r1.charAt(r2)
            r5 = 32
            if (r2 == r5) goto L46
            if (r2 == r4) goto L46
            r4 = 13
            if (r2 == r4) goto L46
            r4 = 9
            if (r2 != r4) goto L3f
            goto L46
        L3f:
            r0.b = r3
            byte r4 = o.AbstractC0662Zn.k(r2)
            goto L4e
        L46:
            r2 = r3
            goto L1f
        L48:
            int r1 = r1.length()
            r0.b = r1
        L4e:
            r1 = 10
            if (r4 != r1) goto L53
            return r7
        L53:
            java.lang.StringBuilder r7 = new java.lang.StringBuilder
            java.lang.String r1 = "Expected EOF after parsing, but had "
            r7.<init>(r1)
            int r1 = r0.b
            int r1 = r1 + (-1)
            char r8 = r8.charAt(r1)
            r7.append(r8)
            java.lang.String r8 = " instead"
            r7.append(r8)
            java.lang.String r7 = r7.toString()
            r8 = 0
            r1 = 6
            o.Ua0.w(r0, r7, r8, r1)
            r7 = 0
            throw r7
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C1565jJ.a(o.EJ, java.lang.String):java.lang.Object");
    }

    public final String b(EJ ej, Object obj) {
        char[] cArr;
        C1254g2 c1254g2 = new C1254g2(4, false);
        C1976nh c1976nh = C1976nh.n;
        synchronized (c1976nh) {
            C1172f9 c1172f9 = (C1172f9) c1976nh.m;
            cArr = null;
            char[] cArr2 = (char[]) (c1172f9.isEmpty() ? null : c1172f9.removeLast());
            if (cArr2 != null) {
                c1976nh.l -= cArr2.length;
                cArr = cArr2;
            }
        }
        if (cArr == null) {
            cArr = new char[128];
        }
        c1254g2.n = cArr;
        try {
            Vm0 vm0 = Vm0.n;
            C0173Gr[] c0173GrArr = new C0173Gr[Vm0.s.a()];
            this.a.getClass();
            new C0173Gr(new C2160pe(c1254g2), this, vm0, c0173GrArr).k(ej, obj);
            return c1254g2.toString();
        } finally {
            c1254g2.g();
        }
    }
}
