package defpackage;

import com.squareup.moshi.JsonDataException;
import com.squareup.moshi.JsonEncodingException;
import java.io.Closeable;
import java.io.EOFException;
import java.io.IOException;
import java.util.Arrays;

/* renamed from: ᵵᵽᵲᵹ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4760 implements Closeable {

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public static final C2185 f17678;

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public static final C2185 f17679;

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public static final C2185 f17680;

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public static final C2185 f17681;

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public static final C2185 f17682;

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public String f17684;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public int f17685;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public long f17686;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final C0963 f17687;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final InterfaceC4777 f17689;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public int f17690;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public int[] f17688 = new int[32];

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public String[] f17692 = new String[32];

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public int[] f17691 = new int[32];

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public int f17683 = 0;

    static {
        C2185 c2185 = new C2185("'\\".getBytes(AbstractC2356.f9221));
        c2185.f8600 = "'\\";
        f17680 = c2185;
        C2185 c21852 = new C2185("\"\\".getBytes(AbstractC2356.f9221));
        c21852.f8600 = "\"\\";
        f17679 = c21852;
        C2185 c21853 = new C2185("{}[]:, \n\t\r\f/\\;#=".getBytes(AbstractC2356.f9221));
        c21853.f8600 = "{}[]:, \n\t\r\f/\\;#=";
        f17682 = c21853;
        C2185 c21854 = new C2185("\n\r".getBytes(AbstractC2356.f9221));
        c21854.f8600 = "\n\r";
        f17678 = c21854;
        C2185 c21855 = new C2185("*/".getBytes(AbstractC2356.f9221));
        c21855.f8600 = "*/";
        f17681 = c21855;
    }

    public C4760(InterfaceC4777 interfaceC4777) {
        if (interfaceC4777 == null) {
            C1260.m3813("source == null");
            throw null;
        }
        this.f17689 = interfaceC4777;
        this.f17687 = interfaceC4777.mo3263();
        m10061(6);
    }

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public final void close() throws IOException {
        this.f17683 = 0;
        this.f17688[0] = 8;
        this.f17690 = 1;
        this.f17687.m3277();
        this.f17689.close();
    }

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

    /* renamed from: ʽᵢˊ, reason: contains not printable characters */
    public final void m10044(C2185 c2185) throws EOFException, JsonEncodingException {
        while (true) {
            long jMo3281 = this.f17689.mo3281(c2185);
            if (jMo3281 == -1) {
                m10046("Unterminated string");
                throw null;
            }
            C0963 c0963 = this.f17687;
            if (c0963.m3267(jMo3281) != 92) {
                c0963.skip(jMo3281 + 1);
                return;
            } else {
                c0963.skip(jMo3281 + 1);
                m10063();
            }
        }
    }

    /* renamed from: ʾᵻᵭٴ, reason: contains not printable characters */
    public final void m10045() {
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        if (iM10056 != 7) {
            C0910.m3051("Expected null but was ", AbstractC3915.m8584(m10070()), m10050());
            return;
        }
        this.f17683 = 0;
        int[] iArr = this.f17691;
        int i = this.f17690 - 1;
        iArr[i] = iArr[i] + 1;
    }

    /* renamed from: ʿᵘˆ, reason: contains not printable characters */
    public final void m10046(String str) throws JsonEncodingException {
        throw new JsonEncodingException(str + " at path " + m10050());
    }

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public final boolean m10047() throws EOFException, JsonEncodingException {
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        return (iM10056 == 2 || iM10056 == 4 || iM10056 == 18) ? false : true;
    }

    /* renamed from: ˆᵴᵜˏ, reason: contains not printable characters */
    public final String m10048() {
        long jMo3281 = this.f17689.mo3281(f17682);
        C0963 c0963 = this.f17687;
        if (jMo3281 == -1) {
            return c0963.m3254();
        }
        c0963.getClass();
        return c0963.m3292(jMo3281, AbstractC2356.f9221);
    }

    /* renamed from: ˊʽˎ, reason: contains not printable characters */
    public final int m10049() throws NumberFormatException, EOFException, JsonEncodingException {
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        if (iM10056 == 16) {
            long j = this.f17686;
            int i = (int) j;
            if (j == i) {
                this.f17683 = 0;
                int[] iArr = this.f17691;
                int i2 = this.f17690 - 1;
                iArr[i2] = iArr[i2] + 1;
                return i;
            }
            throw new JsonDataException("Expected an int but was " + this.f17686 + " at path " + m10050());
        }
        if (iM10056 == 17) {
            long j2 = this.f17685;
            C0963 c0963 = this.f17687;
            c0963.getClass();
            this.f17684 = c0963.m3292(j2, AbstractC2356.f9221);
        } else if (iM10056 == 9 || iM10056 == 8) {
            String strM10069 = iM10056 == 9 ? m10069(f17679) : m10069(f17680);
            this.f17684 = strM10069;
            try {
                int i3 = Integer.parseInt(strM10069);
                this.f17683 = 0;
                int[] iArr2 = this.f17691;
                int i4 = this.f17690 - 1;
                iArr2[i4] = iArr2[i4] + 1;
                return i3;
            } catch (NumberFormatException unused) {
            }
        } else if (iM10056 != 11) {
            C0910.m3051("Expected an int but was ", AbstractC3915.m8584(m10070()), m10050());
            return 0;
        }
        this.f17683 = 11;
        try {
            double d = Double.parseDouble(this.f17684);
            int i5 = (int) d;
            if (i5 != d) {
                C0910.m3051("Expected an int but was ", this.f17684, m10050());
                return 0;
            }
            this.f17684 = null;
            this.f17683 = 0;
            int[] iArr3 = this.f17691;
            int i6 = this.f17690 - 1;
            iArr3[i6] = iArr3[i6] + 1;
            return i5;
        } catch (NumberFormatException unused2) {
            C0910.m3051("Expected an int but was ", this.f17684, m10050());
            return 0;
        }
    }

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public final String m10050() {
        return ˆᴵ.ᵯٴᵦ(this.f17690, this.f17688, this.f17692, this.f17691);
    }

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public final void m10051() throws JsonEncodingException {
        m10046("Use JsonReader.setLenient(true) to accept malformed JSON");
        throw null;
    }

    /* renamed from: ˎᵬˀ, reason: contains not printable characters */
    public final String m10052() throws EOFException, JsonEncodingException {
        String strM10069;
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        if (iM10056 == 14) {
            strM10069 = m10048();
        } else if (iM10056 == 13) {
            strM10069 = m10069(f17679);
        } else if (iM10056 == 12) {
            strM10069 = m10069(f17680);
        } else {
            if (iM10056 != 15) {
                C0910.m3051("Expected a name but was ", AbstractC3915.m8584(m10070()), m10050());
                return null;
            }
            strM10069 = this.f17684;
            this.f17684 = null;
        }
        this.f17683 = 0;
        this.f17692[this.f17690 - 1] = strM10069;
        return strM10069;
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final void m10053() throws EOFException, JsonEncodingException {
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        if (iM10056 != 1) {
            C0910.m3051("Expected BEGIN_OBJECT but was ", AbstractC3915.m8584(m10070()), m10050());
        } else {
            m10061(3);
            this.f17683 = 0;
        }
    }

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public final int m10054(String str, ᵶˉᵹʣ r6) {
        int length = ((String[]) r6.ᵢˇᵭ).length;
        for (int i = 0; i < length; i++) {
            if (str.equals(((String[]) r6.ᵢˇᵭ)[i])) {
                this.f17683 = 0;
                int[] iArr = this.f17691;
                int i2 = this.f17690 - 1;
                iArr[i2] = iArr[i2] + 1;
                return i;
            }
        }
        return -1;
    }

    /* renamed from: ᵛˈᵤ, reason: contains not printable characters */
    public final boolean m10055(int i) throws JsonEncodingException {
        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;
                    }
                }
            }
        }
        m10051();
        return false;
    }

    /* JADX WARN: Code restructure failed: missing block: B:138:0x01ad, code lost:
    
        if (m10055(r14) != false) goto L119;
     */
    /* JADX WARN: Code restructure failed: missing block: B:139:0x01af, code lost:
    
        if (r4 != 2) goto L151;
     */
    /* JADX WARN: Code restructure failed: missing block: B:140:0x01b1, code lost:
    
        if (r5 == false) goto L151;
     */
    /* JADX WARN: Code restructure failed: missing block: B:142:0x01b7, code lost:
    
        if (r8 != Long.MIN_VALUE) goto L144;
     */
    /* JADX WARN: Code restructure failed: missing block: B:143:0x01b9, code lost:
    
        if (r2 == false) goto L151;
     */
    /* JADX WARN: Code restructure failed: missing block: B:145:0x01bd, code lost:
    
        if (r8 != r16) goto L147;
     */
    /* JADX WARN: Code restructure failed: missing block: B:146:0x01bf, code lost:
    
        if (r2 != false) goto L151;
     */
    /* JADX WARN: Code restructure failed: missing block: B:147:0x01c1, code lost:
    
        if (r2 == false) goto L149;
     */
    /* JADX WARN: Code restructure failed: missing block: B:149:0x01c4, code lost:
    
        r8 = -r8;
     */
    /* JADX WARN: Code restructure failed: missing block: B:150:0x01c5, code lost:
    
        r24.f17686 = r8;
        r11.skip(r1);
        r10 = 16;
        r24.f17683 = 16;
     */
    /* JADX WARN: Code restructure failed: missing block: B:151:0x01d0, code lost:
    
        if (r4 == 2) goto L156;
     */
    /* JADX WARN: Code restructure failed: missing block: B:153:0x01d3, code lost:
    
        if (r4 == 4) goto L156;
     */
    /* JADX WARN: Code restructure failed: missing block: B:155:0x01d6, code lost:
    
        if (r4 != 7) goto L119;
     */
    /* JADX WARN: Code restructure failed: missing block: B:156:0x01d8, code lost:
    
        r24.f17685 = r1;
        r10 = 17;
        r24.f17683 = 17;
     */
    /* JADX WARN: Removed duplicated region for block: B:175:0x01ff A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:176:0x0200  */
    /* JADX WARN: Removed duplicated region for block: B:93:0x0132 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:94:0x0133  */
    /* renamed from: ᵞʡ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final int m10056() throws java.io.EOFException, com.squareup.moshi.JsonEncodingException {
        /*
            Method dump skipped, instructions count: 702
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C4760.m10056():int");
    }

    /* renamed from: ᵠᵪˀᵻ, reason: contains not printable characters */
    public final void m10057() throws EOFException, JsonEncodingException {
        int i = 0;
        do {
            int iM10056 = this.f17683;
            if (iM10056 == 0) {
                iM10056 = m10056();
            }
            if (iM10056 == 3) {
                m10061(1);
            } else if (iM10056 == 1) {
                m10061(3);
            } else {
                if (iM10056 == 4) {
                    i--;
                    if (i < 0) {
                        C0910.m3051("Expected a value but was ", AbstractC3915.m8584(m10070()), m10050());
                        return;
                    }
                    this.f17690--;
                } else if (iM10056 == 2) {
                    i--;
                    if (i < 0) {
                        C0910.m3051("Expected a value but was ", AbstractC3915.m8584(m10070()), m10050());
                        return;
                    }
                    this.f17690--;
                } else {
                    C0963 c0963 = this.f17687;
                    if (iM10056 == 14 || iM10056 == 10) {
                        long jMo3281 = this.f17689.mo3281(f17682);
                        if (jMo3281 == -1) {
                            jMo3281 = c0963.f4314;
                        }
                        c0963.skip(jMo3281);
                    } else if (iM10056 == 9 || iM10056 == 13) {
                        m10044(f17679);
                    } else if (iM10056 == 8 || iM10056 == 12) {
                        m10044(f17680);
                    } else if (iM10056 == 17) {
                        c0963.skip(this.f17685);
                    } else if (iM10056 == 18) {
                        C0910.m3051("Expected a value but was ", AbstractC3915.m8584(m10070()), m10050());
                        return;
                    }
                }
                this.f17683 = 0;
            }
            i++;
            this.f17683 = 0;
        } while (i != 0);
        int[] iArr = this.f17691;
        int i2 = this.f17690 - 1;
        iArr[i2] = iArr[i2] + 1;
        this.f17692[i2] = "null";
    }

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public final int m10058(String str, ᵶˉᵹʣ r6) {
        int length = ((String[]) r6.ᵢˇᵭ).length;
        for (int i = 0; i < length; i++) {
            if (str.equals(((String[]) r6.ᵢˇᵭ)[i])) {
                this.f17683 = 0;
                this.f17692[this.f17690 - 1] = str;
                return i;
            }
        }
        return -1;
    }

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final void m10059() throws EOFException, JsonEncodingException {
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        if (iM10056 != 2) {
            C0910.m3051("Expected END_OBJECT but was ", AbstractC3915.m8584(m10070()), m10050());
            return;
        }
        int i = this.f17690;
        int i2 = i - 1;
        this.f17690 = i2;
        this.f17692[i2] = null;
        int[] iArr = this.f17691;
        int i3 = i - 2;
        iArr[i3] = iArr[i3] + 1;
        this.f17683 = 0;
    }

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final void m10060() throws EOFException, JsonEncodingException {
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        if (iM10056 != 4) {
            C0910.m3051("Expected END_ARRAY but was ", AbstractC3915.m8584(m10070()), m10050());
            return;
        }
        int i = this.f17690;
        this.f17690 = i - 1;
        int[] iArr = this.f17691;
        int i2 = i - 2;
        iArr[i2] = iArr[i2] + 1;
        this.f17683 = 0;
    }

    /* renamed from: ᵣᵟᵔ, reason: contains not printable characters */
    public final void m10061(int i) {
        int i2 = this.f17690;
        int[] iArr = this.f17688;
        if (i2 == iArr.length) {
            if (i2 == 256) {
                C0910.m3044("Nesting too deep at ".concat(m10050()));
                return;
            }
            this.f17688 = Arrays.copyOf(iArr, iArr.length * 2);
            String[] strArr = this.f17692;
            this.f17692 = (String[]) Arrays.copyOf(strArr, strArr.length * 2);
            int[] iArr2 = this.f17691;
            this.f17691 = Arrays.copyOf(iArr2, iArr2.length * 2);
        }
        int[] iArr3 = this.f17688;
        int i3 = this.f17690;
        this.f17690 = i3 + 1;
        iArr3[i3] = i;
    }

    /* renamed from: ᵤᵼˑʠ, reason: contains not printable characters */
    public final String m10062() throws EOFException, JsonEncodingException {
        String strM3292;
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        if (iM10056 == 10) {
            strM3292 = m10048();
        } else if (iM10056 == 9) {
            strM3292 = m10069(f17679);
        } else if (iM10056 == 8) {
            strM3292 = m10069(f17680);
        } else if (iM10056 == 11) {
            strM3292 = this.f17684;
            this.f17684 = null;
        } else if (iM10056 == 16) {
            strM3292 = Long.toString(this.f17686);
        } else {
            if (iM10056 != 17) {
                C0910.m3051("Expected a string but was ", AbstractC3915.m8584(m10070()), m10050());
                return null;
            }
            long j = this.f17685;
            C0963 c0963 = this.f17687;
            c0963.getClass();
            strM3292 = c0963.m3292(j, AbstractC2356.f9221);
        }
        this.f17683 = 0;
        int[] iArr = this.f17691;
        int i = this.f17690 - 1;
        iArr[i] = iArr[i] + 1;
        return strM3292;
    }

    /* renamed from: ᵥʩᵩˑ, reason: contains not printable characters */
    public final char m10063() throws EOFException, JsonEncodingException {
        int i;
        InterfaceC4777 interfaceC4777 = this.f17689;
        if (!interfaceC4777.request(1L)) {
            m10046("Unterminated escape sequence");
            throw null;
        }
        C0963 c0963 = this.f17687;
        byte b = c0963.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) {
            m10046("Invalid escape sequence: \\" + ((char) b));
            throw null;
        }
        if (!interfaceC4777.request(4L)) {
            throw new EOFException("Unterminated escape sequence at path ".concat(m10050()));
        }
        char c = 0;
        for (int i2 = 0; i2 < 4; i2++) {
            byte bM3267 = c0963.m3267(i2);
            char c2 = (char) (c << 4);
            if (bM3267 >= 48 && bM3267 <= 57) {
                i = bM3267 - 48;
            } else if (bM3267 >= 97 && bM3267 <= 102) {
                i = bM3267 - 87;
            } else {
                if (bM3267 < 65 || bM3267 > 70) {
                    m10046("\\u".concat(c0963.m3292(4L, AbstractC2356.f9221)));
                    throw null;
                }
                i = bM3267 - 55;
            }
            c = (char) (i + c2);
        }
        c0963.skip(4L);
        return c;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final void m10064() throws EOFException, JsonEncodingException {
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        if (iM10056 != 3) {
            C0910.m3051("Expected BEGIN_ARRAY but was ", AbstractC3915.m8584(m10070()), m10050());
            return;
        }
        m10061(1);
        this.f17691[this.f17690 - 1] = 0;
        this.f17683 = 0;
    }

    /* renamed from: ᵨٴ, reason: contains not printable characters */
    public final void m10065() throws EOFException, JsonEncodingException {
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        if (iM10056 == 14) {
            long jMo3281 = this.f17689.mo3281(f17682);
            C0963 c0963 = this.f17687;
            if (jMo3281 == -1) {
                jMo3281 = c0963.f4314;
            }
            c0963.skip(jMo3281);
        } else if (iM10056 == 13) {
            m10044(f17679);
        } else if (iM10056 == 12) {
            m10044(f17680);
        } else if (iM10056 != 15) {
            C0910.m3051("Expected a name but was ", AbstractC3915.m8584(m10070()), m10050());
            return;
        }
        this.f17683 = 0;
        this.f17692[this.f17690 - 1] = "null";
    }

    /* renamed from: ᵲᵟ, reason: contains not printable characters */
    public final int m10066(ᵶˉᵹʣ r5) throws EOFException, JsonEncodingException {
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        if (iM10056 < 12 || iM10056 > 15) {
            return -1;
        }
        if (iM10056 == 15) {
            return m10058(this.f17684, r5);
        }
        int iMo3268 = this.f17689.mo3268((C2679) r5.ᵿʗᵝʽ);
        if (iMo3268 != -1) {
            this.f17683 = 0;
            this.f17692[this.f17690 - 1] = ((String[]) r5.ᵢˇᵭ)[iMo3268];
            return iMo3268;
        }
        String str = this.f17692[this.f17690 - 1];
        String strM10052 = m10052();
        int iM10058 = m10058(strM10052, r5);
        if (iM10058 == -1) {
            this.f17683 = 15;
            this.f17684 = strM10052;
            this.f17692[this.f17690 - 1] = str;
        }
        return iM10058;
    }

    /* renamed from: ᵳᵹᵺˋ, reason: contains not printable characters */
    public final double m10067() throws NumberFormatException, EOFException, JsonEncodingException {
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        if (iM10056 == 16) {
            this.f17683 = 0;
            int[] iArr = this.f17691;
            int i = this.f17690 - 1;
            iArr[i] = iArr[i] + 1;
            return this.f17686;
        }
        if (iM10056 == 17) {
            long j = this.f17685;
            C0963 c0963 = this.f17687;
            c0963.getClass();
            this.f17684 = c0963.m3292(j, AbstractC2356.f9221);
        } else if (iM10056 == 9) {
            this.f17684 = m10069(f17679);
        } else if (iM10056 == 8) {
            this.f17684 = m10069(f17680);
        } else if (iM10056 == 10) {
            this.f17684 = m10048();
        } else if (iM10056 != 11) {
            C0910.m3051("Expected a double but was ", AbstractC3915.m8584(m10070()), m10050());
            return 0.0d;
        }
        this.f17683 = 11;
        try {
            double d = Double.parseDouble(this.f17684);
            if (Double.isNaN(d) || Double.isInfinite(d)) {
                throw new JsonEncodingException("JSON forbids NaN and infinities: " + d + " at path " + m10050());
            }
            this.f17684 = null;
            this.f17683 = 0;
            int[] iArr2 = this.f17691;
            int i2 = this.f17690 - 1;
            iArr2[i2] = iArr2[i2] + 1;
            return d;
        } catch (NumberFormatException unused) {
            C0910.m3051("Expected a double but was ", this.f17684, m10050());
            return 0.0d;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:15:0x0026, code lost:
    
        r1.skip(r3);
        r2 = defpackage.C4760.f17678;
     */
    /* JADX WARN: Code restructure failed: missing block: B:16:0x0031, code lost:
    
        if (r6 != 47) goto L56;
     */
    /* JADX WARN: Code restructure failed: missing block: B:18:0x0039, code lost:
    
        if (r5.request(2) != false) goto L20;
     */
    /* JADX WARN: Code restructure failed: missing block: B:20:0x003d, code lost:
    
        m10051();
        r10 = r1.m3267(1);
     */
    /* JADX WARN: Code restructure failed: missing block: B:21:0x0046, code lost:
    
        if (r10 == 42) goto L58;
     */
    /* JADX WARN: Code restructure failed: missing block: B:22:0x0048, code lost:
    
        if (r10 == 47) goto L24;
     */
    /* JADX WARN: Code restructure failed: missing block: B:24:0x004b, code lost:
    
        r1.readByte();
        r1.readByte();
        r5 = r5.mo3281(r2);
     */
    /* JADX WARN: Code restructure failed: missing block: B:25:0x0057, code lost:
    
        if (r5 == (-1)) goto L27;
     */
    /* JADX WARN: Code restructure failed: missing block: B:26:0x0059, code lost:
    
        r5 = r5 + 1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:27:0x005b, code lost:
    
        r5 = r1.f4314;
     */
    /* JADX WARN: Code restructure failed: missing block: B:28:0x005d, code lost:
    
        r1.skip(r5);
     */
    /* JADX WARN: Code restructure failed: missing block: B:29:0x0061, code lost:
    
        r1.readByte();
        r1.readByte();
        r5 = r5.mo3262(defpackage.C4760.f17681);
     */
    /* JADX WARN: Code restructure failed: missing block: B:30:0x006f, code lost:
    
        if (r5 == (-1)) goto L32;
     */
    /* JADX WARN: Code restructure failed: missing block: B:31:0x0071, code lost:
    
        r3 = true;
     */
    /* JADX WARN: Code restructure failed: missing block: B:32:0x0073, code lost:
    
        r3 = false;
     */
    /* JADX WARN: Code restructure failed: missing block: B:33:0x0074, code lost:
    
        if (r3 == false) goto L35;
     */
    /* JADX WARN: Code restructure failed: missing block: B:34:0x0076, code lost:
    
        r5 = r5 + r2.f8599.length;
     */
    /* JADX WARN: Code restructure failed: missing block: B:35:0x007c, code lost:
    
        r5 = r1.f4314;
     */
    /* JADX WARN: Code restructure failed: missing block: B:36:0x007e, code lost:
    
        r1.skip(r5);
     */
    /* JADX WARN: Code restructure failed: missing block: B:37:0x0081, code lost:
    
        if (r3 == false) goto L61;
     */
    /* JADX WARN: Code restructure failed: missing block: B:39:0x0085, code lost:
    
        m10046("Unterminated comment");
     */
    /* JADX WARN: Code restructure failed: missing block: B:40:0x008b, code lost:
    
        throw null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:42:0x008e, code lost:
    
        if (r6 != 35) goto L62;
     */
    /* JADX WARN: Code restructure failed: missing block: B:43:0x0090, code lost:
    
        m10051();
        r5 = r5.mo3281(r2);
     */
    /* JADX WARN: Code restructure failed: missing block: B:44:0x0099, code lost:
    
        if (r5 == (-1)) goto L46;
     */
    /* JADX WARN: Code restructure failed: missing block: B:45:0x009b, code lost:
    
        r5 = r5 + 1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:46:0x009d, code lost:
    
        r5 = r1.f4314;
     */
    /* JADX WARN: Code restructure failed: missing block: B:47:0x009f, code lost:
    
        r1.skip(r5);
     */
    /* renamed from: ᵷᵱ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final int m10068(boolean r13) throws java.io.EOFException, com.squareup.moshi.JsonEncodingException {
        /*
            r12 = this;
            r0 = 0
        L1:
            r1 = r0
        L2:
            int r2 = r1 + 1
            long r3 = (long) r2
            ᵶʾˏ r5 = r12.f17689
            boolean r3 = r5.request(r3)
            if (r3 == 0) goto La8
            long r3 = (long) r1
            ˇᵠᵦ r1 = r12.f17687
            byte r6 = r1.m3267(r3)
            r7 = 10
            if (r6 == r7) goto La5
            r7 = 32
            if (r6 == r7) goto La5
            r7 = 13
            if (r6 == r7) goto La5
            r7 = 9
            if (r6 != r7) goto L26
            goto La5
        L26:
            r1.skip(r3)
            ᵎᵢ r2 = defpackage.C4760.f17678
            r3 = -1
            r7 = 1
            r9 = 47
            if (r6 != r9) goto L8c
            r10 = 2
            boolean r10 = r5.request(r10)
            if (r10 != 0) goto L3d
            goto La4
        L3d:
            r12.m10051()
            byte r10 = r1.m3267(r7)
            r11 = 42
            if (r10 == r11) goto L61
            if (r10 == r9) goto L4b
            goto La4
        L4b:
            r1.readByte()
            r1.readByte()
            long r5 = r5.mo3281(r2)
            int r2 = (r5 > r3 ? 1 : (r5 == r3 ? 0 : -1))
            if (r2 == 0) goto L5b
            long r5 = r5 + r7
            goto L5d
        L5b:
            long r5 = r1.f4314
        L5d:
            r1.skip(r5)
            goto L1
        L61:
            r1.readByte()
            r1.readByte()
            ᵎᵢ r2 = defpackage.C4760.f17681
            long r5 = r5.mo3262(r2)
            int r3 = (r5 > r3 ? 1 : (r5 == r3 ? 0 : -1))
            if (r3 == 0) goto L73
            r3 = 1
            goto L74
        L73:
            r3 = r0
        L74:
            if (r3 == 0) goto L7c
            byte[] r2 = r2.f8599
            int r2 = r2.length
            long r7 = (long) r2
            long r5 = r5 + r7
            goto L7e
        L7c:
            long r5 = r1.f4314
        L7e:
            r1.skip(r5)
            if (r3 == 0) goto L85
            goto L1
        L85:
            java.lang.String r13 = "Unterminated comment"
            r12.m10046(r13)
            r12 = 0
            throw r12
        L8c:
            r9 = 35
            if (r6 != r9) goto La4
            r12.m10051()
            long r5 = r5.mo3281(r2)
            int r2 = (r5 > r3 ? 1 : (r5 == r3 ? 0 : -1))
            if (r2 == 0) goto L9d
            long r5 = r5 + r7
            goto L9f
        L9d:
            long r5 = r1.f4314
        L9f:
            r1.skip(r5)
            goto L1
        La4:
            return r6
        La5:
            r1 = r2
            goto L2
        La8:
            if (r13 != 0) goto Lac
            r12 = -1
            return r12
        Lac:
            java.io.EOFException r12 = new java.io.EOFException
            java.lang.String r13 = "End of input"
            r12.<init>(r13)
            throw r12
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C4760.m10068(boolean):int");
    }

    /* renamed from: ᵺᵠ, reason: contains not printable characters */
    public final String m10069(C2185 c2185) throws EOFException, JsonEncodingException {
        StringBuilder sb = null;
        while (true) {
            long jMo3281 = this.f17689.mo3281(c2185);
            if (jMo3281 == -1) {
                m10046("Unterminated string");
                throw null;
            }
            C0963 c0963 = this.f17687;
            if (c0963.m3267(jMo3281) != 92) {
                if (sb == null) {
                    String strM3292 = c0963.m3292(jMo3281, AbstractC2356.f9221);
                    c0963.readByte();
                    return strM3292;
                }
                sb.append(c0963.m3292(jMo3281, AbstractC2356.f9221));
                c0963.readByte();
                return sb.toString();
            }
            if (sb == null) {
                sb = new StringBuilder();
            }
            sb.append(c0963.m3292(jMo3281, AbstractC2356.f9221));
            c0963.readByte();
            sb.append(m10063());
        }
    }

    /* renamed from: ﹶـ, reason: contains not printable characters */
    public final int m10070() throws EOFException, JsonEncodingException {
        int iM10056 = this.f17683;
        if (iM10056 == 0) {
            iM10056 = m10056();
        }
        switch (iM10056) {
            case 1:
                return 3;
            case 2:
                return 4;
            case 3:
                return 1;
            case 4:
                return 2;
            case 5:
            case C1339.STRING_SET_FIELD_NUMBER /* 6 */:
                return 8;
            case C1339.DOUBLE_FIELD_NUMBER /* 7 */:
                return 9;
            case C1339.BYTES_FIELD_NUMBER /* 8 */:
            case 9:
            case 10:
            case 11:
                return 6;
            case 12:
            case 13:
            case 14:
            case 15:
                return 5;
            case 16:
            case 17:
                return 7;
            case 18:
                return 10;
            default:
                throw new AssertionError();
        }
    }
}
