package p138.p395.p396;

import com.squareup.moshi.JsonDataException;
import com.squareup.moshi.JsonEncodingException;
import java.io.EOFException;
import javax.annotation.Nullable;
import p138.p139.p143.p144.C2803;
import p138.p395.p396.AbstractC6491;
import p461.C7103;
import p461.C7108;
import p461.InterfaceC7107;

/* JADX INFO: renamed from: ދ.ބ.֏.ސ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C6494 extends AbstractC6491 {

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public static final C7108 f19204 = C7108.m10442("'\\");

    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public static final C7108 f19205 = C7108.m10442("\"\\");

    /* JADX INFO: renamed from: ޑ, reason: contains not printable characters */
    public static final C7108 f19206 = C7108.m10442("{}[]:, \n\t\r\f/\\;#=");

    /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
    public static final C7108 f19207 = C7108.m10442("\n\r");

    /* JADX INFO: renamed from: ޓ, reason: contains not printable characters */
    public static final C7108 f19208 = C7108.m10442("*/");

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public final InterfaceC7107 f19209;

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public final C7103 f19210;

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public int f19211 = 0;

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public long f19212;

    /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
    public int f19213;

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    @Nullable
    public String f19214;

    public C6494(InterfaceC7107 interfaceC7107) {
        if (interfaceC7107 == null) {
            throw new NullPointerException("source == null");
        }
        this.f19209 = interfaceC7107;
        this.f19210 = interfaceC7107.getBuffer();
        m9685(6);
    }

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public void close() throws EOFException {
        this.f19211 = 0;
        this.f19186[0] = 8;
        this.f19185 = 1;
        C7103 c7103 = this.f19210;
        c7103.skip(c7103.f20630);
        this.f19209.close();
    }

    public String toString() {
        StringBuilder sbM4889 = C2803.m4889("JsonReader(");
        sbM4889.append(this.f19209);
        sbM4889.append(")");
        return sbM4889.toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final int m9700(String str, AbstractC6491.C6492 c6492) {
        int length = c6492.f19191.length;
        for (int i = 0; i < length; i++) {
            if (str.equals(c6492.f19191[i])) {
                this.f19211 = 0;
                this.f19187[this.f19185 - 1] = str;
                return i;
            }
        }
        return -1;
    }

    @Override // p138.p395.p396.AbstractC6491
    /* JADX INFO: renamed from: ֏ */
    public int mo9683(AbstractC6491.C6492 c6492) throws EOFException, JsonEncodingException {
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        if (iM9707 < 12 || iM9707 > 15) {
            return -1;
        }
        if (iM9707 == 15) {
            return m9700(this.f19214, c6492);
        }
        int iMo10404 = this.f19209.mo10404(c6492.f19192);
        if (iMo10404 != -1) {
            this.f19211 = 0;
            this.f19187[this.f19185 - 1] = c6492.f19191[iMo10404];
            return iMo10404;
        }
        String str = this.f19187[this.f19185 - 1];
        String strM9708 = m9708();
        int iM9700 = m9700(strM9708, c6492);
        if (iM9700 == -1) {
            this.f19211 = 15;
            this.f19214 = strM9708;
            this.f19187[this.f19185 - 1] = str;
        }
        return iM9700;
    }

    /* JADX WARN: Code restructure failed: missing block: B:15:0x0026, code lost:
    
        r7.f19210.skip(r3 - 1);
     */
    /* JADX WARN: Code restructure failed: missing block: B:16:0x0030, code lost:
    
        if (r1 != 47) goto L49;
     */
    /* JADX WARN: Code restructure failed: missing block: B:18:0x003a, code lost:
    
        if (r7.f19209.mo10428(2) != false) goto L20;
     */
    /* JADX WARN: Code restructure failed: missing block: B:19:0x003c, code lost:
    
        return r1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:20:0x003d, code lost:
    
        m9706();
        r3 = r7.f19210.m10433(1);
     */
    /* JADX WARN: Code restructure failed: missing block: B:21:0x004a, code lost:
    
        if (r3 == 42) goto L51;
     */
    /* JADX WARN: Code restructure failed: missing block: B:22:0x004c, code lost:
    
        if (r3 == 47) goto L24;
     */
    /* JADX WARN: Code restructure failed: missing block: B:23:0x004e, code lost:
    
        return r1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:24:0x004f, code lost:
    
        r7.f19210.readByte();
        r7.f19210.readByte();
        m9711();
     */
    /* JADX WARN: Code restructure failed: missing block: B:25:0x005d, code lost:
    
        r7.f19210.readByte();
        r7.f19210.readByte();
        r1 = r7.f19209.mo10407(p138.p395.p396.C6494.f19208);
     */
    /* JADX WARN: Code restructure failed: missing block: B:26:0x0073, code lost:
    
        if (r1 == (-1)) goto L28;
     */
    /* JADX WARN: Code restructure failed: missing block: B:27:0x0075, code lost:
    
        r3 = true;
     */
    /* JADX WARN: Code restructure failed: missing block: B:28:0x0077, code lost:
    
        r3 = false;
     */
    /* JADX WARN: Code restructure failed: missing block: B:29:0x0078, code lost:
    
        r4 = r7.f19210;
     */
    /* JADX WARN: Code restructure failed: missing block: B:30:0x007a, code lost:
    
        if (r3 == false) goto L32;
     */
    /* JADX WARN: Code restructure failed: missing block: B:31:0x007c, code lost:
    
        r1 = r1 + ((long) p138.p395.p396.C6494.f19208.mo10450());
     */
    /* JADX WARN: Code restructure failed: missing block: B:32:0x0085, code lost:
    
        r1 = r4.f20630;
     */
    /* JADX WARN: Code restructure failed: missing block: B:33:0x0087, code lost:
    
        r4.skip(r1);
     */
    /* JADX WARN: Code restructure failed: missing block: B:34:0x008a, code lost:
    
        if (r3 == false) goto L54;
     */
    /* JADX WARN: Code restructure failed: missing block: B:36:0x008e, code lost:
    
        m9686("Unterminated comment");
     */
    /* JADX WARN: Code restructure failed: missing block: B:37:0x0094, code lost:
    
        throw null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:39:0x0097, code lost:
    
        if (r1 != 35) goto L55;
     */
    /* JADX WARN: Code restructure failed: missing block: B:40:0x0099, code lost:
    
        m9706();
        m9711();
     */
    /* JADX WARN: Code restructure failed: missing block: B:41:0x00a1, code lost:
    
        return r1;
     */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final int m9701(boolean z) throws EOFException, JsonEncodingException {
        while (true) {
            int i = 0;
            while (true) {
                int i2 = i + 1;
                if (!this.f19209.mo10428(i2)) {
                    if (z) {
                        throw new EOFException("End of input");
                    }
                    return -1;
                }
                byte bM10433 = this.f19210.m10433(i);
                if (bM10433 != 10 && bM10433 != 32 && bM10433 != 13 && bM10433 != 9) {
                    break;
                }
                i = i2;
            }
        }
    }

    @Override // p138.p395.p396.AbstractC6491
    /* JADX INFO: renamed from: ֏ */
    public void mo9684() throws EOFException, JsonEncodingException {
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        if (iM9707 != 3) {
            throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected BEGIN_ARRAY but was "), " at path "));
        }
        m9685(1);
        this.f19188[this.f19185 - 1] = 0;
        this.f19211 = 0;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final int m9702(String str, AbstractC6491.C6492 c6492) {
        int length = c6492.f19191.length;
        for (int i = 0; i < length; i++) {
            if (str.equals(c6492.f19191[i])) {
                this.f19211 = 0;
                int[] iArr = this.f19188;
                int i2 = this.f19185 - 1;
                iArr[i2] = iArr[i2] + 1;
                return i;
            }
        }
        return -1;
    }

    @Override // p138.p395.p396.AbstractC6491
    /* JADX INFO: renamed from: ؠ */
    public void mo9687() throws EOFException, JsonEncodingException {
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        if (iM9707 != 1) {
            throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected BEGIN_OBJECT but was "), " at path "));
        }
        m9685(3);
        this.f19211 = 0;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final boolean m9703(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;
                    }
                }
            }
        }
        m9706();
        return false;
    }

    @Override // p138.p395.p396.AbstractC6491
    /* JADX INFO: renamed from: ހ */
    public void mo9688() throws EOFException, JsonEncodingException {
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        if (iM9707 != 4) {
            throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected END_ARRAY but was "), " at path "));
        }
        int i = this.f19185 - 1;
        this.f19185 = i;
        int[] iArr = this.f19188;
        int i2 = i - 1;
        iArr[i2] = iArr[i2] + 1;
        this.f19211 = 0;
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final String m9704(C7108 c7108) throws JsonEncodingException {
        StringBuilder sb = null;
        while (true) {
            long jMo10424 = this.f19209.mo10424(c7108);
            if (jMo10424 == -1) {
                m9686("Unterminated string");
                throw null;
            }
            if (this.f19210.m10433(jMo10424) != 92) {
                if (sb == null) {
                    String strMo10411 = this.f19210.mo10411(jMo10424);
                    this.f19210.readByte();
                    return strMo10411;
                }
                sb.append(this.f19210.mo10411(jMo10424));
                this.f19210.readByte();
                return sb.toString();
            }
            if (sb == null) {
                sb = new StringBuilder();
            }
            sb.append(this.f19210.mo10411(jMo10424));
            this.f19210.readByte();
            sb.append(m9710());
        }
    }

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public final void m9705(C7108 c7108) throws EOFException, JsonEncodingException {
        while (true) {
            long jMo10424 = this.f19209.mo10424(c7108);
            if (jMo10424 == -1) {
                m9686("Unterminated string");
                throw null;
            }
            if (this.f19210.m10433(jMo10424) != 92) {
                this.f19210.skip(jMo10424 + 1);
                return;
            } else {
                this.f19210.skip(jMo10424 + 1);
                m9710();
            }
        }
    }

    @Override // p138.p395.p396.AbstractC6491
    /* JADX INFO: renamed from: ރ */
    public void mo9689() throws EOFException, JsonEncodingException {
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        if (iM9707 != 2) {
            throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected END_OBJECT but was "), " at path "));
        }
        int i = this.f19185 - 1;
        this.f19185 = i;
        this.f19187[i] = null;
        int[] iArr = this.f19188;
        int i2 = i - 1;
        iArr[i2] = iArr[i2] + 1;
        this.f19211 = 0;
    }

    @Override // p138.p395.p396.AbstractC6491
    /* JADX INFO: renamed from: ޅ */
    public boolean mo9691() throws EOFException, JsonEncodingException {
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        return (iM9707 == 2 || iM9707 == 4 || iM9707 == 18) ? false : true;
    }

    @Override // p138.p395.p396.AbstractC6491
    /* JADX INFO: renamed from: ކ */
    public double mo9692() throws EOFException, JsonEncodingException {
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        if (iM9707 == 16) {
            this.f19211 = 0;
            int[] iArr = this.f19188;
            int i = this.f19185 - 1;
            iArr[i] = iArr[i] + 1;
            return this.f19212;
        }
        if (iM9707 == 17) {
            this.f19214 = this.f19210.mo10411(this.f19213);
        } else if (iM9707 == 9) {
            this.f19214 = m9704(f19205);
        } else if (iM9707 == 8) {
            this.f19214 = m9704(f19204);
        } else if (iM9707 == 10) {
            this.f19214 = m9709();
        } else if (iM9707 != 11) {
            throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected a double but was "), " at path "));
        }
        this.f19211 = 11;
        try {
            double d = Double.parseDouble(this.f19214);
            if (this.f19189 || !(Double.isNaN(d) || Double.isInfinite(d))) {
                this.f19214 = null;
                this.f19211 = 0;
                int[] iArr2 = this.f19188;
                int i2 = this.f19185 - 1;
                iArr2[i2] = iArr2[i2] + 1;
                return d;
            }
            throw new JsonEncodingException("JSON forbids NaN and infinities: " + d + " at path " + m9690());
        } catch (NumberFormatException unused) {
            StringBuilder sbM4889 = C2803.m4889("Expected a double but was ");
            sbM4889.append(this.f19214);
            sbM4889.append(" at path ");
            sbM4889.append(m9690());
            throw new JsonDataException(sbM4889.toString());
        }
    }

    @Override // p138.p395.p396.AbstractC6491
    /* JADX INFO: renamed from: މ */
    public int mo9693() throws EOFException, JsonEncodingException {
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        if (iM9707 == 16) {
            long j = this.f19212;
            int i = (int) j;
            if (j == i) {
                this.f19211 = 0;
                int[] iArr = this.f19188;
                int i2 = this.f19185 - 1;
                iArr[i2] = iArr[i2] + 1;
                return i;
            }
            StringBuilder sbM4889 = C2803.m4889("Expected an int but was ");
            sbM4889.append(this.f19212);
            sbM4889.append(" at path ");
            sbM4889.append(m9690());
            throw new JsonDataException(sbM4889.toString());
        }
        if (iM9707 == 17) {
            this.f19214 = this.f19210.mo10411(this.f19213);
        } else if (iM9707 == 9 || iM9707 == 8) {
            String strM9704 = iM9707 == 9 ? m9704(f19205) : m9704(f19204);
            this.f19214 = strM9704;
            try {
                int i3 = Integer.parseInt(strM9704);
                this.f19211 = 0;
                int[] iArr2 = this.f19188;
                int i4 = this.f19185 - 1;
                iArr2[i4] = iArr2[i4] + 1;
                return i3;
            } catch (NumberFormatException unused) {
            }
        } else if (iM9707 != 11) {
            throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected an int but was "), " at path "));
        }
        this.f19211 = 11;
        try {
            double d = Double.parseDouble(this.f19214);
            int i5 = (int) d;
            if (i5 != d) {
                StringBuilder sbM48892 = C2803.m4889("Expected an int but was ");
                sbM48892.append(this.f19214);
                sbM48892.append(" at path ");
                sbM48892.append(m9690());
                throw new JsonDataException(sbM48892.toString());
            }
            this.f19214 = null;
            this.f19211 = 0;
            int[] iArr3 = this.f19188;
            int i6 = this.f19185 - 1;
            iArr3[i6] = iArr3[i6] + 1;
            return i5;
        } catch (NumberFormatException unused2) {
            StringBuilder sbM48893 = C2803.m4889("Expected an int but was ");
            sbM48893.append(this.f19214);
            sbM48893.append(" at path ");
            sbM48893.append(m9690());
            throw new JsonDataException(sbM48893.toString());
        }
    }

    @Override // p138.p395.p396.AbstractC6491
    @Nullable
    /* JADX INFO: renamed from: ފ */
    public <T> T mo9694() throws EOFException, JsonEncodingException {
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        if (iM9707 != 7) {
            throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected null but was "), " at path "));
        }
        this.f19211 = 0;
        int[] iArr = this.f19188;
        int i = this.f19185 - 1;
        iArr[i] = iArr[i] + 1;
        return null;
    }

    @Override // p138.p395.p396.AbstractC6491
    /* JADX INFO: renamed from: ލ */
    public String mo9695() throws EOFException, JsonEncodingException {
        String strMo10411;
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        if (iM9707 == 10) {
            strMo10411 = m9709();
        } else if (iM9707 == 9) {
            strMo10411 = m9704(f19205);
        } else if (iM9707 == 8) {
            strMo10411 = m9704(f19204);
        } else if (iM9707 == 11) {
            strMo10411 = this.f19214;
            this.f19214 = null;
        } else if (iM9707 == 16) {
            strMo10411 = Long.toString(this.f19212);
        } else {
            if (iM9707 != 17) {
                throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected a string but was "), " at path "));
            }
            strMo10411 = this.f19210.mo10411(this.f19213);
        }
        this.f19211 = 0;
        int[] iArr = this.f19188;
        int i = this.f19185 - 1;
        iArr[i] = iArr[i] + 1;
        return strMo10411;
    }

    @Override // p138.p395.p396.AbstractC6491
    /* JADX INFO: renamed from: ސ */
    public AbstractC6491.EnumC6493 mo9696() throws EOFException, JsonEncodingException {
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        switch (iM9707) {
            case 1:
                return AbstractC6491.EnumC6493.BEGIN_OBJECT;
            case 2:
                return AbstractC6491.EnumC6493.END_OBJECT;
            case 3:
                return AbstractC6491.EnumC6493.BEGIN_ARRAY;
            case 4:
                return AbstractC6491.EnumC6493.END_ARRAY;
            case 5:
            case 6:
                return AbstractC6491.EnumC6493.BOOLEAN;
            case 7:
                return AbstractC6491.EnumC6493.NULL;
            case 8:
            case 9:
            case 10:
            case 11:
                return AbstractC6491.EnumC6493.STRING;
            case 12:
            case 13:
            case 14:
            case 15:
                return AbstractC6491.EnumC6493.NAME;
            case 16:
            case 17:
                return AbstractC6491.EnumC6493.NUMBER;
            case 18:
                return AbstractC6491.EnumC6493.END_DOCUMENT;
            default:
                throw new AssertionError();
        }
    }

    @Override // p138.p395.p396.AbstractC6491
    /* JADX INFO: renamed from: ޒ */
    public void mo9697() throws EOFException, JsonEncodingException {
        if (this.f19190) {
            AbstractC6491.EnumC6493 enumC6493Mo9696 = mo9696();
            m9708();
            throw new JsonDataException("Cannot skip unexpected " + enumC6493Mo9696 + " at " + m9690());
        }
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        if (iM9707 == 14) {
            m9712();
        } else if (iM9707 == 13) {
            m9705(f19205);
        } else if (iM9707 == 12) {
            m9705(f19204);
        } else if (iM9707 != 15) {
            throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected a name but was "), " at path "));
        }
        this.f19211 = 0;
        this.f19187[this.f19185 - 1] = "null";
    }

    @Override // p138.p395.p396.AbstractC6491
    /* JADX INFO: renamed from: ޓ */
    public void mo9698() throws EOFException, JsonEncodingException {
        if (this.f19190) {
            throw new JsonDataException(C2803.m4887(this, C2803.m4889("Cannot skip unexpected "), " at "));
        }
        int i = 0;
        do {
            int iM9707 = this.f19211;
            if (iM9707 == 0) {
                iM9707 = m9707();
            }
            if (iM9707 == 3) {
                m9685(1);
            } else if (iM9707 == 1) {
                m9685(3);
            } else {
                if (iM9707 == 4) {
                    i--;
                    if (i < 0) {
                        throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected a value but was "), " at path "));
                    }
                    this.f19185--;
                } else if (iM9707 == 2) {
                    i--;
                    if (i < 0) {
                        throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected a value but was "), " at path "));
                    }
                    this.f19185--;
                } else if (iM9707 == 14 || iM9707 == 10) {
                    m9712();
                } else if (iM9707 == 9 || iM9707 == 13) {
                    m9705(f19205);
                } else if (iM9707 == 8 || iM9707 == 12) {
                    m9705(f19204);
                } else if (iM9707 == 17) {
                    this.f19210.skip(this.f19213);
                } else if (iM9707 == 18) {
                    throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected a value but was "), " at path "));
                }
                this.f19211 = 0;
            }
            i++;
            this.f19211 = 0;
        } while (i != 0);
        int[] iArr = this.f19188;
        int i2 = this.f19185;
        int i3 = i2 - 1;
        iArr[i3] = iArr[i3] + 1;
        this.f19187[i2 - 1] = "null";
    }

    /* JADX INFO: renamed from: ޔ, reason: contains not printable characters */
    public final void m9706() throws JsonEncodingException {
        if (this.f19189) {
            return;
        }
        m9686("Use JsonReader.setLenient(true) to accept malformed JSON");
        throw null;
    }

    /* JADX WARN: Code restructure failed: missing block: B:133:0x01b9, code lost:
    
        if (m9703(r9) != false) goto L170;
     */
    /* JADX WARN: Code restructure failed: missing block: B:134:0x01bb, code lost:
    
        if (r2 != 2) goto L146;
     */
    /* JADX WARN: Code restructure failed: missing block: B:135:0x01bd, code lost:
    
        if (r5 == false) goto L146;
     */
    /* JADX WARN: Code restructure failed: missing block: B:137:0x01c3, code lost:
    
        if (r6 != Long.MIN_VALUE) goto L139;
     */
    /* JADX WARN: Code restructure failed: missing block: B:138:0x01c5, code lost:
    
        if (r8 == false) goto L146;
     */
    /* JADX WARN: Code restructure failed: missing block: B:140:0x01cb, code lost:
    
        if (r6 != 0) goto L142;
     */
    /* JADX WARN: Code restructure failed: missing block: B:141:0x01cd, code lost:
    
        if (r8 != false) goto L146;
     */
    /* JADX WARN: Code restructure failed: missing block: B:142:0x01cf, code lost:
    
        if (r8 == false) goto L144;
     */
    /* JADX WARN: Code restructure failed: missing block: B:144:0x01d2, code lost:
    
        r6 = -r6;
     */
    /* JADX WARN: Code restructure failed: missing block: B:145:0x01d3, code lost:
    
        r16.f19212 = r6;
        r16.f19210.skip(r3);
        r14 = 16;
        r16.f19211 = 16;
     */
    /* JADX WARN: Code restructure failed: missing block: B:146:0x01e0, code lost:
    
        if (r2 == 2) goto L151;
     */
    /* JADX WARN: Code restructure failed: missing block: B:148:0x01e3, code lost:
    
        if (r2 == 4) goto L151;
     */
    /* JADX WARN: Code restructure failed: missing block: B:150:0x01e6, code lost:
    
        if (r2 != 7) goto L170;
     */
    /* JADX WARN: Code restructure failed: missing block: B:151:0x01e8, code lost:
    
        r16.f19213 = r3;
        r14 = 17;
        r16.f19211 = 17;
     */
    /* JADX WARN: Removed duplicated region for block: B:172:0x0214 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:173:0x0215  */
    /* JADX WARN: Removed duplicated region for block: B:197:0x0270  */
    /* JADX WARN: Removed duplicated region for block: B:44:0x00a6  */
    /* JADX WARN: Removed duplicated region for block: B:88:0x0139 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:89:0x013a  */
    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$PrimitiveArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    /* JADX INFO: renamed from: ޕ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final int m9707() throws EOFException, JsonEncodingException {
        int iM9701;
        int i;
        String str;
        String str2;
        int i2;
        byte bM10433;
        int i3;
        int[] iArr = this.f19186;
        int i4 = this.f19185;
        int i5 = iArr[i4 - 1];
        boolean z = true;
        if (i5 == 1) {
            iArr[i4 - 1] = 2;
        } else if (i5 == 2) {
            int iM97012 = m9701(true);
            this.f19210.readByte();
            if (iM97012 != 44) {
                if (iM97012 != 59) {
                    if (iM97012 == 93) {
                        this.f19211 = 4;
                        return 4;
                    }
                    m9686("Unterminated array");
                    throw null;
                }
                m9706();
            }
        } else {
            if (i5 == 3 || i5 == 5) {
                this.f19186[this.f19185 - 1] = 4;
                if (i5 == 5) {
                    int iM97013 = m9701(true);
                    this.f19210.readByte();
                    if (iM97013 != 44) {
                        if (iM97013 != 59) {
                            if (iM97013 == 125) {
                                this.f19211 = 2;
                                return 2;
                            }
                            m9686("Unterminated object");
                            throw null;
                        }
                        m9706();
                    }
                }
                int iM97014 = m9701(true);
                if (iM97014 == 34) {
                    this.f19210.readByte();
                    this.f19211 = 13;
                    return 13;
                }
                if (iM97014 == 39) {
                    this.f19210.readByte();
                    m9706();
                    this.f19211 = 12;
                    return 12;
                }
                if (iM97014 != 125) {
                    m9706();
                    if (m9703((char) iM97014)) {
                        this.f19211 = 14;
                        return 14;
                    }
                    m9686("Expected name");
                    throw null;
                }
                if (i5 == 5) {
                    m9686("Expected name");
                    throw null;
                }
                this.f19210.readByte();
                this.f19211 = 2;
                return 2;
            }
            if (i5 == 4) {
                iArr[i4 - 1] = 5;
                int iM97015 = m9701(true);
                this.f19210.readByte();
                if (iM97015 != 58) {
                    if (iM97015 != 61) {
                        m9686("Expected ':'");
                        throw null;
                    }
                    m9706();
                    if (this.f19209.mo10428(1L) && this.f19210.m10433(0L) == 62) {
                        this.f19210.readByte();
                    }
                }
            } else {
                if (i5 != 6) {
                    if (i5 == 7) {
                        if (m9701(false) == -1) {
                            this.f19211 = 18;
                            return 18;
                        }
                        m9706();
                    } else if (i5 == 8) {
                        throw new IllegalStateException("JsonReader is closed");
                    }
                    iM9701 = m9701(true);
                    if (iM9701 != 34) {
                        this.f19210.readByte();
                        this.f19211 = 9;
                        return 9;
                    }
                    if (iM9701 == 39) {
                        m9706();
                        this.f19210.readByte();
                        this.f19211 = 8;
                        return 8;
                    }
                    if (iM9701 == 44 || iM9701 == 59) {
                        i = 1;
                    } else {
                        if (iM9701 == 91) {
                            this.f19210.readByte();
                            this.f19211 = 3;
                            return 3;
                        }
                        if (iM9701 == 93) {
                            i = 1;
                            if (i5 == 1) {
                                this.f19210.readByte();
                                this.f19211 = 4;
                                return 4;
                            }
                        } else {
                            if (iM9701 == 123) {
                                this.f19210.readByte();
                                this.f19211 = 1;
                                return 1;
                            }
                            byte bM104332 = this.f19210.m10433(0L);
                            if (bM104332 == 116 || bM104332 == 84) {
                                str = "true";
                                str2 = "TRUE";
                                i2 = 5;
                            } else if (bM104332 == 102 || bM104332 == 70) {
                                str = "false";
                                str2 = "FALSE";
                                i2 = 6;
                            } else {
                                if (bM104332 == 110 || bM104332 == 78) {
                                    str = "null";
                                    str2 = "NULL";
                                    i2 = 7;
                                }
                                i2 = 0;
                                if (i2 == 0) {
                                    return i2;
                                }
                                char c = 0;
                                int i6 = 0;
                                boolean z2 = true;
                                long j = 0;
                                boolean z3 = false;
                                while (true) {
                                    int i7 = i6 + 1;
                                    if (!this.f19209.mo10428(i7)) {
                                        break;
                                    }
                                    byte bM104333 = this.f19210.m10433(i6);
                                    if (bM104333 != 43) {
                                        if (bM104333 == 69 || bM104333 == 101) {
                                            if (c != 2 && c != 4) {
                                                break;
                                            }
                                            c = 5;
                                            i6 = i7;
                                            z = true;
                                        } else if (bM104333 != 45) {
                                            if (bM104333 == 46) {
                                                if (c != 2) {
                                                    break;
                                                }
                                                c = 3;
                                                i6 = i7;
                                                z = true;
                                            } else {
                                                if (bM104333 < 48 || bM104333 > 57) {
                                                    break;
                                                }
                                                if (c == z || c == 0) {
                                                    j = -(bM104333 - 48);
                                                    c = 2;
                                                } else if (c == 2) {
                                                    if (j == 0) {
                                                        break;
                                                    }
                                                    long j2 = (10 * j) - ((long) (bM104333 - 48));
                                                    z2 = (j > -922337203685477580L || (j == -922337203685477580L && j2 < j)) & z2;
                                                    j = j2;
                                                } else if (c == 3) {
                                                    c = 4;
                                                } else if (c == 5 || c == 6) {
                                                    c = 7;
                                                }
                                                i6 = i7;
                                                z = true;
                                            }
                                        } else if (c == 0) {
                                            c = 1;
                                            z3 = true;
                                            i6 = i7;
                                            z = true;
                                        } else {
                                            if (c != 5) {
                                                break;
                                            }
                                            c = 6;
                                            i6 = i7;
                                            z = true;
                                        }
                                        if (i3 == 0) {
                                            return i3;
                                        }
                                        if (!m9703(this.f19210.m10433(0L))) {
                                            m9686("Expected value");
                                            throw null;
                                        }
                                        m9706();
                                        this.f19211 = 10;
                                        return 10;
                                    }
                                    if (c != 5) {
                                        break;
                                    }
                                    c = 6;
                                    i6 = i7;
                                    z = true;
                                }
                                i3 = 0;
                                if (i3 == 0) {
                                }
                            }
                            int length = str.length();
                            int i8 = 1;
                            while (true) {
                                if (i8 < length) {
                                    int i9 = i8 + 1;
                                    if (!this.f19209.mo10428(i9) || ((bM10433 = this.f19210.m10433(i8)) != str.charAt(i8) && bM10433 != str2.charAt(i8))) {
                                        break;
                                    }
                                    i8 = i9;
                                } else if (!this.f19209.mo10428(length + 1) || !m9703(this.f19210.m10433(length))) {
                                    this.f19210.skip(length);
                                    this.f19211 = i2;
                                }
                            }
                            i2 = 0;
                            if (i2 == 0) {
                            }
                        }
                    }
                    if (i5 != i && i5 != 2) {
                        m9686("Unexpected value");
                        throw null;
                    }
                    m9706();
                    this.f19211 = 7;
                    return 7;
                }
                iArr[i4 - 1] = 7;
            }
        }
        iM9701 = m9701(true);
        if (iM9701 != 34) {
        }
    }

    /* JADX INFO: renamed from: ޖ, reason: contains not printable characters */
    public String m9708() throws EOFException, JsonEncodingException {
        String strM9704;
        int iM9707 = this.f19211;
        if (iM9707 == 0) {
            iM9707 = m9707();
        }
        if (iM9707 == 14) {
            strM9704 = m9709();
        } else if (iM9707 == 13) {
            strM9704 = m9704(f19205);
        } else if (iM9707 == 12) {
            strM9704 = m9704(f19204);
        } else {
            if (iM9707 != 15) {
                throw new JsonDataException(C2803.m4887(this, C2803.m4889("Expected a name but was "), " at path "));
            }
            strM9704 = this.f19214;
        }
        this.f19211 = 0;
        this.f19187[this.f19185 - 1] = strM9704;
        return strM9704;
    }

    /* JADX INFO: renamed from: ޗ, reason: contains not printable characters */
    public final String m9709() {
        long jMo10424 = this.f19209.mo10424(f19206);
        return jMo10424 != -1 ? this.f19210.mo10411(jMo10424) : this.f19210.m10437();
    }

    /* JADX INFO: renamed from: ޘ, reason: contains not printable characters */
    public final char m9710() throws EOFException, JsonEncodingException {
        int i;
        int i2;
        if (!this.f19209.mo10428(1L)) {
            m9686("Unterminated escape sequence");
            throw null;
        }
        byte b = this.f19210.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) {
            if (this.f19189) {
                return (char) b;
            }
            StringBuilder sbM4889 = C2803.m4889("Invalid escape sequence: \\");
            sbM4889.append((char) b);
            m9686(sbM4889.toString());
            throw null;
        }
        if (!this.f19209.mo10428(4L)) {
            StringBuilder sbM48892 = C2803.m4889("Unterminated escape sequence at path ");
            sbM48892.append(m9690());
            throw new EOFException(sbM48892.toString());
        }
        char c = 0;
        for (int i3 = 0; i3 < 4; i3++) {
            byte bM10433 = this.f19210.m10433(i3);
            char c2 = (char) (c << 4);
            if (bM10433 < 48 || bM10433 > 57) {
                if (bM10433 >= 97 && bM10433 <= 102) {
                    i = bM10433 - 97;
                } else {
                    if (bM10433 < 65 || bM10433 > 70) {
                        StringBuilder sbM48893 = C2803.m4889("\\u");
                        sbM48893.append(this.f19210.mo10411(4L));
                        m9686(sbM48893.toString());
                        throw null;
                    }
                    i = bM10433 - 65;
                }
                i2 = i + 10;
            } else {
                i2 = bM10433 - 48;
            }
            c = (char) (i2 + c2);
        }
        this.f19210.skip(4L);
        return c;
    }

    /* JADX INFO: renamed from: ޙ, reason: contains not printable characters */
    public final void m9711() throws EOFException {
        long jMo10424 = this.f19209.mo10424(f19207);
        C7103 c7103 = this.f19210;
        c7103.skip(jMo10424 != -1 ? jMo10424 + 1 : c7103.f20630);
    }

    /* JADX INFO: renamed from: ޚ, reason: contains not printable characters */
    public final void m9712() throws EOFException {
        long jMo10424 = this.f19209.mo10424(f19206);
        C7103 c7103 = this.f19210;
        if (jMo10424 == -1) {
            jMo10424 = c7103.f20630;
        }
        c7103.skip(jMo10424);
    }
}
