package defpackage;

import android.opengl.GLES20;
import android.util.SparseArray;
import android.util.SparseBooleanArray;
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.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import kotlinx.serialization.MissingFieldException;

/* JADX INFO: renamed from: ᴵˏ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public class C2196 implements InterfaceC4951 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final /* synthetic */ int f8722;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public Object f8723;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public int f8724;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public Object f8725;

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public Object f8726;

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public Object f8727;

    /* JADX WARN: Multi-variable type inference failed */
    public C2196(String str) {
        this.f8722 = 5;
        C1404 c1404 = new C1404((char) (0 == true ? 1 : 0), 8);
        c1404.f5807 = new Object[8];
        int[] iArr = new int[8];
        for (int i = 0; i < 8; i++) {
            iArr[i] = -1;
        }
        c1404.f5809 = iArr;
        c1404.f5808 = -1;
        this.f8723 = c1404;
        this.f8726 = new StringBuilder();
        this.f8727 = str;
    }

    public C2196(String str, String str2) {
        this.f8722 = 2;
        int iGlCreateProgram = GLES20.glCreateProgram();
        this.f8724 = iGlCreateProgram;
        ᵺᵘ.ˊᵫᵗ();
        m5707(iGlCreateProgram, 35633, str);
        m5707(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.f8726 = new HashMap();
        int[] iArr2 = new int[1];
        GLES20.glGetProgramiv(iGlCreateProgram, 35721, iArr2, 0);
        this.f8723 = new ʻﾞ[iArr2[0]];
        for (int i = 0; i < iArr2[0]; i++) {
            int i2 = this.f8724;
            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.f8723)[i] = r2;
            ((HashMap) this.f8726).put(str3, r2);
        }
        this.f8727 = new HashMap();
        int[] iArr4 = new int[1];
        GLES20.glGetProgramiv(this.f8724, 35718, iArr4, 0);
        this.f8725 = new C3664[iArr4[0]];
        for (int i5 = 0; i5 < iArr4[0]; i5++) {
            int i6 = this.f8724;
            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);
            C3664 c3664 = new C3664(26);
            ((C3664[]) this.f8725)[i5] = c3664;
            ((HashMap) this.f8727).put(str4, c3664);
        }
        ᵺᵘ.ˊᵫᵗ();
    }

    public C2196(C0272 c0272, ˈᵷᵵᵞ r3, byte[] bArr, C1013[] c1013Arr, int i) {
        this.f8722 = 7;
        this.f8723 = c0272;
        this.f8725 = r3;
        this.f8726 = bArr;
        this.f8727 = c1013Arr;
        this.f8724 = i;
    }

    public C2196(ᵢʒʡᵟ r2) {
        this.f8722 = 1;
        this.f8724 = 0;
        this.f8723 = r2;
        this.f8725 = new C1705();
        this.f8726 = new ArrayList();
    }

    public C2196(C3943 c3943, EnumC4414 enumC4414, C2196 c2196, InterfaceC1482 interfaceC1482) {
        this.f8722 = 4;
        this.f8723 = c3943;
        this.f8725 = enumC4414;
        this.f8726 = c2196;
        this.f8724 = -1;
        C1404 c1404 = c3943.f15071;
        this.f8727 = c1404;
        c1404.getClass();
    }

    public C2196(C4018 c4018, int i) {
        this.f8722 = 6;
        this.f8727 = c4018;
        this.f8723 = new C3180(5, new byte[5]);
        this.f8725 = new SparseArray();
        this.f8726 = new SparseIntArray();
        this.f8724 = i;
    }

    public C2196(C1619[] c1619Arr, InterfaceC2380[] interfaceC2380Arr, C3090 c3090, Object obj) {
        this.f8722 = 0;
        ᵻᵪ.ᵱᵽʡᵚ(c1619Arr.length == interfaceC2380Arr.length);
        this.f8723 = c1619Arr;
        this.f8725 = (InterfaceC2380[]) interfaceC2380Arr.clone();
        this.f8726 = c3090;
        this.f8727 = obj;
        this.f8724 = c1619Arr.length;
    }

    /* JADX INFO: renamed from: ˌᵨʠᵫ, reason: contains not printable characters */
    public static /* synthetic */ void m5706(C2196 c2196, String str, int i, int i2) {
        if ((i2 & 2) != 0) {
            i = c2196.f8724;
        }
        c2196.m5713(i, str, (i2 & 4) != 0 ? "" : "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'");
        throw null;
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public static void m5707(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);
        ᵺᵘ.ˊᵫᵗ();
    }

    public String toString() {
        switch (this.f8722) {
            case 1:
                return ((C1705) this.f8725).toString() + ", hidden list:" + ((ArrayList) this.f8726).size();
            case 5:
                StringBuilder sb = new StringBuilder("JsonReader(source='");
                sb.append(this.f8727);
                sb.append("', currentPosition=");
                sb.append(this.f8724);
                sb.append(')');
                return sb.toString();
            default:
                return super.toString();
        }
    }

    @Override // defpackage.InterfaceC4951
    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public void mo5708(C0085 c0085, InterfaceC4550 interfaceC4550, C4173 c4173) {
    }

    /* JADX INFO: renamed from: ʽᵡᵢᵾ, reason: contains not printable characters */
    public int m5709(int i) {
        if (i < ((String) this.f8727).length()) {
            return i;
        }
        return -1;
    }

    /* JADX INFO: renamed from: ʿٴˇ, reason: contains not printable characters */
    public int m5710(String str) {
        int iGlGetAttribLocation = GLES20.glGetAttribLocation(this.f8724, str);
        GLES20.glEnableVertexAttribArray(iGlGetAttribLocation);
        ᵺᵘ.ˊᵫᵗ();
        return iGlGetAttribLocation;
    }

    /* JADX INFO: renamed from: ˀᵭ, reason: contains not printable characters */
    public View m5711(int i) {
        return ((RecyclerView) ((ᵢʒʡᵟ) this.f8723).ᵜᵪʾ).getChildAt(i);
    }

    /* JADX INFO: renamed from: ˁˌᵩ, reason: contains not printable characters */
    public int m5712(int i) {
        C1705 c1705 = (C1705) this.f8725;
        if (i < 0) {
            return -1;
        }
        int childCount = ((RecyclerView) ((ᵢʒʡᵟ) this.f8723).ᵜᵪʾ).getChildCount();
        int i2 = i;
        while (i2 < childCount) {
            int iM4696 = i - (i2 - c1705.m4696(i2));
            if (iM4696 == 0) {
                while (c1705.m4694(i2)) {
                    i2++;
                }
                return i2;
            }
            i2 += iM4696;
        }
        return -1;
    }

    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public void m5713(int i, String str, String str2) {
        throw ˋˀᵧ.ːˏᵟᵯ(i, str + " at path: " + ((C1404) this.f8723).m4038() + (str2.length() == 0 ? "" : "\n".concat(str2)), (String) this.f8727);
    }

    /* JADX INFO: renamed from: ˈⁱᵡ, reason: contains not printable characters */
    public int m5714() {
        char cCharAt;
        int i = this.f8724;
        if (i == -1) {
            return i;
        }
        String str = (String) this.f8727;
        while (i < str.length() && ((cCharAt = str.charAt(i)) == ' ' || cCharAt == '\n' || cCharAt == '\r' || cCharAt == '\t')) {
            i++;
        }
        this.f8724 = i;
        return i;
    }

    /* JADX INFO: renamed from: ˉᵲ, reason: contains not printable characters */
    public long m5715(InterfaceC1482 interfaceC1482, int i) {
        return m5718();
    }

    /* JADX INFO: renamed from: ˉᵵᵜ, reason: contains not printable characters */
    public int m5716() {
        return ((RecyclerView) ((ᵢʒʡᵟ) this.f8723).ᵜᵪʾ).getChildCount() - ((ArrayList) this.f8726).size();
    }

    /* JADX INFO: renamed from: ˊˌˊ, reason: contains not printable characters */
    public void m5717(View view) {
        if (((ArrayList) this.f8726).remove(view)) {
            ᵢʒʡᵟ r2 = (ᵢʒʡᵟ) this.f8723;
            AbstractC4793 abstractC4793M539 = RecyclerView.m539(view);
            if (abstractC4793M539 != null) {
                RecyclerView recyclerView = (RecyclerView) r2.ᵜᵪʾ;
                int i = abstractC4793M539.f18235;
                if (recyclerView.m587()) {
                    abstractC4793M539.f18234 = i;
                    recyclerView.f919.add(abstractC4793M539);
                } else {
                    abstractC4793M539.f18236.setImportantForAccessibility(i);
                }
                abstractC4793M539.f18235 = 0;
            }
        }
    }

    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public long m5718() {
        return ((C2196) this.f8726).m5739();
    }

    /* JADX INFO: renamed from: ˊᵡᵗʨ, reason: contains not printable characters */
    public void m5719(View view) {
        ((ArrayList) this.f8726).add(view);
        ᵢʒʡᵟ r3 = (ᵢʒʡᵟ) this.f8723;
        AbstractC4793 abstractC4793M539 = RecyclerView.m539(view);
        if (abstractC4793M539 != null) {
            View view2 = abstractC4793M539.f18236;
            RecyclerView recyclerView = (RecyclerView) r3.ᵜᵪʾ;
            int i = abstractC4793M539.f18234;
            if (i != -1) {
                abstractC4793M539.f18235 = i;
            } else {
                abstractC4793M539.f18235 = view2.getImportantForAccessibility();
            }
            if (!recyclerView.m587()) {
                view2.setImportantForAccessibility(4);
            } else {
                abstractC4793M539.f18234 = 4;
                recyclerView.f919.add(abstractC4793M539);
            }
        }
    }

    /* JADX INFO: renamed from: ˊᵨᵧ, reason: contains not printable characters */
    public Object m5720(InterfaceC1482 interfaceC1482, int i, InterfaceC4732 interfaceC4732, Object obj) {
        if (interfaceC4732.mo1144().mo1419() || m5725()) {
            return m5730(interfaceC4732);
        }
        return null;
    }

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public boolean m5721() {
        int i = this.f8724;
        if (i == -1) {
            return false;
        }
        String str = (String) this.f8727;
        while (i < str.length()) {
            char cCharAt = str.charAt(i);
            if (cCharAt != ' ' && cCharAt != '\n' && cCharAt != '\r' && cCharAt != '\t') {
                this.f8724 = i;
                return (cCharAt == ',' || cCharAt == ':' || cCharAt == ']' || cCharAt == '}') ? false : true;
            }
            i++;
        }
        this.f8724 = i;
        return false;
    }

    /* JADX INFO: renamed from: ˊᵾʽʼ, reason: contains not printable characters */
    public int m5722() {
        return ((RecyclerView) ((ᵢʒʡᵟ) this.f8723).ᵜᵪʾ).getChildCount();
    }

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public String m5723() {
        String string;
        StringBuilder sb = (StringBuilder) this.f8726;
        String str = (String) this.f8727;
        String str2 = (String) this.f8725;
        if (str2 != null) {
            this.f8725 = null;
            return str2;
        }
        int iM5714 = m5714();
        if (iM5714 >= str.length() || iM5714 == -1) {
            m5706(this, "EOF", iM5714, 4);
            throw null;
        }
        byte b = ᵸˊʾᵜ.ᵷᵺʾᵖ(str.charAt(iM5714));
        if (b == 1) {
            return m5731();
        }
        if (b != 0) {
            m5706(this, "Expected beginning of the string, but got " + str.charAt(iM5714), 0, 6);
            throw null;
        }
        boolean z = false;
        while (ᵸˊʾᵜ.ᵷᵺʾᵖ(str.charAt(iM5714)) == 0) {
            iM5714++;
            if (iM5714 >= str.length()) {
                sb.append((CharSequence) str, this.f8724, iM5714);
                int iM5709 = m5709(iM5714);
                if (iM5709 == -1) {
                    this.f8724 = iM5714;
                    sb.append((CharSequence) str, 0, 0);
                    String string2 = sb.toString();
                    sb.setLength(0);
                    return string2;
                }
                iM5714 = iM5709;
                z = true;
            }
        }
        int i = this.f8724;
        if (z) {
            sb.append((CharSequence) str, i, iM5714);
            String string3 = sb.toString();
            sb.setLength(0);
            string = string3;
        } else {
            string = str.subSequence(i, iM5714).toString();
        }
        this.f8724 = iM5714;
        return string;
    }

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public Object m5724(InterfaceC1482 interfaceC1482, int i, InterfaceC4732 interfaceC4732, Object obj) {
        C1404 c1404 = (C1404) ((C2196) this.f8726).f8723;
        boolean z = ((EnumC4414) this.f8725) == EnumC4414.f16808 && (i & 1) == 0;
        if (z) {
            int[] iArr = (int[]) c1404.f5809;
            int i2 = c1404.f5808;
            if (iArr[i2] == -2) {
                ((Object[]) c1404.f5807)[i2] = ᵠʽᵲ.ˈᵲᵢ;
            }
        }
        Object objM5730 = m5730(interfaceC4732);
        if (z) {
            int[] iArr2 = (int[]) c1404.f5809;
            int i3 = c1404.f5808;
            if (iArr2[i3] != -2) {
                int i4 = i3 + 1;
                c1404.f5808 = i4;
                Object[] objArr = (Object[]) c1404.f5807;
                if (i4 == objArr.length) {
                    int i5 = i4 * 2;
                    c1404.f5807 = Arrays.copyOf(objArr, i5);
                    c1404.f5809 = Arrays.copyOf((int[]) c1404.f5809, i5);
                }
            }
            Object[] objArr2 = (Object[]) c1404.f5807;
            int i6 = c1404.f5808;
            objArr2[i6] = objM5730;
            ((int[]) c1404.f5809)[i6] = -2;
        }
        return objM5730;
    }

    /* JADX INFO: renamed from: ˏːˆ, reason: contains not printable characters */
    public boolean m5725() {
        boolean z;
        C2196 c2196 = (C2196) this.f8726;
        int iM5709 = c2196.m5709(c2196.m5714());
        String str = (String) c2196.f8727;
        int length = str.length() - iM5709;
        if (length < 4 || iM5709 == -1) {
            z = false;
        } else {
            int i = 0;
            while (true) {
                if (i < 4) {
                    if ("null".charAt(i) != str.charAt(iM5709 + i)) {
                        break;
                    }
                    i++;
                } else if (length <= 4 || ᵸˊʾᵜ.ᵷᵺʾᵖ(str.charAt(iM5709 + 4)) != 0) {
                    c2196.f8724 = iM5709 + 4;
                    z = true;
                }
            }
            z = false;
        }
        return !z;
    }

    /* JADX INFO: renamed from: ˑʢ, reason: contains not printable characters */
    public boolean m5726(int i) {
        return ((C1619[]) this.f8723)[i] != null;
    }

    /* JADX INFO: renamed from: ˑˊᵲ, reason: contains not printable characters */
    public int m5727(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';
        }
        m5706(this, "Invalid toHexChar char '" + cCharAt + "' in unicode escape", 0, 6);
        throw null;
    }

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public String m5728() {
        ((C1404) this.f8727).getClass();
        return ((C2196) this.f8726).m5731();
    }

    /* JADX INFO: renamed from: ᵛˑﹳ, reason: contains not printable characters */
    public int m5729(View view) {
        C1705 c1705 = (C1705) this.f8725;
        int iIndexOfChild = ((RecyclerView) ((ᵢʒʡᵟ) this.f8723).ᵜᵪʾ).indexOfChild(view);
        if (iIndexOfChild == -1 || c1705.m4694(iIndexOfChild)) {
            return -1;
        }
        return iIndexOfChild - c1705.m4696(iIndexOfChild);
    }

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public Object m5730(InterfaceC4732 interfaceC4732) {
        try {
            return interfaceC4732.mo1142(this);
        } catch (MissingFieldException e) {
            if (AbstractC3801.m8469(e.getMessage(), "at path", false)) {
                throw e;
            }
            throw new MissingFieldException(e.f1148, e.getMessage() + " at path: " + ((C1404) ((C2196) this.f8726).f8723).m4038(), e);
        }
    }

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public String m5731() {
        String str = (String) this.f8725;
        if (str == null) {
            return m5742();
        }
        this.f8725 = null;
        return str;
    }

    /* JADX INFO: renamed from: ᵞᵛᵘ, reason: contains not printable characters */
    public void m5732(char c) {
        int i = this.f8724;
        if (i > 0 && c == '\"') {
            try {
                this.f8724 = i - 1;
                String strM5723 = m5723();
                this.f8724 = i;
                if (ᵥˈᵛ.ˊᵫᵗ(strM5723, "null")) {
                    m5713(this.f8724 - 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.f8724 = i;
                throw th;
            }
        }
        m5749(ᵸˊʾᵜ.ᵷᵺʾᵖ(c), true);
        throw null;
    }

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public int m5733() {
        C2196 c2196 = (C2196) this.f8726;
        long jM5739 = c2196.m5739();
        int i = (int) jM5739;
        if (jM5739 == i) {
            return i;
        }
        m5706(c2196, "Failed to parse int for input '" + jM5739 + '\'', 0, 6);
        throw null;
    }

    /* JADX INFO: renamed from: ᵠˏˏ, reason: contains not printable characters */
    public View m5734(int i) {
        return ((RecyclerView) ((ᵢʒʡᵟ) this.f8723).ᵜᵪʾ).getChildAt(m5712(i));
    }

    /* JADX INFO: renamed from: ᵨˈʼﹶ, reason: contains not printable characters */
    public boolean m5735() {
        int iM5714 = m5714();
        String str = (String) this.f8727;
        if (iM5714 >= str.length() || iM5714 == -1 || str.charAt(iM5714) != ',') {
            return false;
        }
        this.f8724++;
        return true;
    }

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public int m5736(CharSequence charSequence, int i) {
        int i2 = i + 4;
        if (i2 < charSequence.length()) {
            ((StringBuilder) this.f8726).append((char) (m5727(charSequence, i + 3) + (m5727(charSequence, i) << 12) + (m5727(charSequence, i + 1) << 8) + (m5727(charSequence, i + 2) << 4)));
            return i2;
        }
        this.f8724 = i;
        if (i2 < charSequence.length()) {
            return m5736(charSequence, this.f8724);
        }
        m5706(this, "Unexpected EOF during unicode escape", 0, 6);
        throw null;
    }

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public String m5737(InterfaceC1482 interfaceC1482, int i) {
        return m5728();
    }

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public int m5738(InterfaceC1482 interfaceC1482) {
        C3943 c3943 = (C3943) this.f8723;
        C1404 c1404 = c3943.f15071;
        C2196 c2196 = (C2196) this.f8726;
        EnumC4414 enumC4414 = (EnumC4414) this.f8725;
        int iOrdinal = enumC4414.ordinal();
        boolean zM5735 = false;
        int iIntValue = -1;
        if (iOrdinal == 0) {
            C1404 c14042 = (C1404) this.f8727;
            boolean zM57352 = c2196.m5735();
            if (c2196.m5721()) {
                c14042.getClass();
                String strM5742 = c2196.m5742();
                c2196.m5747(':');
                C1404 c14043 = c3943.f15071;
                c14043.getClass();
                AbstractC1198.m3685(c3943, interfaceC1482);
                int iMo1424 = interfaceC1482.mo1424(strM5742);
                if (iMo1424 != -3) {
                    iIntValue = iMo1424;
                } else {
                    c14043.getClass();
                    C1014 c1014 = c3943.f15070;
                    C2520 c2520 = new C2520(interfaceC1482, 7, c3943);
                    ConcurrentHashMap concurrentHashMap = (ConcurrentHashMap) c1014.f4404;
                    Map map = (Map) concurrentHashMap.get(interfaceC1482);
                    ʻﾞ r10 = AbstractC1198.f5101;
                    Object objMo1021 = map != null ? map.get(r10) : null;
                    if (objMo1021 == null) {
                        objMo1021 = null;
                    }
                    if (objMo1021 == null) {
                        objMo1021 = c2520.mo1021();
                        Object concurrentHashMap2 = concurrentHashMap.get(interfaceC1482);
                        if (concurrentHashMap2 == null) {
                            concurrentHashMap2 = new ConcurrentHashMap(2);
                            concurrentHashMap.put(interfaceC1482, concurrentHashMap2);
                        }
                        ((Map) concurrentHashMap2).put(r10, objMo1021);
                    }
                    Integer num = (Integer) ((Map) objMo1021).get(strM5742);
                    iIntValue = num != null ? num.intValue() : -3;
                }
                if (iIntValue == -3) {
                    c2196.m5713(AbstractC3801.m8482(6, ((String) c2196.f8727).subSequence(0, c2196.f8724).toString(), strM5742), "Encountered an unknown key '" + strM5742 + '\'', "Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.");
                    throw null;
                }
            } else if (zM57352) {
                c1404.getClass();
                ˋˀᵧ.ˌᴵ(c2196);
                throw null;
            }
        } else if (iOrdinal != 2) {
            boolean zM57353 = c2196.m5735();
            if (c2196.m5721()) {
                int i = this.f8724;
                if (i != -1 && !zM57353) {
                    m5706(c2196, "Expected end of the array or comma", 0, 6);
                    throw null;
                }
                iIntValue = i + 1;
                this.f8724 = iIntValue;
            } else if (zM57353) {
                c1404.getClass();
                ˋˀᵧ.ˊᵨᵧ(c2196, "array");
                throw null;
            }
        } else {
            int i2 = this.f8724;
            boolean z = i2 % 2 != 0;
            if (!z) {
                c2196.m5747(':');
            } else if (i2 != -1) {
                zM5735 = c2196.m5735();
            }
            if (c2196.m5721()) {
                if (z) {
                    int i3 = this.f8724;
                    int i4 = c2196.f8724;
                    if (i3 == -1) {
                        if (zM5735) {
                            m5706(c2196, "Unexpected leading comma", i4, 4);
                            throw null;
                        }
                    } else if (!zM5735) {
                        m5706(c2196, "Expected comma after the key-value pair", i4, 4);
                        throw null;
                    }
                }
                iIntValue = this.f8724 + 1;
                this.f8724 = iIntValue;
            } else if (zM5735) {
                c1404.getClass();
                ˋˀᵧ.ˌᴵ(c2196);
                throw null;
            }
        }
        if (enumC4414 != EnumC4414.f16808) {
            C1404 c14044 = (C1404) c2196.f8723;
            ((int[]) c14044.f5809)[c14044.f5808] = iIntValue;
        }
        return iIntValue;
    }

    /* JADX WARN: Code restructure failed: missing block: B:100:0x0177, code lost:
    
        defpackage.C1685.m4561();
     */
    /* 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:
    
        m5706(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:
    
        m5706(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:
    
        m5706(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:
    
        m5706(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:
    
        m5706(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.f8724 = 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:
    
        m5706(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:
    
        m5706(r24, "Numeric value overflow", 0, 6);
     */
    /* JADX WARN: Code restructure failed: missing block: B:99:0x0176, code lost:
    
        throw null;
     */
    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public long m5739() {
        boolean z;
        int iM5709 = m5709(m5714());
        String str = (String) this.f8727;
        int i = 6;
        if (iM5709 >= str.length() || iM5709 == -1) {
            m5706(this, "EOF", 0, 6);
            throw null;
        }
        if (str.charAt(iM5709) == '\"') {
            iM5709++;
            if (iM5709 == str.length()) {
                m5706(this, "EOF", 0, 6);
                throw null;
            }
            z = true;
        } else {
            z = false;
        }
        int i2 = iM5709;
        boolean z2 = false;
        boolean z3 = false;
        boolean z4 = false;
        long j = 0;
        long j2 = 0;
        long j3 = 0;
        while (true) {
            long j4 = j2;
            if (i2 == str.length()) {
                break;
            }
            char cCharAt = str.charAt(i2);
            if ((cCharAt != 'e' && cCharAt != 'E') || z3) {
                if (cCharAt == '-' && z3) {
                    if (i2 == iM5709) {
                        m5706(this, "Unexpected symbol '-' in numeric literal", 0, 6);
                        throw null;
                    }
                    i2++;
                    z2 = false;
                } else if (cCharAt != '+' || !z3) {
                    if (cCharAt != '-') {
                        if (ᵸˊʾᵜ.ᵷᵺʾᵖ(cCharAt) != 0) {
                            break;
                        }
                        i2++;
                        int i3 = cCharAt - '0';
                        if (i3 < 0 || i3 >= 10) {
                            break;
                        }
                        if (z3) {
                            j = (j * 10) + ((long) i3);
                        } else {
                            j3 = (j3 * 10) - ((long) i3);
                            if (j3 > j4) {
                                m5706(this, "Numeric value overflow", 0, 6);
                                throw null;
                            }
                        }
                    } else {
                        if (i2 != iM5709) {
                            m5706(this, "Unexpected symbol '-' in numeric literal", 0, 6);
                            throw null;
                        }
                        i2++;
                        j2 = j4;
                        i = 6;
                        z4 = true;
                    }
                } else {
                    if (i2 == iM5709) {
                        m5706(this, "Unexpected symbol '+' in numeric literal", 0, 6);
                        throw null;
                    }
                    i2++;
                    j2 = j4;
                    i = 6;
                    z2 = true;
                }
                j2 = j4;
                i = 6;
            } else {
                if (i2 == iM5709) {
                    m5706(this, "Unexpected symbol " + cCharAt + " in numeric literal", 0, i);
                    throw null;
                }
                i2++;
                j2 = j4;
                z2 = true;
                z3 = true;
            }
        }
    }

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public void m5740(int i) {
        int iM5712 = m5712(i);
        ((C1705) this.f8725).m4703(iM5712);
        RecyclerView recyclerView = (RecyclerView) ((ᵢʒʡᵟ) this.f8723).ᵜᵪʾ;
        View childAt = recyclerView.getChildAt(iM5712);
        if (childAt != null) {
            AbstractC4793 abstractC4793M539 = RecyclerView.m539(childAt);
            if (abstractC4793M539 != null) {
                if (abstractC4793M539.m9993() && !abstractC4793M539.m9994()) {
                    StringBuilder sb = new StringBuilder("called detach on an already detached child ");
                    sb.append(abstractC4793M539);
                    ᵕᵩʽᵲ.ˋˈ(sb, recyclerView.m600());
                    return;
                } else {
                    if (RecyclerView.f843) {
                        abstractC4793M539.toString();
                    }
                    abstractC4793M539.m9996(256);
                }
            }
        } else if (RecyclerView.f848) {
            ᵕᵩʽᵲ.ᵝᵶ("No view at offset ", iM5712, recyclerView.m600());
            return;
        }
        recyclerView.detachViewFromParent(iM5712);
    }

    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    public int m5741(InterfaceC1482 interfaceC1482, int i) {
        return m5733();
    }

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public String m5742() {
        String string;
        StringBuilder sb = (StringBuilder) this.f8726;
        String str = (String) this.f8727;
        m5747('\"');
        int i = this.f8724;
        int iM8497 = AbstractC3801.m8497(str, '\"', i, 4);
        if (iM8497 == -1) {
            m5723();
            m5749((byte) 1, false);
            throw null;
        }
        int i2 = i;
        while (i2 < iM8497) {
            if (str.charAt(i2) == '\\') {
                int iM5709 = this.f8724;
                char cCharAt = str.charAt(i2);
                boolean z = false;
                while (cCharAt != '\"') {
                    if (cCharAt == '\\') {
                        sb.append((CharSequence) str, iM5709, i2);
                        int iM57092 = m5709(i2 + 1);
                        if (iM57092 == -1) {
                            m5706(this, "Expected escape sequence to continue, got EOF", 0, 6);
                            throw null;
                        }
                        int iM5736 = iM57092 + 1;
                        char cCharAt2 = str.charAt(iM57092);
                        if (cCharAt2 == 'u') {
                            iM5736 = m5736(str, iM5736);
                        } else {
                            char c = cCharAt2 < 'u' ? C0334.f2056[cCharAt2] : (char) 0;
                            if (c == 0) {
                                m5706(this, "Invalid escaped char '" + cCharAt2 + '\'', 0, 6);
                                throw null;
                            }
                            sb.append(c);
                        }
                        iM5709 = m5709(iM5736);
                        if (iM5709 == -1) {
                            m5706(this, "Unexpected EOF", iM5709, 4);
                            throw null;
                        }
                    } else {
                        i2++;
                        if (i2 >= str.length()) {
                            sb.append((CharSequence) str, iM5709, i2);
                            iM5709 = m5709(i2);
                            if (iM5709 == -1) {
                                m5706(this, "Unexpected EOF", iM5709, 4);
                                throw null;
                            }
                        } else {
                            continue;
                            cCharAt = str.charAt(i2);
                        }
                    }
                    i2 = iM5709;
                    z = true;
                    cCharAt = str.charAt(i2);
                }
                if (z) {
                    sb.append((CharSequence) str, iM5709, i2);
                    String string2 = sb.toString();
                    sb.setLength(0);
                    string = string2;
                } else {
                    string = str.subSequence(iM5709, i2).toString();
                }
                this.f8724 = i2 + 1;
                return string;
            }
            i2++;
        }
        this.f8724 = iM8497 + 1;
        return str.substring(i, iM8497);
    }

    /* JADX WARN: Removed duplicated region for block: B:41:0x0141  */
    @Override // defpackage.InterfaceC4951
    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void mo5743(C4545 c4545) {
        C0085 c0085;
        C0085 c00852;
        SparseArray sparseArray;
        int i;
        C3180 c3180;
        char c;
        int i2;
        int i3;
        C0085 c00853;
        SparseArray sparseArray2 = (SparseArray) this.f8725;
        SparseIntArray sparseIntArray = (SparseIntArray) this.f8726;
        C3180 c31802 = (C3180) this.f8723;
        C4018 c4018 = (C4018) this.f8727;
        SparseArray sparseArray3 = c4018.f15463;
        SparseBooleanArray sparseBooleanArray = c4018.f15458;
        C1542 c1542 = c4018.f15460;
        List list = c4018.f15462;
        int i4 = c4018.f15459;
        if (c4545.m9626() != 2) {
            return;
        }
        if (i4 == 1 || i4 == 2 || c4018.f15455 == 1) {
            c0085 = (C0085) list.get(0);
        } else {
            c0085 = new C0085(((C0085) list.get(0)).m1139());
            list.add(c0085);
        }
        if ((c4545.m9626() & 128) == 0) {
            return;
        }
        c4545.m9609(1);
        int iM9598 = c4545.m9598();
        c4545.m9609(3);
        c4545.m9627(c31802.f12075, 0, 2);
        c31802.m7298(0);
        c31802.m7287(3);
        c4018.f15447 = c31802.m7302(13);
        c4545.m9627(c31802.f12075, 0, 2);
        c31802.m7298(0);
        c31802.m7287(4);
        c4545.m9609(c31802.m7302(12));
        if (i4 == 2 && c4018.f15445 == null) {
            InterfaceC1954 interfaceC1954M4370 = c1542.m4370(21, new ˆᴵᵶ(21, (String) null, 0, (ArrayList) null, AbstractC0956.f4216));
            c4018.f15445 = interfaceC1954M4370;
            if (interfaceC1954M4370 != null) {
                interfaceC1954M4370.mo5234(c0085, c4018.f15449, new C4173(iM9598, 21, 8192));
            }
        }
        sparseArray2.clear();
        sparseIntArray.clear();
        int iM9623 = c4545.m9623();
        while (iM9623 > 0) {
            c4545.m9627(c31802.f12075, 0, 5);
            c31802.m7298(0);
            int iM7302 = c31802.m7302(8);
            c31802.m7287(3);
            int iM73022 = c31802.m7302(13);
            c31802.m7287(4);
            int iM73023 = c31802.m7302(12);
            int i5 = c4545.f17282;
            int i6 = i5 + iM73023;
            int i7 = -1;
            String strTrim = null;
            ArrayList arrayList = null;
            int iM9626 = 0;
            int i8 = iM9623;
            while (true) {
                if (c4545.f17282 >= i6) {
                    c3180 = c31802;
                    break;
                }
                int iM96262 = c4545.m9626();
                c3180 = c31802;
                int iM96263 = c4545.f17282 + c4545.m9626();
                if (iM96263 > i6) {
                    break;
                }
                SparseArray sparseArray4 = sparseArray3;
                if (iM96262 == 5) {
                    long jM9606 = c4545.m9606();
                    if (jM9606 == 1094921523) {
                        i7 = 129;
                    } else if (jM9606 == 1161904947) {
                        i7 = 135;
                    } else if (jM9606 == 1094921524) {
                        i7 = 172;
                    } else if (jM9606 == 1212503619) {
                        i7 = 36;
                    }
                    i2 = iM96263;
                    i3 = iM9598;
                    c00853 = c0085;
                } else if (iM96262 == 106) {
                    i2 = iM96263;
                    i3 = iM9598;
                    c00853 = c0085;
                    i7 = 129;
                } else if (iM96262 == 122) {
                    i3 = iM9598;
                    c00853 = c0085;
                    i7 = 135;
                    i2 = iM96263;
                } else {
                    if (iM96262 == 127) {
                        int iM96264 = c4545.m9626();
                        if (iM96264 != 21) {
                            if (iM96264 == 14) {
                                i7 = 136;
                            } else if (iM96264 == 33) {
                                i7 = 139;
                            }
                        }
                    } else if (iM96262 == 123) {
                        i7 = 138;
                    } else if (iM96262 == 10) {
                        strTrim = c4545.m9617(3, StandardCharsets.UTF_8).trim();
                        i2 = iM96263;
                        iM9626 = c4545.m9626();
                        i3 = iM9598;
                        c00853 = c0085;
                    } else if (iM96262 == 89) {
                        ArrayList arrayList2 = new ArrayList();
                        while (c4545.f17282 < iM96263) {
                            String strTrim2 = c4545.m9617(3, StandardCharsets.UTF_8).trim();
                            c4545.m9626();
                            C0085 c00854 = c0085;
                            byte[] bArr = new byte[4];
                            c4545.m9627(bArr, 0, 4);
                            arrayList2.add(new C3288(strTrim2, bArr));
                            c0085 = c00854;
                            iM96263 = iM96263;
                            iM9598 = iM9598;
                        }
                        i2 = iM96263;
                        i3 = iM9598;
                        c00853 = c0085;
                        arrayList = arrayList2;
                        i7 = 89;
                    } else {
                        i2 = iM96263;
                        i3 = iM9598;
                        c00853 = c0085;
                        if (iM96262 == 111) {
                            i7 = 257;
                        }
                    }
                    i2 = iM96263;
                    i3 = iM9598;
                    c00853 = c0085;
                }
                c4545.m9609(i2 - c4545.f17282);
                c0085 = c00853;
                c31802 = c3180;
                sparseArray3 = sparseArray4;
                iM9598 = i3;
            }
            SparseArray sparseArray5 = sparseArray3;
            int i9 = iM9598;
            C0085 c00855 = c0085;
            c4545.m9624(i6);
            ˆᴵᵶ r25 = new ˆᴵᵶ(i7, strTrim, iM9626, arrayList, Arrays.copyOfRange(c4545.f17284, i5, i6));
            if (iM7302 == 6 || iM7302 == 5) {
                iM7302 = i7;
            }
            int i10 = i8 - (iM73023 + 5);
            if (sparseBooleanArray.get(iM73022)) {
                c = 21;
            } else {
                c = 21;
                InterfaceC1954 interfaceC1954M43702 = (i4 == 2 && iM7302 == 21) ? c4018.f15445 : c1542.m4370(iM7302, r25);
                if (i4 != 2 || iM73022 < sparseIntArray.get(iM73022, 8192)) {
                    sparseIntArray.put(iM73022, iM73022);
                    sparseArray2.put(iM73022, interfaceC1954M43702);
                }
            }
            iM9623 = i10;
            c0085 = c00855;
            c31802 = c3180;
            sparseArray3 = sparseArray5;
            iM9598 = i9;
        }
        SparseArray sparseArray6 = sparseArray3;
        int i11 = iM9598;
        C0085 c00856 = c0085;
        int size = sparseIntArray.size();
        int i12 = 0;
        while (i12 < size) {
            int iKeyAt = sparseIntArray.keyAt(i12);
            int iValueAt = sparseIntArray.valueAt(i12);
            sparseBooleanArray.put(iKeyAt, true);
            c4018.f15461.put(iValueAt, true);
            InterfaceC1954 interfaceC1954 = (InterfaceC1954) sparseArray2.valueAt(i12);
            if (interfaceC1954 != null) {
                if (interfaceC1954 != c4018.f15445) {
                    i = i11;
                    c00852 = c00856;
                    interfaceC1954.mo5234(c00852, c4018.f15449, new C4173(i, iKeyAt, 8192));
                } else {
                    c00852 = c00856;
                    i = i11;
                }
                sparseArray = sparseArray6;
                sparseArray.put(iValueAt, interfaceC1954);
            } else {
                c00852 = c00856;
                sparseArray = sparseArray6;
                i = i11;
            }
            i12++;
            sparseArray6 = sparseArray;
            i11 = i;
            c00856 = c00852;
        }
        SparseArray sparseArray7 = sparseArray6;
        if (i4 == 2) {
            if (c4018.f15453) {
                return;
            }
            c4018.f15449.mo2740();
            c4018.f15455 = 0;
            c4018.f15453 = true;
            return;
        }
        sparseArray7.remove(this.f8724);
        int i13 = i4 == 1 ? 0 : c4018.f15455 - 1;
        c4018.f15455 = i13;
        if (i13 == 0) {
            c4018.f15449.mo2740();
            c4018.f15453 = true;
        }
    }

    /* JADX INFO: renamed from: ᵵᵬᵽ, reason: contains not printable characters */
    public boolean m5744(C2196 c2196, int i) {
        return c2196 != null && Objects.equals(((C1619[]) this.f8723)[i], ((C1619[]) c2196.f8723)[i]) && Objects.equals(((InterfaceC2380[]) this.f8725)[i], ((InterfaceC2380[]) c2196.f8725)[i]);
    }

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public C2196 m5745(InterfaceC1482 interfaceC1482) {
        byte b;
        C3943 c3943 = (C3943) this.f8723;
        EnumC4414 enumC4414 = ˋˀᵧ.ˌᵨʠᵫ(c3943, interfaceC1482);
        C2196 c2196 = (C2196) this.f8726;
        C1404 c1404 = (C1404) c2196.f8723;
        int i = c1404.f5808 + 1;
        c1404.f5808 = i;
        Object[] objArr = (Object[]) c1404.f5807;
        if (i == objArr.length) {
            int i2 = i * 2;
            c1404.f5807 = Arrays.copyOf(objArr, i2);
            c1404.f5809 = Arrays.copyOf((int[]) c1404.f5809, i2);
        }
        ((Object[]) c1404.f5807)[i] = interfaceC1482;
        c2196.m5747(enumC4414.f16810);
        String str = (String) c2196.f8727;
        int i3 = c2196.f8724;
        while (true) {
            int iM5709 = c2196.m5709(i3);
            b = 10;
            if (iM5709 == -1) {
                c2196.f8724 = iM5709;
                break;
            }
            char cCharAt = str.charAt(iM5709);
            if (cCharAt != '\t' && cCharAt != '\n' && cCharAt != '\r' && cCharAt != ' ') {
                c2196.f8724 = iM5709;
                b = ᵸˊʾᵜ.ᵷᵺʾᵖ(cCharAt);
                break;
            }
            i3 = iM5709 + 1;
        }
        if (b == 4) {
            m5706(c2196, "Unexpected leading comma", 0, 6);
            throw null;
        }
        int iOrdinal = enumC4414.ordinal();
        if (iOrdinal == 1 || iOrdinal == 2 || iOrdinal == 3) {
            return new C2196(c3943, enumC4414, c2196, interfaceC1482);
        }
        if (((EnumC4414) this.f8725) != enumC4414) {
            return new C2196(c3943, enumC4414, c2196, interfaceC1482);
        }
        c3943.f15071.getClass();
        return this;
    }

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public void m5746(InterfaceC1482 interfaceC1482) {
        C2196 c2196 = (C2196) this.f8726;
        C1404 c1404 = ((C3943) this.f8723).f15071;
        c1404.getClass();
        if (c2196.m5735()) {
            c1404.getClass();
            ˋˀᵧ.ˊᵨᵧ(c2196, "");
            throw null;
        }
        c2196.m5747(((EnumC4414) this.f8725).f16811);
        C1404 c14042 = (C1404) c2196.f8723;
        int i = c14042.f5808;
        int[] iArr = (int[]) c14042.f5809;
        if (iArr[i] == -2) {
            iArr[i] = -1;
            c14042.f5808 = i - 1;
        }
        int i2 = c14042.f5808;
        if (i2 != -1) {
            c14042.f5808 = i2 - 1;
        }
    }

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public void m5747(char c) {
        int i = this.f8724;
        if (i == -1) {
            m5732(c);
            throw null;
        }
        String str = (String) this.f8727;
        while (i < str.length()) {
            int i2 = i + 1;
            char cCharAt = str.charAt(i);
            if (cCharAt != ' ' && cCharAt != '\n' && cCharAt != '\r' && cCharAt != '\t') {
                this.f8724 = i2;
                if (cCharAt == c) {
                    return;
                }
                m5732(c);
                throw null;
            }
            i = i2;
        }
        this.f8724 = -1;
        m5732(c);
        throw null;
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public void m5748(int i, View view, boolean z) {
        RecyclerView recyclerView = (RecyclerView) ((ᵢʒʡᵟ) this.f8723).ᵜᵪʾ;
        int childCount = i < 0 ? recyclerView.getChildCount() : m5712(i);
        ((C1705) this.f8725).m4699(childCount, z);
        if (z) {
            m5719(view);
        }
        recyclerView.addView(view, childCount);
        AbstractC4793 abstractC4793M539 = RecyclerView.m539(view);
        AbstractC2416 abstractC2416 = recyclerView.f900;
        if (abstractC2416 == null || abstractC4793M539 == null) {
            return;
        }
        abstractC2416.mo6140(abstractC4793M539);
    }

    /* JADX INFO: renamed from: ᵸˆˁ, reason: contains not printable characters */
    public void m5749(byte b, boolean z) {
        String str = (String) this.f8727;
        String str2 = ᵸˊʾᵜ.ˀᵭ(b);
        int i = this.f8724;
        int i2 = z ? i - 1 : i;
        m5706(this, AbstractC3653.m8234("Expected ", str2, ", but had '", (i == str.length() || i2 < 0) ? "EOF" : String.valueOf(str.charAt(i2)), "' instead"), i2, 4);
        throw null;
    }

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public void m5750(int i, String str) {
        String str2 = (String) this.f8727;
        if (str2.length() - i < str.length()) {
            m5706(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) | ' ')) {
                m5706(this, "Expected valid boolean literal prefix, but had '" + m5723() + '\'', 0, 6);
                throw null;
            }
        }
        this.f8724 = str.length() + i;
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public void m5751(View view, int i, ViewGroup.LayoutParams layoutParams, boolean z) {
        RecyclerView recyclerView = (RecyclerView) ((ᵢʒʡᵟ) this.f8723).ᵜᵪʾ;
        int childCount = i < 0 ? recyclerView.getChildCount() : m5712(i);
        ((C1705) this.f8725).m4699(childCount, z);
        if (z) {
            m5719(view);
        }
        AbstractC4793 abstractC4793M539 = RecyclerView.m539(view);
        if (abstractC4793M539 != null) {
            if (!abstractC4793M539.m9993() && !abstractC4793M539.m9994()) {
                StringBuilder sb = new StringBuilder("Called attach on a child which is not detached: ");
                sb.append(abstractC4793M539);
                ᵕᵩʽᵲ.ˋˈ(sb, recyclerView.m600());
                return;
            } else {
                if (RecyclerView.f843) {
                    abstractC4793M539.toString();
                }
                abstractC4793M539.f18238 &= -257;
            }
        } else if (RecyclerView.f848) {
            StringBuilder sb2 = new StringBuilder("No ViewHolder found for child: ");
            sb2.append(view);
            String strM600 = recyclerView.m600();
            sb2.append(", index: ");
            sb2.append(childCount);
            sb2.append(strM600);
            throw new IllegalArgumentException(sb2.toString());
        }
        recyclerView.attachViewToParent(view, childCount, layoutParams);
    }
}
