package g4;

import H4.c;
import Z0.o;
import java.io.Closeable;
import java.io.EOFException;
import java.io.IOException;
import java.io.StringReader;
import java.util.Arrays;

/* JADX INFO: renamed from: g4.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public final class C2066a implements Closeable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final StringReader f16588a;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public long f16595k;
    public int l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public String f16596m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public int[] f16597n;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public String[] f16599p;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public int[] f16600q;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final char[] f16589b = new char[1024];

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f16590c = 0;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f16591d = 0;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public int f16592e = 0;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public int f16593f = 0;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public int f16594j = 0;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public int f16598o = 1;

    public C2066a(StringReader stringReader) {
        int[] iArr = new int[32];
        this.f16597n = iArr;
        iArr[0] = 6;
        this.f16599p = new String[32];
        this.f16600q = new int[32];
        this.f16588a = stringReader;
    }

    public final int A() throws IOException {
        int iB = this.f16594j;
        if (iB == 0) {
            iB = b();
        }
        switch (iB) {
            case 1:
                return 3;
            case 2:
                return 4;
            case 3:
                return 1;
            case 4:
                return 2;
            case 5:
            case 6:
                return 8;
            case 7:
                return 9;
            case 8:
            case 9:
            case 10:
            case 11:
                return 6;
            case 12:
            case 13:
            case 14:
                return 5;
            case 15:
            case 16:
                return 7;
            case 17:
                return 10;
            default:
                throw new AssertionError();
        }
    }

    public final void B(int i6) {
        int i7 = this.f16598o;
        int[] iArr = this.f16597n;
        if (i7 == iArr.length) {
            int i8 = i7 * 2;
            this.f16597n = Arrays.copyOf(iArr, i8);
            this.f16600q = Arrays.copyOf(this.f16600q, i8);
            this.f16599p = (String[]) Arrays.copyOf(this.f16599p, i8);
        }
        int[] iArr2 = this.f16597n;
        int i9 = this.f16598o;
        this.f16598o = i9 + 1;
        iArr2[i9] = i6;
    }

    public final void C(String str) throws c {
        StringBuilder sbT = o.t(str);
        sbT.append(i());
        throw new c(sbT.toString());
    }

    public final void a() throws c {
        C("Use JsonReader.setLenient(true) to accept malformed JSON");
        throw null;
    }

    /* JADX WARN: Code restructure failed: missing block: B:141:0x01a1, code lost:
    
        if (g(r14) != false) goto L97;
     */
    /* JADX WARN: Code restructure failed: missing block: B:142:0x01a3, code lost:
    
        if (r12 != 2) goto L154;
     */
    /* JADX WARN: Code restructure failed: missing block: B:143:0x01a5, code lost:
    
        if (r13 == false) goto L154;
     */
    /* JADX WARN: Code restructure failed: missing block: B:145:0x01ab, code lost:
    
        if (r7 != Long.MIN_VALUE) goto L147;
     */
    /* JADX WARN: Code restructure failed: missing block: B:146:0x01ad, code lost:
    
        if (r19 == false) goto L154;
     */
    /* JADX WARN: Code restructure failed: missing block: B:148:0x01b1, code lost:
    
        if (r7 != 0) goto L150;
     */
    /* JADX WARN: Code restructure failed: missing block: B:149:0x01b3, code lost:
    
        if (r19 != false) goto L154;
     */
    /* JADX WARN: Code restructure failed: missing block: B:150:0x01b5, code lost:
    
        if (r19 == false) goto L152;
     */
    /* JADX WARN: Code restructure failed: missing block: B:152:0x01b8, code lost:
    
        r7 = -r7;
     */
    /* JADX WARN: Code restructure failed: missing block: B:153:0x01b9, code lost:
    
        r23.f16595k = r7;
        r23.f16590c += r9;
        r9 = 15;
        r23.f16594j = 15;
     */
    /* JADX WARN: Code restructure failed: missing block: B:154:0x01c5, code lost:
    
        if (r12 == 2) goto L159;
     */
    /* JADX WARN: Code restructure failed: missing block: B:156:0x01c8, code lost:
    
        if (r12 == 4) goto L159;
     */
    /* JADX WARN: Code restructure failed: missing block: B:158:0x01cb, code lost:
    
        if (r12 != 7) goto L97;
     */
    /* JADX WARN: Code restructure failed: missing block: B:159:0x01cd, code lost:
    
        r23.l = r9;
        r9 = 16;
        r23.f16594j = 16;
     */
    /* JADX WARN: Removed duplicated region for block: B:104:0x0146  */
    /* JADX WARN: Removed duplicated region for block: B:173:0x01ec  */
    /* JADX WARN: Removed duplicated region for block: B:178:0x01f7 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:179:0x01f8  */
    /* JADX WARN: Removed duplicated region for block: B:91:0x0118 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:92:0x0119  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final int b() throws IOException {
        int iT;
        String str;
        String str2;
        int i6;
        char c6;
        char c7;
        int i7;
        int[] iArr = this.f16597n;
        int i8 = this.f16598o - 1;
        int i9 = iArr[i8];
        if (i9 == 1) {
            iArr[i8] = 2;
        } else if (i9 == 2) {
            int iT2 = t(true);
            if (iT2 != 44) {
                if (iT2 == 59) {
                    a();
                    throw null;
                }
                if (iT2 == 93) {
                    this.f16594j = 4;
                    return 4;
                }
                C("Unterminated array");
                throw null;
            }
        } else {
            if (i9 == 3 || i9 == 5) {
                iArr[i8] = 4;
                if (i9 == 5 && (iT = t(true)) != 44) {
                    if (iT == 59) {
                        a();
                        throw null;
                    }
                    if (iT == 125) {
                        this.f16594j = 2;
                        return 2;
                    }
                    C("Unterminated object");
                    throw null;
                }
                int iT3 = t(true);
                if (iT3 == 34) {
                    this.f16594j = 13;
                    return 13;
                }
                if (iT3 == 39) {
                    a();
                    throw null;
                }
                if (iT3 != 125) {
                    a();
                    throw null;
                }
                if (i9 != 5) {
                    this.f16594j = 2;
                    return 2;
                }
                C("Expected name");
                throw null;
            }
            if (i9 == 4) {
                iArr[i8] = 5;
                int iT4 = t(true);
                if (iT4 != 58) {
                    if (iT4 != 61) {
                        C("Expected ':'");
                        throw null;
                    }
                    a();
                    throw null;
                }
            } else if (i9 == 6) {
                iArr[i8] = 7;
            } else {
                if (i9 == 7) {
                    if (t(false) == -1) {
                        this.f16594j = 17;
                        return 17;
                    }
                    a();
                    throw null;
                }
                if (i9 == 8) {
                    throw new IllegalStateException("JsonReader is closed");
                }
            }
        }
        int iT5 = t(true);
        if (iT5 == 34) {
            this.f16594j = 9;
            return 9;
        }
        if (iT5 == 39) {
            a();
            throw null;
        }
        if (iT5 != 44 && iT5 != 59) {
            if (iT5 == 91) {
                this.f16594j = 3;
                return 3;
            }
            if (iT5 != 93) {
                if (iT5 == 123) {
                    this.f16594j = 1;
                    return 1;
                }
                int i10 = this.f16590c - 1;
                this.f16590c = i10;
                char[] cArr = this.f16589b;
                char c8 = cArr[i10];
                if (c8 == 't' || c8 == 'T') {
                    str = "true";
                    str2 = "TRUE";
                    i6 = 5;
                } else if (c8 == 'f' || c8 == 'F') {
                    str = "false";
                    str2 = "FALSE";
                    i6 = 6;
                } else if (c8 == 'n' || c8 == 'N') {
                    str = "null";
                    str2 = "NULL";
                    i6 = 7;
                } else {
                    i6 = 0;
                    if (i6 == 0) {
                        return i6;
                    }
                    int i11 = this.f16590c;
                    int i12 = this.f16591d;
                    boolean z6 = true;
                    long j4 = 0;
                    int i13 = 0;
                    char c9 = 0;
                    boolean z7 = false;
                    while (true) {
                        if (i11 + i13 == i12) {
                            if (i13 == cArr.length) {
                                break;
                            }
                            if (!c(i13 + 1)) {
                                break;
                            }
                            i11 = this.f16590c;
                            i12 = this.f16591d;
                            c7 = cArr[i11 + i13];
                            if (c7 != '+') {
                            }
                        } else {
                            c7 = cArr[i11 + i13];
                            if (c7 != '+') {
                                if (c9 != 5) {
                                    break;
                                }
                                c9 = 6;
                                i13++;
                            } else if (c7 == 'E' || c7 == 'e') {
                                if (c9 != 2 && c9 != 4) {
                                    break;
                                }
                                c9 = 5;
                                i13++;
                            } else if (c7 != '-') {
                                if (c7 == '.') {
                                    if (c9 != 2) {
                                        break;
                                    }
                                    c9 = 3;
                                    i13++;
                                } else {
                                    if (c7 < '0' || c7 > '9') {
                                        break;
                                    }
                                    if (c9 == 1 || c9 == 0) {
                                        j4 = -(c7 - '0');
                                        c9 = 2;
                                    } else if (c9 == 2) {
                                        if (j4 == 0) {
                                            break;
                                        }
                                        long j6 = (10 * j4) - ((long) (c7 - '0'));
                                        z6 &= j4 > -922337203685477580L || (j4 == -922337203685477580L && j6 < j4);
                                        j4 = j6;
                                    } else if (c9 == 3) {
                                        c9 = 4;
                                    } else if (c9 == 5 || c9 == 6) {
                                        c9 = 7;
                                    }
                                    i13++;
                                }
                            } else if (c9 == 0) {
                                c9 = 1;
                                z7 = true;
                                i13++;
                            } else {
                                if (c9 != 5) {
                                    break;
                                }
                                c9 = 6;
                                i13++;
                            }
                        }
                        if (i7 == 0) {
                            return i7;
                        }
                        if (g(cArr[this.f16590c])) {
                            a();
                            throw null;
                        }
                        C("Expected value");
                        throw null;
                    }
                    i7 = 0;
                    if (i7 == 0) {
                    }
                }
                int length = str.length();
                int i14 = 1;
                while (true) {
                    if (i14 < length) {
                        if ((this.f16590c + i14 >= this.f16591d && !c(i14 + 1)) || ((c6 = cArr[this.f16590c + i14]) != str.charAt(i14) && c6 != str2.charAt(i14))) {
                            break;
                        }
                        i14++;
                    } else {
                        if ((this.f16590c + length < this.f16591d || c(length + 1)) && g(cArr[this.f16590c + length])) {
                            break;
                        }
                        this.f16590c += length;
                        this.f16594j = i6;
                    }
                }
                i6 = 0;
                if (i6 == 0) {
                }
            } else if (i9 == 1) {
                this.f16594j = 4;
                return 4;
            }
        }
        if (i9 == 1 || i9 == 2) {
            a();
            throw null;
        }
        C("Unexpected value");
        throw null;
    }

    public final boolean c(int i6) throws IOException {
        int i7;
        int i8;
        int i9 = this.f16593f;
        int i10 = this.f16590c;
        this.f16593f = i9 - i10;
        int i11 = this.f16591d;
        char[] cArr = this.f16589b;
        if (i11 != i10) {
            int i12 = i11 - i10;
            this.f16591d = i12;
            System.arraycopy(cArr, i10, cArr, 0, i12);
        } else {
            this.f16591d = 0;
        }
        this.f16590c = 0;
        do {
            int i13 = this.f16591d;
            int i14 = this.f16588a.read(cArr, i13, cArr.length - i13);
            if (i14 == -1) {
                return false;
            }
            i7 = this.f16591d + i14;
            this.f16591d = i7;
            if (this.f16592e == 0 && (i8 = this.f16593f) == 0 && i7 > 0 && cArr[0] == 65279) {
                this.f16590c++;
                this.f16593f = i8 + 1;
                i6++;
            }
        } while (i7 < i6);
        return true;
    }

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public final void close() {
        this.f16594j = 0;
        this.f16597n[0] = 8;
        this.f16598o = 1;
        this.f16588a.close();
    }

    public final String d() {
        StringBuilder sb = new StringBuilder("$");
        for (int i6 = 0; i6 < this.f16598o; i6++) {
            int i7 = this.f16597n[i6];
            if (i7 == 1 || i7 == 2) {
                int i8 = this.f16600q[i6];
                sb.append('[');
                sb.append(i8);
                sb.append(']');
            } else if (i7 == 3 || i7 == 4 || i7 == 5) {
                sb.append('.');
                String str = this.f16599p[i6];
                if (str != null) {
                    sb.append(str);
                }
            }
        }
        return sb.toString();
    }

    public final boolean f() throws IOException {
        int iB = this.f16594j;
        if (iB == 0) {
            iB = b();
        }
        return (iB == 2 || iB == 4 || iB == 17) ? false : true;
    }

    public final boolean g(char c6) throws c {
        if (c6 == '\t' || c6 == '\n' || c6 == '\f' || c6 == '\r' || c6 == ' ') {
            return false;
        }
        if (c6 != '#') {
            if (c6 == ',') {
                return false;
            }
            if (c6 != '/' && c6 != '=') {
                if (c6 == '{' || c6 == '}' || c6 == ':') {
                    return false;
                }
                if (c6 != ';') {
                    switch (c6) {
                        case '[':
                        case ']':
                            return false;
                        case '\\':
                            break;
                        default:
                            return true;
                    }
                }
            }
        }
        a();
        throw null;
    }

    public final String i() {
        StringBuilder sbQ = com.google.android.recaptcha.internal.a.q(this.f16592e + 1, (this.f16590c - this.f16593f) + 1, " at line ", " column ", " path ");
        sbQ.append(d());
        return sbQ.toString();
    }

    public final int t(boolean z6) throws IOException {
        int i6 = this.f16590c;
        int i7 = this.f16591d;
        while (true) {
            if (i6 == i7) {
                this.f16590c = i6;
                if (!c(1)) {
                    if (!z6) {
                        return -1;
                    }
                    throw new EOFException("End of input" + i());
                }
                i6 = this.f16590c;
                i7 = this.f16591d;
            }
            int i8 = i6 + 1;
            char c6 = this.f16589b[i6];
            if (c6 == '\n') {
                this.f16592e++;
                this.f16593f = i8;
            } else if (c6 != ' ' && c6 != '\r' && c6 != '\t') {
                if (c6 != '/') {
                    if (c6 != '#') {
                        this.f16590c = i8;
                        return c6;
                    }
                    this.f16590c = i8;
                    a();
                    throw null;
                }
                this.f16590c = i8;
                if (i8 == i7) {
                    this.f16590c = i6;
                    boolean zC = c(2);
                    this.f16590c++;
                    if (!zC) {
                        return c6;
                    }
                }
                a();
                throw null;
            }
            i6 = i8;
        }
    }

    public final String toString() {
        return C2066a.class.getSimpleName() + i();
    }

    /* JADX WARN: Code restructure failed: missing block: B:104:0x0100, code lost:
    
        continue;
     */
    /* JADX WARN: Code restructure failed: missing block: B:17:0x002f, code lost:
    
        r11.f16590c = r8;
        r8 = r8 - r3;
        r2 = r8 - 1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:18:0x0034, code lost:
    
        if (r1 != null) goto L20;
     */
    /* JADX WARN: Code restructure failed: missing block: B:19:0x0036, code lost:
    
        r1 = new java.lang.StringBuilder(java.lang.Math.max(r8 * 2, 16));
     */
    /* JADX WARN: Code restructure failed: missing block: B:20:0x0041, code lost:
    
        r1.append(r5, r3, r2);
     */
    /* JADX WARN: Code restructure failed: missing block: B:21:0x004a, code lost:
    
        if (r11.f16590c != r11.f16591d) goto L27;
     */
    /* JADX WARN: Code restructure failed: missing block: B:23:0x0050, code lost:
    
        if (c(1) == false) goto L96;
     */
    /* JADX WARN: Code restructure failed: missing block: B:25:0x0053, code lost:
    
        C("Unterminated escape sequence");
     */
    /* JADX WARN: Code restructure failed: missing block: B:26:0x0056, code lost:
    
        throw null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:27:0x0057, code lost:
    
        r2 = r11.f16590c;
        r3 = r2 + 1;
        r11.f16590c = r3;
        r7 = r5[r2];
     */
    /* JADX WARN: Code restructure failed: missing block: B:28:0x005f, code lost:
    
        if (r7 == '\n') goto L83;
     */
    /* JADX WARN: Code restructure failed: missing block: B:30:0x0063, code lost:
    
        if (r7 == '\"') goto L82;
     */
    /* JADX WARN: Code restructure failed: missing block: B:32:0x0067, code lost:
    
        if (r7 == '\'') goto L82;
     */
    /* JADX WARN: Code restructure failed: missing block: B:34:0x006b, code lost:
    
        if (r7 == '/') goto L82;
     */
    /* JADX WARN: Code restructure failed: missing block: B:35:0x006d, code lost:
    
        if (r7 == '\\') goto L82;
     */
    /* JADX WARN: Code restructure failed: missing block: B:37:0x0071, code lost:
    
        if (r7 == 'b') goto L81;
     */
    /* JADX WARN: Code restructure failed: missing block: B:39:0x0075, code lost:
    
        if (r7 == 'f') goto L80;
     */
    /* JADX WARN: Code restructure failed: missing block: B:41:0x0079, code lost:
    
        if (r7 == 'n') goto L104;
     */
    /* JADX WARN: Code restructure failed: missing block: B:43:0x007d, code lost:
    
        if (r7 == 'r') goto L79;
     */
    /* JADX WARN: Code restructure failed: missing block: B:45:0x0081, code lost:
    
        if (r7 == 't') goto L78;
     */
    /* JADX WARN: Code restructure failed: missing block: B:47:0x0085, code lost:
    
        if (r7 != 'u') goto L97;
     */
    /* JADX WARN: Code restructure failed: missing block: B:49:0x008c, code lost:
    
        if ((r2 + 5) <= r11.f16591d) goto L55;
     */
    /* JADX WARN: Code restructure failed: missing block: B:51:0x0092, code lost:
    
        if (c(4) == false) goto L98;
     */
    /* JADX WARN: Code restructure failed: missing block: B:53:0x0095, code lost:
    
        C("Unterminated escape sequence");
     */
    /* JADX WARN: Code restructure failed: missing block: B:54:0x0098, code lost:
    
        throw null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:55:0x0099, code lost:
    
        r2 = r11.f16590c;
        r4 = r2 + 4;
        r9 = 0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:56:0x009f, code lost:
    
        if (r2 >= r4) goto L114;
     */
    /* JADX WARN: Code restructure failed: missing block: B:57:0x00a1, code lost:
    
        r6 = r5[r2];
        r8 = (char) (r9 << 4);
     */
    /* JADX WARN: Code restructure failed: missing block: B:58:0x00a8, code lost:
    
        if (r6 < '0') goto L63;
     */
    /* JADX WARN: Code restructure failed: missing block: B:60:0x00ac, code lost:
    
        if (r6 > '9') goto L63;
     */
    /* JADX WARN: Code restructure failed: missing block: B:61:0x00ae, code lost:
    
        r6 = r6 - '0';
     */
    /* JADX WARN: Code restructure failed: missing block: B:62:0x00b0, code lost:
    
        r9 = (char) (r6 + r8);
     */
    /* JADX WARN: Code restructure failed: missing block: B:64:0x00b6, code lost:
    
        if (r6 < 'a') goto L67;
     */
    /* JADX WARN: Code restructure failed: missing block: B:65:0x00b8, code lost:
    
        if (r6 > 'f') goto L67;
     */
    /* JADX WARN: Code restructure failed: missing block: B:66:0x00ba, code lost:
    
        r6 = r6 - 'W';
     */
    /* JADX WARN: Code restructure failed: missing block: B:68:0x00bf, code lost:
    
        if (r6 < 'A') goto L99;
     */
    /* JADX WARN: Code restructure failed: missing block: B:70:0x00c3, code lost:
    
        if (r6 > 'F') goto L100;
     */
    /* JADX WARN: Code restructure failed: missing block: B:71:0x00c5, code lost:
    
        r6 = r6 - '7';
     */
    /* JADX WARN: Code restructure failed: missing block: B:72:0x00c8, code lost:
    
        r2 = r2 + 1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:75:0x00de, code lost:
    
        r11.f16590c += 4;
     */
    /* JADX WARN: Code restructure failed: missing block: B:76:0x00e4, code lost:
    
        C("Invalid escape sequence");
     */
    /* JADX WARN: Code restructure failed: missing block: B:77:0x00e9, code lost:
    
        throw null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:78:0x00ea, code lost:
    
        r9 = '\t';
     */
    /* JADX WARN: Code restructure failed: missing block: B:79:0x00ed, code lost:
    
        r9 = '\r';
     */
    /* JADX WARN: Code restructure failed: missing block: B:80:0x00f0, code lost:
    
        r9 = '\f';
     */
    /* JADX WARN: Code restructure failed: missing block: B:81:0x00f3, code lost:
    
        r9 = '\b';
     */
    /* JADX WARN: Code restructure failed: missing block: B:82:0x00f6, code lost:
    
        r9 = r7;
     */
    /* JADX WARN: Code restructure failed: missing block: B:83:0x00f8, code lost:
    
        r11.f16592e++;
        r11.f16593f = r3;
     */
    /* JADX WARN: Code restructure failed: missing block: B:88:0x0115, code lost:
    
        if (r1 != null) goto L90;
     */
    /* JADX WARN: Code restructure failed: missing block: B:89:0x0117, code lost:
    
        r1 = new java.lang.StringBuilder(java.lang.Math.max((r2 - r3) * 2, 16));
     */
    /* JADX WARN: Code restructure failed: missing block: B:90:0x0125, code lost:
    
        r1.append(r5, r3, r2 - r3);
        r11.f16590c = r2;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final String y(char c6) throws c {
        char[] cArr;
        char c7;
        StringBuilder sb = null;
        loop0: do {
            int i6 = this.f16590c;
            int i7 = this.f16591d;
            while (true) {
                int i8 = i7;
                int i9 = i6;
                while (true) {
                    cArr = this.f16589b;
                    if (i6 >= i8) {
                        break;
                    }
                    int i10 = i6 + 1;
                    char c8 = cArr[i6];
                    if (c8 == c6) {
                        this.f16590c = i10;
                        int i11 = (i10 - i9) - 1;
                        if (sb == null) {
                            return new String(cArr, i9, i11);
                        }
                        sb.append(cArr, i9, i11);
                        return sb.toString();
                    }
                    c7 = '\n';
                    if (c8 == '\\') {
                        break;
                    }
                    if (c8 == '\n') {
                        this.f16592e++;
                        this.f16593f = i10;
                    }
                    i6 = i10;
                }
                sb.append(c7);
                i6 = this.f16590c;
                i7 = this.f16591d;
            }
            throw new NumberFormatException("\\u".concat(new String(cArr, this.f16590c, 4)));
        } while (c(1));
        C("Unterminated string");
        throw null;
    }

    /* JADX WARN: Code restructure failed: missing block: B:34:0x004b, code lost:
    
        a();
     */
    /* JADX WARN: Code restructure failed: missing block: B:35:0x004e, code lost:
    
        throw null;
     */
    /* JADX WARN: Removed duplicated region for block: B:47:0x007d  */
    /* JADX WARN: Removed duplicated region for block: B:48:0x0085  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final String z() throws c {
        char[] cArr;
        String string;
        int i6 = 0;
        StringBuilder sb = null;
        do {
            int i7 = 0;
            while (true) {
                int i8 = this.f16590c;
                int i9 = i8 + i7;
                int i10 = this.f16591d;
                cArr = this.f16589b;
                if (i9 < i10) {
                    char c6 = cArr[i8 + i7];
                    if (c6 != '\t' && c6 != '\n' && c6 != '\f' && c6 != '\r' && c6 != ' ') {
                        if (c6 != '#') {
                            if (c6 != ',') {
                                if (c6 != '/' && c6 != '=') {
                                    if (c6 != '{' && c6 != '}' && c6 != ':') {
                                        if (c6 != ';') {
                                            switch (c6) {
                                                case '[':
                                                case ']':
                                                    break;
                                                case '\\':
                                                    break;
                                                default:
                                                    i7++;
                                                    break;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                } else if (i7 >= cArr.length) {
                    if (sb == null) {
                        sb = new StringBuilder(Math.max(i7, 16));
                    }
                    sb.append(cArr, this.f16590c, i7);
                    this.f16590c += i7;
                } else if (c(i7 + 1)) {
                }
            }
            i6 = i7;
            if (sb != null) {
                string = new String(cArr, this.f16590c, i6);
            } else {
                sb.append(cArr, this.f16590c, i6);
                string = sb.toString();
            }
            this.f16590c += i6;
            return string;
        } while (c(1));
        if (sb != null) {
        }
        this.f16590c += i6;
        return string;
    }
}
