package defpackage;

import androidx.credentials.provider.CredentialEntry;
import defpackage.i05;
import defpackage.zo0;
import java.io.EOFException;

/* JADX INFO: loaded from: classes.dex */
final class b15 extends i05 {
    public static final zo0 n;
    public static final zo0 o;
    public static final zo0 p;
    public final uu7 f;
    public final lg0 i;
    public int j;
    public long k;
    public int l;
    public String m;

    static {
        zo0 zo0Var = zo0.d;
        n = zo0.a.c("'\\");
        o = zo0.a.c("\"\\");
        p = zo0.a.c("{}[]:, \n\t\r\f/\\;#=");
        zo0.a.c("\n\r");
        zo0.a.c("*/");
    }

    public b15(uu7 uu7Var) {
        this.b = new int[32];
        this.c = new String[32];
        this.d = new int[32];
        this.j = 0;
        this.f = uu7Var;
        this.i = uu7Var.b;
        ab(6);
    }

    @Override // defpackage.i05
    public final void a() throws EOFException {
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        if (iAn == 3) {
            ab(1);
            this.d[this.a - 1] = 0;
            this.j = 0;
        } else {
            throw new ry4("Expected BEGIN_ARRAY but was " + aa() + " at path " + getPath());
        }
    }

    @Override // defpackage.i05
    public final i05.b aa() throws EOFException {
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        switch (iAn) {
            case 1:
                return i05.b.c;
            case 2:
                return i05.b.d;
            case 3:
                return i05.b.a;
            case 4:
                return i05.b.b;
            case 5:
            case 6:
                return i05.b.j;
            case 7:
                return i05.b.k;
            case 8:
            case 9:
            case 10:
            case 11:
                return i05.b.f;
            case 12:
            case 13:
            case 14:
            case 15:
                return i05.b.e;
            case 16:
            case 17:
                return i05.b.i;
            case 18:
                return i05.b.l;
            default:
                throw new AssertionError();
        }
    }

    @Override // defpackage.i05
    public final int ad(i05.a aVar) throws EOFException {
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        if (iAn < 12 || iAn > 15) {
            return -1;
        }
        if (iAn == 15) {
            return ap(this.m, aVar);
        }
        int iBi = this.f.bi(aVar.b);
        if (iBi != -1) {
            this.j = 0;
            this.c[this.a - 1] = aVar.a[iBi];
            return iBi;
        }
        String str = this.c[this.a - 1];
        String strU = u();
        int iAp = ap(strU, aVar);
        if (iAp == -1) {
            this.j = 15;
            this.m = strU;
            this.c[this.a - 1] = str;
        }
        return iAp;
    }

    @Override // defpackage.i05
    public final void af() throws EOFException {
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        if (iAn == 14) {
            long jAe = this.f.ae(p);
            lg0 lg0Var = this.i;
            if (jAe == -1) {
                jAe = lg0Var.b;
            }
            lg0Var.skip(jAe);
        } else if (iAn == 13) {
            bc(o);
        } else if (iAn == 12) {
            bc(n);
        } else if (iAn != 15) {
            throw new ry4("Expected a name but was " + aa() + " at path " + getPath());
        }
        this.j = 0;
        this.c[this.a - 1] = "null";
    }

    @Override // defpackage.i05
    public final void ah() throws EOFException {
        int i = 0;
        do {
            int iAn = this.j;
            if (iAn == 0) {
                iAn = an();
            }
            if (iAn == 3) {
                ab(1);
            } else if (iAn == 1) {
                ab(3);
            } else {
                if (iAn == 4) {
                    i--;
                    if (i < 0) {
                        throw new ry4("Expected a value but was " + aa() + " at path " + getPath());
                    }
                    this.a--;
                } else if (iAn == 2) {
                    i--;
                    if (i < 0) {
                        throw new ry4("Expected a value but was " + aa() + " at path " + getPath());
                    }
                    this.a--;
                } else {
                    lg0 lg0Var = this.i;
                    if (iAn == 14 || iAn == 10) {
                        long jAe = this.f.ae(p);
                        if (jAe == -1) {
                            jAe = lg0Var.b;
                        }
                        lg0Var.skip(jAe);
                    } else if (iAn == 9 || iAn == 13) {
                        bc(o);
                    } else if (iAn == 8 || iAn == 12) {
                        bc(n);
                    } else if (iAn == 17) {
                        lg0Var.skip(this.l);
                    } else if (iAn == 18) {
                        throw new ry4("Expected a value but was " + aa() + " at path " + getPath());
                    }
                }
                this.j = 0;
            }
            i++;
            this.j = 0;
        } while (i != 0);
        int[] iArr = this.d;
        int i2 = this.a - 1;
        iArr[i2] = iArr[i2] + 1;
        this.c[i2] = "null";
    }

