package defpackage;

import android.opengl.GLES20;
import android.util.SparseArray;
import android.util.SparseIntArray;
import android.view.View;
import android.view.ViewGroup;
import androidx.recyclerview.widget.RecyclerView;
import j$.util.Objects;
import j$.util.concurrent.ConcurrentHashMap;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import kotlinx.serialization.MissingFieldException;

/* renamed from: ˁᵤ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public class C0723 implements InterfaceC3579 {

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public Object f3476;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public int f3477;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public Object f3478;

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

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public Object f3480;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public Object f3481;

    /* JADX WARN: Multi-variable type inference failed */
    public C0723(String str) {
        this.f3479 = 5;
        C4782 c4782 = new C4782((char) (0 == true ? 1 : 0), 8);
        c4782.f17768 = new Object[8];
        int[] iArr = new int[8];
        for (int i = 0; i < 8; i++) {
            iArr[i] = -1;
        }
        c4782.f17767 = iArr;
        c4782.f17765 = -1;
        this.f3481 = c4782;
        this.f3478 = new StringBuilder();
        this.f3476 = str;
    }

    public C0723(String str, String str2) {
        this.f3479 = 2;
        int iGlCreateProgram = GLES20.glCreateProgram();
        this.f3477 = iGlCreateProgram;
        ˉˇʨ.ˏˋٴ();
        m2740(iGlCreateProgram, 35633, str);
        m2740(iGlCreateProgram, 35632, str2);
        GLES20.glLinkProgram(iGlCreateProgram);
        int[] iArr = {0};
        GLES20.glGetProgramiv(iGlCreateProgram, 35714, iArr, 0);
        ˉˇʨ.ˎˏʜʾ("Unable to link shader program: \n" + GLES20.glGetProgramInfoLog(iGlCreateProgram), iArr[0] == 1);
        GLES20.glUseProgram(iGlCreateProgram);
        this.f3478 = new HashMap();
        int[] iArr2 = new int[1];
        GLES20.glGetProgramiv(iGlCreateProgram, 35721, iArr2, 0);
        this.f3481 = new ʾᵠᵦ[iArr2[0]];
        for (int i = 0; i < iArr2[0]; i++) {
            int i2 = this.f3477;
            int[] iArr3 = new int[1];
            GLES20.glGetProgramiv(i2, 35722, iArr3, 0);
            int i3 = iArr3[0];
            byte[] bArr = new byte[i3];
            GLES20.glGetActiveAttrib(i2, i, i3, new int[1], 0, new int[1], 0, new int[1], 0, bArr, 0);
            int i4 = 0;
            while (true) {
                if (i4 >= i3) {
                    break;
                }
                if (bArr[i4] == 0) {
                    i3 = i4;
                    break;
                }
                i4++;
            }
            String str3 = new String(bArr, 0, i3);
            GLES20.glGetAttribLocation(i2, str3);
            ʾᵠᵦ r2 = new ʾᵠᵦ();
            ((ʾᵠᵦ[]) this.f3481)[i] = r2;
            ((HashMap) this.f3478).put(str3, r2);
        }
        this.f3476 = new HashMap();
        int[] iArr4 = new int[1];
        GLES20.glGetProgramiv(this.f3477, 35718, iArr4, 0);
        this.f3480 = new ˊᵻ[iArr4[0]];
        for (int i5 = 0; i5 < iArr4[0]; i5++) {
            int i6 = this.f3477;
            int[] iArr5 = new int[1];
            GLES20.glGetProgramiv(i6, 35719, iArr5, 0);
            int i7 = iArr5[0];
            byte[] bArr2 = new byte[i7];
            GLES20.glGetActiveUniform(i6, i5, i7, new int[1], 0, new int[1], 0, new int[1], 0, bArr2, 0);
            int i8 = 0;
            while (true) {
                if (i8 >= i7) {
                    break;
                }
                if (bArr2[i8] == 0) {
                    i7 = i8;
                    break;
                }
                i8++;
            }
            String str4 = new String(bArr2, 0, i7);
            GLES20.glGetUniformLocation(i6, str4);
            ˊᵻ r22 = new ˊᵻ(26);
            ((ˊᵻ[]) this.f3480)[i5] = r22;
            ((HashMap) this.f3476).put(str4, r22);
        }
        ˉˇʨ.ˏˋٴ();
    }

    public C0723(ˊʘ r2) {
        this.f3479 = 1;
        this.f3477 = 0;
        this.f3481 = r2;
        this.f3480 = new C3293();
        this.f3478 = new ArrayList();
    }

    public C0723(C1295 c1295, C5246 c5246, byte[] bArr, C1899[] c1899Arr, int i) {
        this.f3479 = 7;
        this.f3481 = c1295;
        this.f3480 = c5246;
        this.f3478 = bArr;
        this.f3476 = c1899Arr;
        this.f3477 = i;
    }

    public C0723(C2152 c2152, EnumC0325 enumC0325, C0723 c0723, InterfaceC3119 interfaceC3119) {
        this.f3479 = 4;
        this.f3481 = c2152;
        this.f3480 = enumC0325;
        this.f3478 = c0723;
        this.f3477 = -1;
        C4782 c4782 = c2152.f8488;
        this.f3476 = c4782;
        c4782.getClass();
    }

    public C0723(C3694 c3694, int i) {
        this.f3479 = 6;
        this.f3476 = c3694;
        this.f3481 = new C4089(5, new byte[5]);
        this.f3480 = new SparseArray();
        this.f3478 = new SparseIntArray();
        this.f3477 = i;
    }

    public C0723(C2258[] c2258Arr, InterfaceC5264[] interfaceC5264Arr, C0408 c0408, Object obj) {
        this.f3479 = 0;
        ᵛᵾˏ.ᵯٴᵦ(c2258Arr.length == interfaceC5264Arr.length);
        this.f3481 = c2258Arr;
        this.f3480 = (InterfaceC5264[]) interfaceC5264Arr.clone();
        this.f3478 = c0408;
        this.f3476 = obj;
        this.f3477 = c2258Arr.length;
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public static void m2740(int i, int i2, String str) {
        int iGlCreateShader = GLES20.glCreateShader(i2);
        GLES20.glShaderSource(iGlCreateShader, str);
        GLES20.glCompileShader(iGlCreateShader);
        int[] iArr = {0};
        GLES20.glGetShaderiv(iGlCreateShader, 35713, iArr, 0);
        ˉˇʨ.ˎˏʜʾ(GLES20.glGetShaderInfoLog(iGlCreateShader) + ", source: \n" + str, iArr[0] == 1);
        GLES20.glAttachShader(i, iGlCreateShader);
        GLES20.glDeleteShader(iGlCreateShader);
        ˉˇʨ.ˏˋٴ();
    }

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public static /* synthetic */ void m2741(C0723 c0723, String str, int i, int i2) {
        if ((i2 & 2) != 0) {
            i = c0723.f3477;
        }
        c0723.m2742(i, str, (i2 & 4) != 0 ? "" : "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'");
        throw null;
    }

    public String toString() {
        switch (this.f3479) {
            case 1:
                return ((C3293) this.f3480).toString() + ", hidden list:" + ((ArrayList) this.f3478).size();
            case 5:
                StringBuilder sb = new StringBuilder("JsonReader(source='");
                sb.append(this.f3476);
                sb.append("', currentPosition=");
                sb.append(this.f3477);
                sb.append(')');
                return sb.toString();
            default:
                return super.toString();
        }
    }

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public void m2742(int i, String str, String str2) {
        throw ᵳʿˉ.ᵻᵢﹳᵰ(i, str + " at path: " + ((C4782) this.f3481).m10095() + (str2.length() == 0 ? "" : "\n".concat(str2)), (String) this.f3476);
    }

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public int m2743() {
        char cCharAt;
        int i = this.f3477;
        if (i == -1) {
            return i;
        }
        String str = (String) this.f3476;
        while (i < str.length() && ((cCharAt = str.charAt(i)) == ' ' || cCharAt == '\n' || cCharAt == '\r' || cCharAt == '\t')) {
            i++;
        }
        this.f3477 = i;
        return i;
    }

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public int m2744() {
        return ((RecyclerView) ((ˊʘ) this.f3481).ᵢˇᵭ).getChildCount();
    }

    /* renamed from: ˆᵼᵷˊ, reason: contains not printable characters */
    public boolean m2745() {
        int iM2743 = m2743();
        String str = (String) this.f3476;
        if (iM2743 >= str.length() || iM2743 == -1 || str.charAt(iM2743) != ',') {
            return false;
        }
        this.f3477++;
        return true;
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public int m2746(CharSequence charSequence, int i) {
        int i2 = i + 4;
        if (i2 < charSequence.length()) {
            ((StringBuilder) this.f3478).append((char) (m2752(charSequence, i + 3) + (m2752(charSequence, i) << 12) + (m2752(charSequence, i + 1) << 8) + (m2752(charSequence, i + 2) << 4)));
            return i2;
        }
        this.f3477 = i;
        if (i2 < charSequence.length()) {
            return m2746(charSequence, this.f3477);
        }
        m2741(this, "Unexpected EOF during unicode escape", 0, 6);
        throw null;
    }

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public int m2747(int i) {
        if (i < ((String) this.f3476).length()) {
            return i;
        }
        return -1;
    }

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public int m2748() {
        C0723 c0723 = (C0723) this.f3478;
        long jM2749 = c0723.m2749();
        int i = (int) jM2749;
        if (jM2749 == i) {
            return i;
        }
        m2741(c0723, "Failed to parse int for input '" + jM2749 + '\'', 0, 6);
        throw null;
    }

    /* JADX WARN: Code restructure failed: missing block: B:100:0x0177, code lost:
    
        defpackage.C0910.m3049();
     */
    /* JADX WARN: Code restructure failed: missing block: B:101:0x017a, code lost:
    
        return r20;
     */
    /* JADX WARN: Code restructure failed: missing block: B:102:0x017b, code lost:
    
        r10 = r1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:103:0x017c, code lost:
    
        if (r14 == false) goto L105;
     */
    /* JADX WARN: Code restructure failed: missing block: B:104:0x017e, code lost:
    
        return r10;
     */
    /* JADX WARN: Code restructure failed: missing block: B:106:0x0183, code lost:
    
        if (r10 == Long.MIN_VALUE) goto L109;
     */
    /* JADX WARN: Code restructure failed: missing block: B:108:0x0186, code lost:
    
        return -r10;
     */
    /* JADX WARN: Code restructure failed: missing block: B:109:0x0187, code lost:
    
        m2741(r24, "Numeric value overflow", 0, 6);
     */
    /* JADX WARN: Code restructure failed: missing block: B:110:0x018b, code lost:
    
        throw null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:111:0x018c, code lost:
    
        m2741(r24, "Expected numeric literal", 0, 6);
     */
    /* JADX WARN: Code restructure failed: missing block: B:112:0x0191, code lost:
    
        throw null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:61:0x00e5, code lost:
    
        m2741(r24, "Unexpected symbol '" + r5 + "' in numeric literal", 0, 6);
     */
    /* JADX WARN: Code restructure failed: missing block: B:62:0x00fc, code lost:
    
        throw null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:63:0x00fd, code lost:
    
        if (r12 == r1) goto L65;
     */
    /* JADX WARN: Code restructure failed: missing block: B:64:0x00ff, code lost:
    
        r5 = true;
     */
    /* JADX WARN: Code restructure failed: missing block: B:65:0x0101, code lost:
    
        r5 = false;
     */
    /* JADX WARN: Code restructure failed: missing block: B:66:0x0102, code lost:
    
        if (r1 == r12) goto L71;
     */
    /* JADX WARN: Code restructure failed: missing block: B:67:0x0104, code lost:
    
        if (r14 == false) goto L72;
     */
    /* JADX WARN: Code restructure failed: missing block: B:69:0x0108, code lost:
    
        if (r1 == (r12 - 1)) goto L71;
     */
    /* JADX WARN: Code restructure failed: missing block: B:72:0x010e, code lost:
    
        if (r3 == false) goto L81;
     */
    /* JADX WARN: Code restructure failed: missing block: B:73:0x0110, code lost:
    
        if (r5 == false) goto L79;
     */
    /* JADX WARN: Code restructure failed: missing block: B:75:0x0118, code lost:
    
        if (r2.charAt(r12) != '\"') goto L77;
     */
    /* JADX WARN: Code restructure failed: missing block: B:76:0x011a, code lost:
    
        r12 = r12 + 1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:77:0x011d, code lost:
    
        m2741(r24, "Expected closing quotation mark", 0, 6);
     */
    /* JADX WARN: Code restructure failed: missing block: B:78:0x0123, code lost:
    
        throw null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:79:0x0124, code lost:
    
        m2741(r24, "EOF", 0, 6);
     */
    /* JADX WARN: Code restructure failed: missing block: B:80:0x0128, code lost:
    
        throw null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:81:0x0129, code lost:
    
        r24.f3477 = r12;
        r1 = r17;
     */
    /* JADX WARN: Code restructure failed: missing block: B:82:0x012d, code lost:
    
        if (r13 == false) goto L102;
     */
    /* JADX WARN: Code restructure failed: missing block: B:83:0x012f, code lost:
    
        r1 = r1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:84:0x0132, code lost:
    
        if (r11 != false) goto L86;
     */
    /* JADX WARN: Code restructure failed: missing block: B:85:0x0134, code lost:
    
        r3 = java.lang.Math.pow(10.0d, -r9);
     */
    /* JADX WARN: Code restructure failed: missing block: B:87:0x013c, code lost:
    
        if (r11 != true) goto L100;
     */
    /* JADX WARN: Code restructure failed: missing block: B:88:0x013e, code lost:
    
        r3 = java.lang.Math.pow(10.0d, r9);
     */
    /* JADX WARN: Code restructure failed: missing block: B:89:0x0143, code lost:
    
        r1 = r1 * r3;
     */
    /* JADX WARN: Code restructure failed: missing block: B:90:0x0148, code lost:
    
        if (r1 > 9.223372036854776E18d) goto L98;
     */
    /* JADX WARN: Code restructure failed: missing block: B:92:0x014e, code lost:
    
        if (r1 < (-9.223372036854776E18d)) goto L98;
     */
    /* JADX WARN: Code restructure failed: missing block: B:94:0x0156, code lost:
    
        if (java.lang.Math.floor(r1) != r1) goto L96;
     */
    /* JADX WARN: Code restructure failed: missing block: B:95:0x0158, code lost:
    
        r10 = (long) r1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:96:0x015a, code lost:
    
        m2741(r24, "Can't convert " + r1 + " to Long", 0, 6);
     */
    /* JADX WARN: Code restructure failed: missing block: B:97:0x0171, code lost:
    
        throw null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:98:0x0172, code lost:
    
        m2741(r24, "Numeric value overflow", 0, 6);
     */
    /* JADX WARN: Code restructure failed: missing block: B:99:0x0176, code lost:
    
        throw null;
     */
    /* 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 long m2749() {
        /*
            Method dump skipped, instructions count: 409
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C0723.m2749():long");
    }

    /* renamed from: ˌᵪ, reason: contains not printable characters */
    public void m2750(View view) {
        if (((ArrayList) this.f3478).remove(view)) {
            ˊʘ r2 = (ˊʘ) this.f3481;
            AbstractC2313 abstractC2313M535 = RecyclerView.m535(view);
            if (abstractC2313M535 != null) {
                RecyclerView recyclerView = (RecyclerView) r2.ᵢˇᵭ;
                int i = abstractC2313M535.f9060;
                if (recyclerView.m552()) {
                    abstractC2313M535.f9077 = i;
                    recyclerView.f861.add(abstractC2313M535);
                } else {
                    abstractC2313M535.f9071.setImportantForAccessibility(i);
                }
                abstractC2313M535.f9060 = 0;
            }
        }
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public C0723 m2751(InterfaceC3119 interfaceC3119) {
        byte b;
        C2152 c2152 = (C2152) this.f3481;
        EnumC0325 enumC0325 = ᵭʝʜ.ᵡˎ(c2152, interfaceC3119);
        C0723 c0723 = (C0723) this.f3478;
        C4782 c4782 = (C4782) c0723.f3481;
        int i = c4782.f17765 + 1;
        c4782.f17765 = i;
        Object[] objArr = (Object[]) c4782.f17768;
        if (i == objArr.length) {
            int i2 = i * 2;
            c4782.f17768 = Arrays.copyOf(objArr, i2);
            c4782.f17767 = Arrays.copyOf((int[]) c4782.f17767, i2);
        }
        ((Object[]) c4782.f17768)[i] = interfaceC3119;
        c0723.m2779(enumC0325.f2017);
        String str = (String) c0723.f3476;
        int i3 = c0723.f3477;
        while (true) {
            int iM2747 = c0723.m2747(i3);
            b = 10;
            if (iM2747 == -1) {
                c0723.f3477 = iM2747;
                break;
            }
            char cCharAt = str.charAt(iM2747);
            if (cCharAt != '\t' && cCharAt != '\n' && cCharAt != '\r' && cCharAt != ' ') {
                c0723.f3477 = iM2747;
                b = ˀʾˀᵛ.ˇʼʤˎ(cCharAt);
                break;
            }
            i3 = iM2747 + 1;
        }
        if (b == 4) {
            m2741(c0723, "Unexpected leading comma", 0, 6);
            throw null;
        }
        int iOrdinal = enumC0325.ordinal();
        if (iOrdinal == 1 || iOrdinal == 2 || iOrdinal == 3) {
            return new C0723(c2152, enumC0325, c0723, interfaceC3119);
        }
        if (((EnumC0325) this.f3480) != enumC0325) {
            return new C0723(c2152, enumC0325, c0723, interfaceC3119);
        }
        c2152.f8488.getClass();
        return this;
    }

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public int m2752(CharSequence charSequence, int i) {
        char cCharAt = charSequence.charAt(i);
        if ('0' <= cCharAt && cCharAt < ':') {
            return cCharAt - '0';
        }
        if ('a' <= cCharAt && cCharAt < 'g') {
            return cCharAt - 'W';
        }
        if ('A' <= cCharAt && cCharAt < 'G') {
            return cCharAt - '7';
        }
        m2741(this, "Invalid toHexChar char '" + cCharAt + "' in unicode escape", 0, 6);
        throw null;
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public void m2753(View view, int i, ViewGroup.LayoutParams layoutParams, boolean z) {
        RecyclerView recyclerView = (RecyclerView) ((ˊʘ) this.f3481).ᵢˇᵭ;
        int childCount = i < 0 ? recyclerView.getChildCount() : m2757(i);
        ((C3293) this.f3480).m7673(childCount, z);
        if (z) {
            m2785(view);
        }
        AbstractC2313 abstractC2313M535 = RecyclerView.m535(view);
        if (abstractC2313M535 != null) {
            if (!abstractC2313M535.m6020() && !abstractC2313M535.m6025()) {
                StringBuilder sb = new StringBuilder("Called attach on a child which is not detached: ");
                sb.append(abstractC2313M535);
                ᵹˉᵞ.ᵪʩ(sb, recyclerView.m576());
                return;
            } else {
                if (RecyclerView.f849) {
                    abstractC2313M535.toString();
                }
                abstractC2313M535.f9061 &= -257;
            }
        } else if (RecyclerView.f850) {
            StringBuilder sb2 = new StringBuilder("No ViewHolder found for child: ");
            sb2.append(view);
            String strM576 = recyclerView.m576();
            sb2.append(", index: ");
            sb2.append(childCount);
            sb2.append(strM576);
            throw new IllegalArgumentException(sb2.toString());
        }
        recyclerView.attachViewToParent(view, childCount, layoutParams);
    }

    /* renamed from: ˑᵝﹳᵜ, reason: contains not printable characters */
    public boolean m2754(int i) {
        return ((C2258[]) this.f3481)[i] != null;
    }

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public void m2755(byte b, boolean z) {
        String str = (String) this.f3476;
        String str2 = ˀʾˀᵛ.ˎˑː(b);
        int i = this.f3477;
        int i2 = z ? i - 1 : i;
        m2741(this, AbstractC1327.m4105("Expected ", str2, ", but had '", (i == str.length() || i2 < 0) ? "EOF" : String.valueOf(str.charAt(i2)), "' instead"), i2, 4);
        throw null;
    }

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public Object m2756(InterfaceC3119 interfaceC3119, int i, InterfaceC5436 interfaceC5436, Object obj) {
        if (interfaceC5436.mo1603().mo6384() || m2770()) {
            return m2765(interfaceC5436);
        }
        return null;
    }

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public int m2757(int i) {
        C3293 c3293 = (C3293) this.f3480;
        if (i < 0) {
            return -1;
        }
        int childCount = ((RecyclerView) ((ˊʘ) this.f3481).ᵢˇᵭ).getChildCount();
        int i2 = i;
        while (i2 < childCount) {
            int iM7680 = i - (i2 - c3293.m7680(i2));
            if (iM7680 == 0) {
                while (c3293.m7679(i2)) {
                    i2++;
                }
                return i2;
            }
            i2 += iM7680;
        }
        return -1;
    }

    /* renamed from: ᵙᵢᵨᵳ, reason: contains not printable characters */
    public int m2758(View view) {
        C3293 c3293 = (C3293) this.f3480;
        int iIndexOfChild = ((RecyclerView) ((ˊʘ) this.f3481).ᵢˇᵭ).indexOfChild(view);
        if (iIndexOfChild == -1 || c3293.m7679(iIndexOfChild)) {
            return -1;
        }
        return iIndexOfChild - c3293.m7680(iIndexOfChild);
    }

    /* renamed from: ᵛˈᵤ, reason: contains not printable characters */
    public void m2759(char c) {
        int i = this.f3477;
        if (i > 0 && c == '\"') {
            try {
                this.f3477 = i - 1;
                String strM2771 = m2771();
                this.f3477 = i;
                if (ᵲᵝᵪ.ᵹᵝᵶ(strM2771, "null")) {
                    m2742(this.f3477 - 1, "Expected string literal but 'null' literal was found", "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls if property has a default value.");
                    throw null;
                }
            } catch (Throwable th) {
                this.f3477 = i;
                throw th;
            }
        }
        m2755(ˀʾˀᵛ.ˇʼʤˎ(c), true);
        throw null;
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public void m2760(int i, String str) {
        String str2 = (String) this.f3476;
        if (str2.length() - i < str.length()) {
            m2741(this, "Unexpected end of boolean literal", 0, 6);
            throw null;
        }
        int length = str.length();
        for (int i2 = 0; i2 < length; i2++) {
            if (str.charAt(i2) != (str2.charAt(i + i2) | ' ')) {
                m2741(this, "Expected valid boolean literal prefix, but had '" + m2771() + '\'', 0, 6);
                throw null;
            }
        }
        this.f3477 = str.length() + i;
    }

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public long m2761(InterfaceC3119 interfaceC3119, int i) {
        return m2778();
    }

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public int m2762(InterfaceC3119 interfaceC3119, int i) {
        return m2748();
    }

    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    public boolean m2763(C0723 c0723, int i) {
        return c0723 != null && Objects.equals(((C2258[]) this.f3481)[i], ((C2258[]) c0723.f3481)[i]) && Objects.equals(((InterfaceC5264[]) this.f3480)[i], ((InterfaceC5264[]) c0723.f3480)[i]);
    }

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public void m2764(InterfaceC3119 interfaceC3119) {
        C0723 c0723 = (C0723) this.f3478;
        C4782 c4782 = ((C2152) this.f3481).f8488;
        c4782.getClass();
        if (c0723.m2745()) {
            c4782.getClass();
            ᵳʿˉ.ᵾᵬ(c0723, "");
            throw null;
        }
        c0723.m2779(((EnumC0325) this.f3480).f2016);
        C4782 c47822 = (C4782) c0723.f3481;
        int i = c47822.f17765;
        int[] iArr = (int[]) c47822.f17767;
        if (iArr[i] == -2) {
            iArr[i] = -1;
            c47822.f17765 = i - 1;
        }
        int i2 = c47822.f17765;
        if (i2 != -1) {
            c47822.f17765 = i2 - 1;
        }
    }

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public Object m2765(InterfaceC5436 interfaceC5436) {
        try {
            return interfaceC5436.mo1600(this);
        } catch (MissingFieldException e) {
            if (AbstractC1789.m5073(e.getMessage(), "at path", false)) {
                throw e;
            }
            throw new MissingFieldException(e.f1148, e.getMessage() + " at path: " + ((C4782) ((C0723) this.f3478).f3481).m10095(), e);
        }
    }

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public void m2766(int i) {
        int iM2757 = m2757(i);
        ((C3293) this.f3480).m7676(iM2757);
        RecyclerView recyclerView = (RecyclerView) ((ˊʘ) this.f3481).ᵢˇᵭ;
        View childAt = recyclerView.getChildAt(iM2757);
        if (childAt != null) {
            AbstractC2313 abstractC2313M535 = RecyclerView.m535(childAt);
            if (abstractC2313M535 != null) {
                if (abstractC2313M535.m6020() && !abstractC2313M535.m6025()) {
                    StringBuilder sb = new StringBuilder("called detach on an already detached child ");
                    sb.append(abstractC2313M535);
                    ᵹˉᵞ.ᵪʩ(sb, recyclerView.m576());
                    return;
                } else {
                    if (RecyclerView.f849) {
                        abstractC2313M535.toString();
                    }
                    abstractC2313M535.m6026(256);
                }
            }
        } else if (RecyclerView.f850) {
            ᵹˉᵞ.ᵯٴᵦ("No view at offset ", iM2757, recyclerView.m576());
            return;
        }
        recyclerView.detachViewFromParent(iM2757);
    }

    /* JADX WARN: Removed duplicated region for block: B:41:0x0141  */
    @Override // defpackage.InterfaceC3579
    /* 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 void mo2767(defpackage.C3493 r38) {
        /*
            Method dump skipped, instructions count: 753
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C0723.mo2767(ᵥˁˋˁ):void");
    }

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public View m2768(int i) {
        return ((RecyclerView) ((ˊʘ) this.f3481).ᵢˇᵭ).getChildAt(m2757(i));
    }

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public Object m2769(InterfaceC3119 interfaceC3119, int i, InterfaceC5436 interfaceC5436, Object obj) {
        C4782 c4782 = (C4782) ((C0723) this.f3478).f3481;
        boolean z = ((EnumC0325) this.f3480) == EnumC0325.f2013 && (i & 1) == 0;
        if (z) {
            int[] iArr = (int[]) c4782.f17767;
            int i2 = c4782.f17765;
            if (iArr[i2] == -2) {
                ((Object[]) c4782.f17768)[i2] = ˊᵻ.ᵡⁱᵥ;
            }
        }
        Object objM2765 = m2765(interfaceC5436);
        if (z) {
            int[] iArr2 = (int[]) c4782.f17767;
            int i3 = c4782.f17765;
            if (iArr2[i3] != -2) {
                int i4 = i3 + 1;
                c4782.f17765 = i4;
                Object[] objArr = (Object[]) c4782.f17768;
                if (i4 == objArr.length) {
                    int i5 = i4 * 2;
                    c4782.f17768 = Arrays.copyOf(objArr, i5);
                    c4782.f17767 = Arrays.copyOf((int[]) c4782.f17767, i5);
                }
            }
            Object[] objArr2 = (Object[]) c4782.f17768;
            int i6 = c4782.f17765;
            objArr2[i6] = objM2765;
            ((int[]) c4782.f17767)[i6] = -2;
        }
        return objM2765;
    }

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public boolean m2770() {
        boolean z;
        C0723 c0723 = (C0723) this.f3478;
        int iM2747 = c0723.m2747(c0723.m2743());
        String str = (String) c0723.f3476;
        int length = str.length() - iM2747;
        if (length < 4 || iM2747 == -1) {
            z = false;
        } else {
            int i = 0;
            while (true) {
                if (i < 4) {
                    if ("null".charAt(i) != str.charAt(iM2747 + i)) {
                        break;
                    }
                    i++;
                } else if (length <= 4 || ˀʾˀᵛ.ˇʼʤˎ(str.charAt(iM2747 + 4)) != 0) {
                    c0723.f3477 = iM2747 + 4;
                    z = true;
                }
            }
            z = false;
        }
        return !z;
    }

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public String m2771() {
        String string;
        StringBuilder sb = (StringBuilder) this.f3478;
        String str = (String) this.f3476;
        String str2 = (String) this.f3480;
        if (str2 != null) {
            this.f3480 = null;
            return str2;
        }
        int iM2743 = m2743();
        if (iM2743 >= str.length() || iM2743 == -1) {
            m2741(this, "EOF", iM2743, 4);
            throw null;
        }
        byte b = ˀʾˀᵛ.ˇʼʤˎ(str.charAt(iM2743));
        if (b == 1) {
            return m2773();
        }
        if (b != 0) {
            m2741(this, "Expected beginning of the string, but got " + str.charAt(iM2743), 0, 6);
            throw null;
        }
        boolean z = false;
        while (ˀʾˀᵛ.ˇʼʤˎ(str.charAt(iM2743)) == 0) {
            iM2743++;
            if (iM2743 >= str.length()) {
                sb.append((CharSequence) str, this.f3477, iM2743);
                int iM2747 = m2747(iM2743);
                if (iM2747 == -1) {
                    this.f3477 = iM2743;
                    sb.append((CharSequence) str, 0, 0);
                    String string2 = sb.toString();
                    sb.setLength(0);
                    return string2;
                }
                iM2743 = iM2747;
                z = true;
            }
        }
        int i = this.f3477;
        if (z) {
            sb.append((CharSequence) str, i, iM2743);
            String string3 = sb.toString();
            sb.setLength(0);
            string = string3;
        } else {
            string = str.subSequence(i, iM2743).toString();
        }
        this.f3477 = iM2743;
        return string;
    }

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public int m2772(String str) {
        int iGlGetAttribLocation = GLES20.glGetAttribLocation(this.f3477, str);
        GLES20.glEnableVertexAttribArray(iGlGetAttribLocation);
        ˉˇʨ.ˏˋٴ();
        return iGlGetAttribLocation;
    }

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public String m2773() {
        String str = (String) this.f3480;
        if (str == null) {
            return m2777();
        }
        this.f3480 = null;
        return str;
    }

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public int m2774(InterfaceC3119 interfaceC3119) {
        C2152 c2152 = (C2152) this.f3481;
        C4782 c4782 = c2152.f8488;
        C0723 c0723 = (C0723) this.f3478;
        EnumC0325 enumC0325 = (EnumC0325) this.f3480;
        int iOrdinal = enumC0325.ordinal();
        boolean zM2745 = false;
        int iIntValue = -1;
        if (iOrdinal == 0) {
            C4782 c47822 = (C4782) this.f3476;
            boolean zM27452 = c0723.m2745();
            if (c0723.m2780()) {
                c47822.getClass();
                String strM2777 = c0723.m2777();
                c0723.m2779(':');
                C4782 c47823 = c2152.f8488;
                c47823.getClass();
                AbstractC0540.m2331(c2152, interfaceC3119);
                int iMo6389 = interfaceC3119.mo6389(strM2777);
                if (iMo6389 != -3) {
                    iIntValue = iMo6389;
                } else {
                    c47823.getClass();
                    C1212 c1212 = c2152.f8487;
                    C4475 c4475 = new C4475(interfaceC3119, 7, c2152);
                    ConcurrentHashMap concurrentHashMap = c1212.f5136;
                    Map map = (Map) concurrentHashMap.get(interfaceC3119);
                    ʾᵠᵦ r10 = AbstractC0540.f2800;
                    Object objMo1401 = map != null ? map.get(r10) : null;
                    if (objMo1401 == null) {
                        objMo1401 = null;
                    }
                    if (objMo1401 == null) {
                        objMo1401 = c4475.mo1401();
                        Object concurrentHashMap2 = concurrentHashMap.get(interfaceC3119);
                        if (concurrentHashMap2 == null) {
                            concurrentHashMap2 = new ConcurrentHashMap(2);
                            concurrentHashMap.put(interfaceC3119, concurrentHashMap2);
                        }
                        ((Map) concurrentHashMap2).put(r10, objMo1401);
                    }
                    Integer num = (Integer) ((Map) objMo1401).get(strM2777);
                    iIntValue = num != null ? num.intValue() : -3;
                }
                if (iIntValue == -3) {
                    c0723.m2742(AbstractC1789.m5094(6, ((String) c0723.f3476).subSequence(0, c0723.f3477).toString(), strM2777), "Encountered an unknown key '" + strM2777 + '\'', "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.");
                    throw null;
                }
            } else if (zM27452) {
                c4782.getClass();
                ᵳʿˉ.ᵤᵙᵷ(c0723);
                throw null;
            }
        } else if (iOrdinal != 2) {
            boolean zM27453 = c0723.m2745();
            if (c0723.m2780()) {
                int i = this.f3477;
                if (i != -1 && !zM27453) {
                    m2741(c0723, "Expected end of the array or comma", 0, 6);
                    throw null;
                }
                iIntValue = i + 1;
                this.f3477 = iIntValue;
            } else if (zM27453) {
                c4782.getClass();
                ᵳʿˉ.ᵾᵬ(c0723, "array");
                throw null;
            }
        } else {
            int i2 = this.f3477;
            boolean z = i2 % 2 != 0;
            if (!z) {
                c0723.m2779(':');
            } else if (i2 != -1) {
                zM2745 = c0723.m2745();
            }
            if (c0723.m2780()) {
                if (z) {
                    int i3 = this.f3477;
                    int i4 = c0723.f3477;
                    if (i3 == -1) {
                        if (zM2745) {
                            m2741(c0723, "Unexpected leading comma", i4, 4);
                            throw null;
                        }
                    } else if (!zM2745) {
                        m2741(c0723, "Expected comma after the key-value pair", i4, 4);
                        throw null;
                    }
                }
                iIntValue = this.f3477 + 1;
                this.f3477 = iIntValue;
            } else if (zM2745) {
                c4782.getClass();
                ᵳʿˉ.ᵤᵙᵷ(c0723);
                throw null;
            }
        }
        if (enumC0325 != EnumC0325.f2013) {
            C4782 c47824 = (C4782) c0723.f3481;
            ((int[]) c47824.f17767)[c47824.f17765] = iIntValue;
        }
        return iIntValue;
    }

    @Override // defpackage.InterfaceC3579
    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public void mo2775(C1240 c1240, InterfaceC1982 interfaceC1982, C4996 c4996) {
    }

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public View m2776(int i) {
        return ((RecyclerView) ((ˊʘ) this.f3481).ᵢˇᵭ).getChildAt(i);
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public String m2777() {
        String string;
        StringBuilder sb = (StringBuilder) this.f3478;
        String str = (String) this.f3476;
        m2779('\"');
        int i = this.f3477;
        int iM5058 = AbstractC1789.m5058(str, '\"', i, 4);
        if (iM5058 == -1) {
            m2771();
            m2755((byte) 1, false);
            throw null;
        }
        int i2 = i;
        while (i2 < iM5058) {
            if (str.charAt(i2) == '\\') {
                int iM2747 = this.f3477;
                char cCharAt = str.charAt(i2);
                boolean z = false;
                while (cCharAt != '\"') {
                    if (cCharAt == '\\') {
                        sb.append((CharSequence) str, iM2747, i2);
                        int iM27472 = m2747(i2 + 1);
                        if (iM27472 == -1) {
                            m2741(this, "Expected escape sequence to continue, got EOF", 0, 6);
                            throw null;
                        }
                        int iM2746 = iM27472 + 1;
                        char cCharAt2 = str.charAt(iM27472);
                        if (cCharAt2 == 'u') {
                            iM2746 = m2746(str, iM2746);
                        } else {
                            char c = cCharAt2 < 'u' ? C2796.f10765[cCharAt2] : (char) 0;
                            if (c == 0) {
                                m2741(this, "Invalid escaped char '" + cCharAt2 + '\'', 0, 6);
                                throw null;
                            }
                            sb.append(c);
                        }
                        iM2747 = m2747(iM2746);
                        if (iM2747 == -1) {
                            m2741(this, "Unexpected EOF", iM2747, 4);
                            throw null;
                        }
                    } else {
                        i2++;
                        if (i2 >= str.length()) {
                            sb.append((CharSequence) str, iM2747, i2);
                            iM2747 = m2747(i2);
                            if (iM2747 == -1) {
                                m2741(this, "Unexpected EOF", iM2747, 4);
                                throw null;
                            }
                        } else {
                            continue;
                            cCharAt = str.charAt(i2);
                        }
                    }
                    i2 = iM2747;
                    z = true;
                    cCharAt = str.charAt(i2);
                }
                if (z) {
                    sb.append((CharSequence) str, iM2747, i2);
                    String string2 = sb.toString();
                    sb.setLength(0);
                    string = string2;
                } else {
                    string = str.subSequence(iM2747, i2).toString();
                }
                this.f3477 = i2 + 1;
                return string;
            }
            i2++;
        }
        this.f3477 = iM5058 + 1;
        return str.substring(i, iM5058);
    }

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public long m2778() {
        return ((C0723) this.f3478).m2749();
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public void m2779(char c) {
        int i = this.f3477;
        if (i == -1) {
            m2759(c);
            throw null;
        }
        String str = (String) this.f3476;
        while (i < str.length()) {
            int i2 = i + 1;
            char cCharAt = str.charAt(i);
            if (cCharAt != ' ' && cCharAt != '\n' && cCharAt != '\r' && cCharAt != '\t') {
                this.f3477 = i2;
                if (cCharAt == c) {
                    return;
                }
                m2759(c);
                throw null;
            }
            i = i2;
        }
        this.f3477 = -1;
        m2759(c);
        throw null;
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public boolean m2780() {
        int i = this.f3477;
        if (i == -1) {
            return false;
        }
        String str = (String) this.f3476;
        while (i < str.length()) {
            char cCharAt = str.charAt(i);
            if (cCharAt != ' ' && cCharAt != '\n' && cCharAt != '\r' && cCharAt != '\t') {
                this.f3477 = i;
                return (cCharAt == ',' || cCharAt == ':' || cCharAt == ']' || cCharAt == '}') ? false : true;
            }
            i++;
        }
        this.f3477 = i;
        return false;
    }

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public int m2781() {
        return ((RecyclerView) ((ˊʘ) this.f3481).ᵢˇᵭ).getChildCount() - ((ArrayList) this.f3478).size();
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public void m2782(int i, View view, boolean z) {
        RecyclerView recyclerView = (RecyclerView) ((ˊʘ) this.f3481).ᵢˇᵭ;
        int childCount = i < 0 ? recyclerView.getChildCount() : m2757(i);
        ((C3293) this.f3480).m7673(childCount, z);
        if (z) {
            m2785(view);
        }
        recyclerView.addView(view, childCount);
        AbstractC2313 abstractC2313M535 = RecyclerView.m535(view);
        AbstractC1307 abstractC1307 = recyclerView.f898;
        if (abstractC1307 == null || abstractC2313M535 == null) {
            return;
        }
        abstractC1307.mo4026(abstractC2313M535);
    }

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public String m2783(InterfaceC3119 interfaceC3119, int i) {
        return m2784();
    }

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public String m2784() {
        ((C4782) this.f3476).getClass();
        return ((C0723) this.f3478).m2773();
    }

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public void m2785(View view) {
        ((ArrayList) this.f3478).add(view);
        ˊʘ r3 = (ˊʘ) this.f3481;
        AbstractC2313 abstractC2313M535 = RecyclerView.m535(view);
        if (abstractC2313M535 != null) {
            View view2 = abstractC2313M535.f9071;
            RecyclerView recyclerView = (RecyclerView) r3.ᵢˇᵭ;
            int i = abstractC2313M535.f9077;
            if (i != -1) {
                abstractC2313M535.f9060 = i;
            } else {
                abstractC2313M535.f9060 = view2.getImportantForAccessibility();
            }
            if (!recyclerView.m552()) {
                view2.setImportantForAccessibility(4);
            } else {
                abstractC2313M535.f9077 = 4;
                recyclerView.f861.add(abstractC2313M535);
            }
        }
    }
}