    public final void am() {
        ak("Use JsonReader.setLenient(true) to accept malformed JSON");
        throw null;
    }

    /* JADX WARN: Code restructure failed: missing block: B:135:0x0195, code lost:
    
        if (as(r10) != false) goto L113;
     */
    /* JADX WARN: Code restructure failed: missing block: B:136:0x0197, code lost:
    
        if (r1 != 2) goto L148;
     */
    /* JADX WARN: Code restructure failed: missing block: B:137:0x0199, code lost:
    
        if (r4 == false) goto L148;
     */
    /* JADX WARN: Code restructure failed: missing block: B:139:0x019f, code lost:
    
        if (r8 != Long.MIN_VALUE) goto L141;
     */
    /* JADX WARN: Code restructure failed: missing block: B:140:0x01a1, code lost:
    
        if (r13 == false) goto L148;
     */
    /* JADX WARN: Code restructure failed: missing block: B:142:0x01a5, code lost:
    
        if (r8 != r17) goto L144;
     */
    /* JADX WARN: Code restructure failed: missing block: B:143:0x01a7, code lost:
    
        if (r13 != false) goto L148;
     */
    /* JADX WARN: Code restructure failed: missing block: B:144:0x01a9, code lost:
    
        if (r13 == false) goto L146;
     */
    /* JADX WARN: Code restructure failed: missing block: B:146:0x01ac, code lost:
    
        r8 = -r8;
     */
    /* JADX WARN: Code restructure failed: missing block: B:147:0x01ad, code lost:
    
        r22.k = r8;
        r7.skip(r2);
        r9 = 16;
        r22.j = 16;
     */
    /* JADX WARN: Code restructure failed: missing block: B:148:0x01b8, code lost:
    
        if (r1 == 2) goto L153;
     */
    /* JADX WARN: Code restructure failed: missing block: B:150:0x01bb, code lost:
    
        if (r1 == 4) goto L153;
     */
    /* JADX WARN: Code restructure failed: missing block: B:152:0x01be, code lost:
    
        if (r1 != 7) goto L113;
     */
    /* JADX WARN: Code restructure failed: missing block: B:153:0x01c0, code lost:
    
        r22.l = r2;
        r9 = 17;
        r22.j = 17;
     */
    /* JADX WARN: Removed duplicated region for block: B:172:0x01ed A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:173:0x01ee  */
    /* JADX WARN: Removed duplicated region for block: B:87:0x0115 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:88:0x0116  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final int an() throws EOFException {
        int i;
        String str;
        String str2;
        long j;
        char cK;
        int i2;
        char c;
        int[] iArr = this.b;
        int i3 = this.a - 1;
        int i4 = iArr[i3];
        lg0 lg0Var = this.i;
        if (i4 == 1) {
            iArr[i3] = 2;
        } else if (i4 == 2) {
            int iAt = at(true);
            lg0Var.readByte();
            if (iAt != 44) {
                if (iAt == 59) {
                    am();
                    throw null;
                }
                if (iAt == 93) {
                    this.j = 4;
                    return 4;
                }
                ak("Unterminated array");
                throw null;
            }
        } else {
            if (i4 == 3 || i4 == 5) {
                iArr[i3] = 4;
                if (i4 == 5) {
                    int iAt2 = at(true);
                    lg0Var.readByte();
                    if (iAt2 != 44) {
                        if (iAt2 == 59) {
                            am();
                            throw null;
                        }
                        if (iAt2 == 125) {
                            this.j = 2;
                            return 2;
                        }
                        ak("Unterminated object");
                        throw null;
                    }
                }
                int iAt3 = at(true);
                if (iAt3 == 34) {
                    lg0Var.readByte();
                    this.j = 13;
                    return 13;
                }
                if (iAt3 == 39) {
                    lg0Var.readByte();
                    am();
                    throw null;
                }
                if (iAt3 != 125) {
                    am();
                    throw null;
                }
                if (i4 == 5) {
                    ak("Expected name");
                    throw null;
                }
                lg0Var.readByte();
                this.j = 2;
                return 2;
            }
            if (i4 == 4) {
                iArr[i3] = 5;
                int iAt4 = at(true);
                lg0Var.readByte();
                if (iAt4 != 58) {
                    if (iAt4 != 61) {
                        ak("Expected ':'");
                        throw null;
                    }
                    am();
                    throw null;
                }
            } else if (i4 == 6) {
                iArr[i3] = 7;
            } else {
                if (i4 == 7) {
                    if (at(false) == -1) {
                        this.j = 18;
                        return 18;
                    }
                    am();
                    throw null;
                }
                if (i4 == 8) {
                    throw new IllegalStateException("JsonReader is closed");
                }
            }
        }
        int iAt5 = at(true);
        if (iAt5 == 34) {
            lg0Var.readByte();
            this.j = 9;
            return 9;
        }
        if (iAt5 == 39) {
            am();
            throw null;
        }
        if (iAt5 != 44 && iAt5 != 59) {
            if (iAt5 == 91) {
                lg0Var.readByte();
                this.j = 3;
                return 3;
            }
            if (iAt5 != 93) {
                if (iAt5 == 123) {
                    lg0Var.readByte();
                    this.j = 1;
                    return 1;
                }
                byte bK = lg0Var.k(0L);
                uu7 uu7Var = this.f;
                if (bK == 116 || bK == 84) {
                    i = 5;
                    str2 = CredentialEntry.TRUE_STRING;
                    str = "TRUE";
                } else if (bK == 102 || bK == 70) {
                    i = 6;
                    str2 = CredentialEntry.FALSE_STRING;
                    str = "FALSE";
                } else if (bK == 110 || bK == 78) {
                    i = 7;
                    str2 = "null";
                    str = "NULL";
                } else {
                    j = 0;
                    i = 0;
                    if (i == 0) {
                        return i;
                    }
                    boolean z = true;
                    long j2 = j;
                    char c2 = 0;
                    int i5 = 0;
                    boolean z2 = false;
                    while (true) {
                        int i6 = i5 + 1;
                        if (!uu7Var.g(i6)) {
                            break;
                        }
                        byte bK2 = lg0Var.k(i5);
                        if (bK2 != 43) {
                            if (bK2 == 69 || bK2 == 101) {
                                c = 6;
                                if (c2 != 2 && c2 != 4) {
                                    break;
                                }
                                c2 = 5;
                                i5 = i6;
                            } else if (bK2 == 45) {
                                c = 6;
                                if (c2 == 0) {
                                    c2 = 1;
                                    z2 = true;
                                    i5 = i6;
                                } else {
                                    if (c2 != 5) {
                                        break;
                                    }
                                    c2 = c;
                                    i5 = i6;
                                }
                            } else if (bK2 == 46) {
                                c = 6;
                                if (c2 != 2) {
                                    break;
                                }
                                c2 = 3;
                                i5 = i6;
                            } else {
                                if (bK2 < 48 || bK2 > 57) {
                                    break;
                                }
                                if (c2 == 1 || c2 == 0) {
                                    c = 6;
                                    j2 = -(bK2 - 48);
                                    c2 = 2;
                                } else {
                                    if (c2 == 2) {
                                        if (j2 == j) {
                                            break;
                                        }
                                        long j3 = (10 * j2) - ((long) (bK2 - 48));
                                        z &= j2 > -922337203685477580L || (j2 == -922337203685477580L && j3 < j2);
                                        j2 = j3;
                                    } else if (c2 == 3) {
                                        c2 = 4;
                                    } else {
                                        c = 6;
                                        if (c2 == 5 || c2 == 6) {
                                            c2 = 7;
                                        }
                                    }
                                    c = 6;
                                    i5 = i6;
                                }
                                i5 = i6;
                            }
                            if (i2 == 0) {
                                return i2;
                            }
                            if (as(lg0Var.k(j))) {
                                am();
                                throw null;
                            }
                            ak("Expected value");
                            throw null;
                        }
                        c = 6;
                        if (c2 != 5) {
                            break;
                        }
                        c2 = c;
                        i5 = i6;
                    }
                    i2 = 0;
                    if (i2 == 0) {
                    }
                }
                int length = str2.length();
                j = 0;
                int i7 = 1;
                while (true) {
                    if (i7 < length) {
                        int i8 = i7 + 1;
                        if (!uu7Var.g(i8) || ((cK = lg0Var.k(i7)) != str2.charAt(i7) && cK != str.charAt(i7))) {
                            break;
                        }
                        i7 = i8;
                    } else if (!uu7Var.g(length + 1) || !as(lg0Var.k(length))) {
                        lg0Var.skip(length);
                        this.j = i;
                    }
                }
                i = 0;
                if (i == 0) {
                }
            } else if (i4 == 1) {
                lg0Var.readByte();
                this.j = 4;
                return 4;
            }
        }
        if (i4 == 1 || i4 == 2) {
            am();
            throw null;
        }
        ak("Unexpected value");
        throw null;
    }

    public final int ap(String str, i05.a aVar) {
        int length = aVar.a.length;
        for (int i = 0; i < length; i++) {
            if (str.equals(aVar.a[i])) {
                this.j = 0;
                this.c[this.a - 1] = str;
                return i;
            }
        }
        return -1;
    }

    public final boolean as(int i) {
        if (i == 9 || i == 10 || i == 12 || i == 13 || i == 32) {
            return false;
        }
        if (i != 35) {
            if (i == 44) {
                return false;
            }
            if (i != 47 && i != 61) {
                if (i == 123 || i == 125 || i == 58) {
                    return false;
                }
                if (i != 59) {
                    switch (i) {
                        case 91:
                        case 93:
                            return false;
                        case 92:
                            break;
                        default:
                            return true;
                    }
                }
            }
        }
        am();
        throw null;
    }

    public final int at(boolean z) throws EOFException {
        int i = 0;
        while (true) {
            int i2 = i + 1;
            uu7 uu7Var = this.f;
            if (!uu7Var.g(i2)) {
                if (z) {
                    throw new EOFException("End of input");
                }
                return -1;
            }
            long j = i;
            lg0 lg0Var = this.i;
            byte bK = lg0Var.k(j);
            if (bK != 10 && bK != 32 && bK != 13 && bK != 9) {
                lg0Var.skip(j);
                if (bK == 47) {
                    if (uu7Var.g(2L)) {
                        am();
                        throw null;
                    }
                } else if (bK == 35) {
                    am();
                    throw null;
                }
                return bK;
            }
            i = i2;
        }
    }

    public final String av(zo0 zo0Var) {
        StringBuilder sb = null;
        while (true) {
            long jAe = this.f.ae(zo0Var);
            if (jAe == -1) {
                ak("Unterminated string");
                throw null;
            }
            lg0 lg0Var = this.i;
            if (lg0Var.k(jAe) != 92) {
                if (sb == null) {
                    String strZ = lg0Var.z(jAe, bz0.a);
                    lg0Var.readByte();
                    return strZ;
                }
                sb.append(lg0Var.z(jAe, bz0.a));
                lg0Var.readByte();
                return sb.toString();
            }
            if (sb == null) {
                sb = new StringBuilder();
            }
            sb.append(lg0Var.z(jAe, bz0.a));
            lg0Var.readByte();
            sb.append(az());
        }
    }

    public final String aw() {
        long jAe = this.f.ae(p);
        lg0 lg0Var = this.i;
        if (jAe == -1) {
            return lg0Var.aa();
        }
        lg0Var.getClass();
        return lg0Var.z(jAe, bz0.a);
    }

    public final char az() throws EOFException {
        int i;
        uu7 uu7Var = this.f;
        if (!uu7Var.g(1L)) {
            ak("Unterminated escape sequence");
            throw null;
        }
        lg0 lg0Var = this.i;
        byte b = lg0Var.readByte();
        if (b == 10 || b == 34 || b == 39 || b == 47 || b == 92) {
            return (char) b;
        }
        if (b == 98) {
            return '\b';
        }
        if (b == 102) {
            return '\f';
        }
        if (b == 110) {
            return '\n';
        }
        if (b == 114) {
            return '\r';
        }
        if (b == 116) {
            return '\t';
        }
        if (b != 117) {
            ak("Invalid escape sequence: \\" + ((char) b));
            throw null;
        }
        if (!uu7Var.g(4L)) {
            throw new EOFException("Unterminated escape sequence at path " + getPath());
        }
        char c = 0;
        for (int i2 = 0; i2 < 4; i2++) {
            byte bK = lg0Var.k(i2);
            char c2 = (char) (c << 4);
            if (bK >= 48 && bK <= 57) {
                i = bK - 48;
            } else if (bK >= 97 && bK <= 102) {
                i = bK - 87;
            } else {
                if (bK < 65 || bK > 70) {
                    ak("\\u".concat(lg0Var.z(4L, bz0.a)));
                    throw null;
                }
                i = bK - 55;
            }
            c = (char) (i + c2);
        }
        lg0Var.skip(4L);
        return c;
    }

    @Override // defpackage.i05
    public final void b() throws EOFException {
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        if (iAn == 1) {
            ab(3);
            this.j = 0;
        } else {
            throw new ry4("Expected BEGIN_OBJECT but was " + aa() + " at path " + getPath());
        }
    }

    public final void bc(zo0 zo0Var) throws EOFException {
        while (true) {
            long jAe = this.f.ae(zo0Var);
            if (jAe == -1) {
                ak("Unterminated string");
                throw null;
            }
            lg0 lg0Var = this.i;
            if (lg0Var.k(jAe) != 92) {
                lg0Var.skip(jAe + 1);
                return;
            } else {
                lg0Var.skip(jAe + 1);
                az();
            }
        }
    }

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public final void close() {
        this.j = 0;
        this.b[0] = 8;
        this.a = 1;
        this.i.a();
        this.f.close();
    }

    @Override // defpackage.i05
    public final void d() throws EOFException {
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        if (iAn != 4) {
            throw new ry4("Expected END_ARRAY but was " + aa() + " at path " + getPath());
        }
        int i = this.a;
        this.a = i - 1;
        int[] iArr = this.d;
        int i2 = i - 2;
        iArr[i2] = iArr[i2] + 1;
        this.j = 0;
    }

    @Override // defpackage.i05
    public final void h() throws EOFException {
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        if (iAn != 2) {
            throw new ry4("Expected END_OBJECT but was " + aa() + " at path " + getPath());
        }
        int i = this.a;
        int i2 = i - 1;
        this.a = i2;
        this.c[i2] = null;
        int[] iArr = this.d;
        int i3 = i - 2;
        iArr[i3] = iArr[i3] + 1;
        this.j = 0;
    }

    @Override // defpackage.i05
    public final boolean k() throws EOFException {
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        return (iAn == 2 || iAn == 4 || iAn == 18) ? false : true;
    }

    @Override // defpackage.i05
    public final boolean l() throws EOFException {
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        if (iAn == 5) {
            this.j = 0;
            int[] iArr = this.d;
            int i = this.a - 1;
            iArr[i] = iArr[i] + 1;
            return true;
        }
        if (iAn == 6) {
            this.j = 0;
            int[] iArr2 = this.d;
            int i2 = this.a - 1;
            iArr2[i2] = iArr2[i2] + 1;
            return false;
        }
        throw new ry4("Expected a boolean but was " + aa() + " at path " + getPath());
    }

    @Override // defpackage.i05
    public final double n() throws gz4, EOFException {
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        if (iAn == 16) {
            this.j = 0;
            int[] iArr = this.d;
            int i = this.a - 1;
            iArr[i] = iArr[i] + 1;
            return this.k;
        }
        if (iAn == 17) {
            long j = this.l;
            lg0 lg0Var = this.i;
            lg0Var.getClass();
            this.m = lg0Var.z(j, bz0.a);
        } else if (iAn == 9) {
            this.m = av(o);
        } else if (iAn == 8) {
            this.m = av(n);
        } else if (iAn == 10) {
            this.m = aw();
        } else if (iAn != 11) {
            throw new ry4("Expected a double but was " + aa() + " at path " + getPath());
        }
        this.j = 11;
        try {
            double d = Double.parseDouble(this.m);
            if (Double.isNaN(d) || Double.isInfinite(d)) {
                throw new gz4("JSON forbids NaN and infinities: " + d + " at path " + getPath());
            }
            this.m = null;
            this.j = 0;
            int[] iArr2 = this.d;
            int i2 = this.a - 1;
            iArr2[i2] = iArr2[i2] + 1;
            return d;
        } catch (NumberFormatException unused) {
            throw new ry4("Expected a double but was " + this.m + " at path " + getPath());
        }
    }

    @Override // defpackage.i05
    public final int p() throws EOFException {
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        if (iAn == 16) {
            long j = this.k;
            int i = (int) j;
            if (j == i) {
                this.j = 0;
                int[] iArr = this.d;
                int i2 = this.a - 1;
                iArr[i2] = iArr[i2] + 1;
                return i;
            }
            throw new ry4("Expected an int but was " + this.k + " at path " + getPath());
        }
        if (iAn == 17) {
            long j2 = this.l;
            lg0 lg0Var = this.i;
            lg0Var.getClass();
            this.m = lg0Var.z(j2, bz0.a);
        } else if (iAn == 9 || iAn == 8) {
            String strAv = iAn == 9 ? av(o) : av(n);
            this.m = strAv;
            try {
                int i3 = Integer.parseInt(strAv);
                this.j = 0;
                int[] iArr2 = this.d;
                int i4 = this.a - 1;
                iArr2[i4] = iArr2[i4] + 1;
                return i3;
            } catch (NumberFormatException unused) {
            }
        } else if (iAn != 11) {
            throw new ry4("Expected an int but was " + aa() + " at path " + getPath());
        }
        this.j = 11;
        try {
            double d = Double.parseDouble(this.m);
            int i5 = (int) d;
            if (i5 != d) {
                throw new ry4("Expected an int but was " + this.m + " at path " + getPath());
            }
            this.m = null;
            this.j = 0;
            int[] iArr3 = this.d;
            int i6 = this.a - 1;
            iArr3[i6] = iArr3[i6] + 1;
            return i5;
        } catch (NumberFormatException unused2) {
            throw new ry4("Expected an int but was " + this.m + " at path " + getPath());
        }
    }

    public final String toString() {
        return "JsonReader(" + this.f + ")";
    }

    @Override // defpackage.i05
    public final String u() throws EOFException {
        String strAv;
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        if (iAn == 14) {
            strAv = aw();
        } else if (iAn == 13) {
            strAv = av(o);
        } else if (iAn == 12) {
            strAv = av(n);
        } else {
            if (iAn != 15) {
                throw new ry4("Expected a name but was " + aa() + " at path " + getPath());
            }
            strAv = this.m;
        }
        this.j = 0;
        this.c[this.a - 1] = strAv;
        return strAv;
    }

    @Override // defpackage.i05
    public final String w() throws EOFException {
        String strZ;
        int iAn = this.j;
        if (iAn == 0) {
            iAn = an();
        }
        if (iAn == 10) {
            strZ = aw();
        } else if (iAn == 9) {
            strZ = av(o);
        } else if (iAn == 8) {
            strZ = av(n);
        } else if (iAn == 11) {
            strZ = this.m;
            this.m = null;
        } else if (iAn == 16) {
            strZ = Long.toString(this.k);
        } else {
            if (iAn != 17) {
                throw new ry4("Expected a string but was " + aa() + " at path " + getPath());
            }
            long j = this.l;
            lg0 lg0Var = this.i;
            lg0Var.getClass();
            strZ = lg0Var.z(j, bz0.a);
        }
        this.j = 0;
        int[] iArr = this.d;
        int i = this.a - 1;
        iArr[i] = iArr[i] + 1;
        return strZ;
    }
}
