package o4;

import Z.g;
import android.util.Base64;
import android.util.JsonReader;
import d5.AbstractC0844a;
import e4.C0878i;
import java.io.IOException;
import java.io.StringReader;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import l6.C1139a;
import n4.A0;
import n4.B;
import n4.B0;
import n4.C;
import n4.C0;
import n4.C1276A;
import n4.C1277a;
import n4.C1278a0;
import n4.C1279b;
import n4.C1280b0;
import n4.C1281c;
import n4.C1282c0;
import n4.C1283d;
import n4.C1284d0;
import n4.C1285e;
import n4.C1286e0;
import n4.C1287f;
import n4.C1288f0;
import n4.C1289g;
import n4.C1290g0;
import n4.C1291h;
import n4.C1292h0;
import n4.C1293i;
import n4.C1294i0;
import n4.C1295j;
import n4.C1296j0;
import n4.C1297k;
import n4.C1298k0;
import n4.C1299l;
import n4.C1301m;
import n4.C1303n;
import n4.C1305o;
import n4.C1307p;
import n4.C1308q;
import n4.C1309s;
import n4.C1310t;
import n4.C1311u;
import n4.C1312v;
import n4.C1313w;
import n4.C1314x;
import n4.C1315y;
import n4.C1316z;
import n4.D;
import n4.D0;
import n4.E;
import n4.E0;
import n4.F;
import n4.F0;
import n4.G;
import n4.G0;
import n4.H;
import n4.H0;
import n4.I;
import n4.I0;
import n4.J;
import n4.J0;
import n4.K;
import n4.K0;
import n4.L;
import n4.L0;
import n4.M;
import n4.M0;
import n4.N;
import n4.N0;
import n4.O;
import n4.O0;
import n4.P;
import n4.Q;
import n4.S;
import n4.T;
import n4.U;
import n4.V;
import n4.W;
import n4.X;
import n4.Y;
import n4.Z;
import n4.p0;
import n4.q0;
import n4.r;
import n4.r0;
import n4.s0;
import n4.t0;
import n4.u0;
import n4.v0;
import n4.w0;
import n4.x0;
import n4.y0;
import n4.z0;
import z4.c;

/* JADX INFO: renamed from: o4.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1350a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final C1139a f15716a;

    static {
        c cVar = new c();
        C1283d c1283d = C1283d.f15348a;
        cVar.a(O0.class, c1283d);
        cVar.a(B.class, c1283d);
        C1295j c1295j = C1295j.f15402a;
        cVar.a(N0.class, c1295j);
        cVar.a(J.class, c1295j);
        C1289g c1289g = C1289g.f15376a;
        cVar.a(v0.class, c1289g);
        cVar.a(K.class, c1289g);
        C1291h c1291h = C1291h.f15386a;
        cVar.a(u0.class, c1291h);
        cVar.a(L.class, c1291h);
        C1316z c1316z = C1316z.f15515a;
        cVar.a(M0.class, c1316z);
        cVar.a(C1298k0.class, c1316z);
        C1315y c1315y = C1315y.f15510a;
        cVar.a(L0.class, c1315y);
        cVar.a(C1296j0.class, c1315y);
        C1293i c1293i = C1293i.f15388a;
        cVar.a(w0.class, c1293i);
        cVar.a(N.class, c1293i);
        C1310t c1310t = C1310t.f15486a;
        cVar.a(K0.class, c1310t);
        cVar.a(P.class, c1310t);
        C1297k c1297k = C1297k.f15418a;
        cVar.a(E0.class, c1297k);
        cVar.a(Q.class, c1297k);
        C1301m c1301m = C1301m.f15435a;
        cVar.a(C0.class, c1301m);
        cVar.a(S.class, c1301m);
        C1307p c1307p = C1307p.f15464a;
        cVar.a(B0.class, c1307p);
        cVar.a(W.class, c1307p);
        C1308q c1308q = C1308q.f15468a;
        cVar.a(A0.class, c1308q);
        cVar.a(Y.class, c1308q);
        C1303n c1303n = C1303n.f15447a;
        cVar.a(y0.class, c1303n);
        cVar.a(U.class, c1303n);
        C1279b c1279b = C1279b.f15323a;
        cVar.a(q0.class, c1279b);
        cVar.a(D.class, c1279b);
        C1277a c1277a = C1277a.f15315a;
        cVar.a(p0.class, c1277a);
        cVar.a(E.class, c1277a);
        C1305o c1305o = C1305o.f15459a;
        cVar.a(z0.class, c1305o);
        cVar.a(V.class, c1305o);
        C1299l c1299l = C1299l.f15427a;
        cVar.a(x0.class, c1299l);
        cVar.a(T.class, c1299l);
        C1281c c1281c = C1281c.f15339a;
        cVar.a(r0.class, c1281c);
        cVar.a(F.class, c1281c);
        r rVar = r.f15474a;
        cVar.a(D0.class, rVar);
        cVar.a(C1278a0.class, rVar);
        C1309s c1309s = C1309s.f15479a;
        cVar.a(F0.class, c1309s);
        cVar.a(C1282c0.class, c1309s);
        C1311u c1311u = C1311u.f15493a;
        cVar.a(G0.class, c1311u);
        cVar.a(C1284d0.class, c1311u);
        C1314x c1314x = C1314x.f15508a;
        cVar.a(J0.class, c1314x);
        cVar.a(C1292h0.class, c1314x);
        C1312v c1312v = C1312v.f15500a;
        cVar.a(I0.class, c1312v);
        cVar.a(C1288f0.class, c1312v);
        C1313w c1313w = C1313w.f15505a;
        cVar.a(H0.class, c1313w);
        cVar.a(C1290g0.class, c1313w);
        C1285e c1285e = C1285e.f15361a;
        cVar.a(t0.class, c1285e);
        cVar.a(G.class, c1285e);
        C1287f c1287f = C1287f.f15369a;
        cVar.a(s0.class, c1287f);
        cVar.a(H.class, c1287f);
        cVar.f19364d = true;
        f15716a = new C1139a(cVar);
    }

    public static Y a(JsonReader jsonReader) throws IOException {
        X x8 = new X();
        jsonReader.beginObject();
        while (jsonReader.hasNext()) {
            String strNextName = jsonReader.nextName();
            strNextName.getClass();
            switch (strNextName) {
                case "offset":
                    x8.f15302d = jsonReader.nextLong();
                    x8.f15304f = (byte) (x8.f15304f | 2);
                    break;
                case "symbol":
                    String strNextString = jsonReader.nextString();
                    if (strNextString == null) {
                        throw new NullPointerException("Null symbol");
                    }
                    x8.f15300b = strNextString;
                    break;
                    break;
                case "pc":
                    x8.f15299a = jsonReader.nextLong();
                    x8.f15304f = (byte) (x8.f15304f | 1);
                    break;
                case "file":
                    x8.f15301c = jsonReader.nextString();
                    break;
                case "importance":
                    x8.f15303e = jsonReader.nextInt();
                    x8.f15304f = (byte) (x8.f15304f | 4);
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
        }
        jsonReader.endObject();
        return x8.a();
    }

    public static F b(JsonReader jsonReader) throws IOException {
        jsonReader.beginObject();
        String strNextString = null;
        String strNextString2 = null;
        while (jsonReader.hasNext()) {
            String strNextName = jsonReader.nextName();
            strNextName.getClass();
            if (strNextName.equals("key")) {
                strNextString = jsonReader.nextString();
                if (strNextString == null) {
                    throw new NullPointerException("Null key");
                }
            } else if (strNextName.equals("value")) {
                strNextString2 = jsonReader.nextString();
                if (strNextString2 == null) {
                    throw new NullPointerException("Null value");
                }
            } else {
                jsonReader.skipValue();
            }
        }
        jsonReader.endObject();
        if (strNextString != null && strNextString2 != null) {
            return new F(strNextString, strNextString2);
        }
        StringBuilder sb = new StringBuilder();
        if (strNextString == null) {
            sb.append(" key");
        }
        if (strNextString2 == null) {
            sb.append(" value");
        }
        throw new IllegalStateException(AbstractC0844a.m("Missing required properties:", sb));
    }

    public static D c(JsonReader jsonReader) throws IOException {
        C c3 = new C();
        jsonReader.beginObject();
        while (jsonReader.hasNext()) {
            String strNextName = jsonReader.nextName();
            strNextName.getClass();
            switch (strNextName) {
                case "buildIdMappingForArch":
                    c3.i = d(jsonReader, new C0878i(6));
                    break;
                case "pid":
                    c3.f15186a = jsonReader.nextInt();
                    c3.f15194j = (byte) (c3.f15194j | 1);
                    break;
                case "pss":
                    c3.f15190e = jsonReader.nextLong();
                    c3.f15194j = (byte) (c3.f15194j | 8);
                    break;
                case "rss":
                    c3.f15191f = jsonReader.nextLong();
                    c3.f15194j = (byte) (c3.f15194j | 16);
                    break;
                case "timestamp":
                    c3.f15192g = jsonReader.nextLong();
                    c3.f15194j = (byte) (c3.f15194j | 32);
                    break;
                case "processName":
                    String strNextString = jsonReader.nextString();
                    if (strNextString == null) {
                        throw new NullPointerException("Null processName");
                    }
                    c3.f15187b = strNextString;
                    break;
                    break;
                case "reasonCode":
                    c3.f15188c = jsonReader.nextInt();
                    c3.f15194j = (byte) (c3.f15194j | 2);
                    break;
                case "traceFile":
                    c3.f15193h = jsonReader.nextString();
                    break;
                case "importance":
                    c3.f15189d = jsonReader.nextInt();
                    c3.f15194j = (byte) (c3.f15194j | 4);
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
        }
        jsonReader.endObject();
        return c3.a();
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
    /* JADX WARN: Removed duplicated region for block: B:108:0x01ae  */
    /* JADX WARN: Removed duplicated region for block: B:13:0x004b  */
    /* JADX WARN: Removed duplicated region for block: B:204:0x0320  */
    /* JADX WARN: Removed duplicated region for block: B:60:0x0101  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static List d(JsonReader jsonReader, C0878i c0878i) throws IOException {
        Object e8;
        byte b8;
        byte b9 = 3;
        ArrayList arrayList = new ArrayList();
        jsonReader.beginArray();
        while (jsonReader.hasNext()) {
            switch (c0878i.f12462q) {
                case g.STRING_SET_FIELD_NUMBER /* 6 */:
                    jsonReader.beginObject();
                    String strNextString = null;
                    String strNextString2 = null;
                    String strNextString3 = null;
                    while (jsonReader.hasNext()) {
                        String strNextName = jsonReader.nextName();
                        strNextName.getClass();
                        switch (strNextName) {
                            case "libraryName":
                                strNextString2 = jsonReader.nextString();
                                if (strNextString2 == null) {
                                    throw new NullPointerException("Null libraryName");
                                }
                                break;
                                break;
                            case "arch":
                                strNextString = jsonReader.nextString();
                                if (strNextString == null) {
                                    throw new NullPointerException("Null arch");
                                }
                                break;
                                break;
                            case "buildId":
                                strNextString3 = jsonReader.nextString();
                                if (strNextString3 == null) {
                                    throw new NullPointerException("Null buildId");
                                }
                                break;
                                break;
                            default:
                                jsonReader.skipValue();
                                break;
                        }
                    }
                    jsonReader.endObject();
                    if (strNextString == null || strNextString2 == null || strNextString3 == null) {
                        StringBuilder sb = new StringBuilder();
                        if (strNextString == null) {
                            sb.append(" arch");
                        }
                        if (strNextString2 == null) {
                            sb.append(" libraryName");
                        }
                        if (strNextString3 == null) {
                            sb.append(" buildId");
                        }
                        throw new IllegalStateException(AbstractC0844a.m("Missing required properties:", sb));
                    }
                    e8 = new E(strNextString, strNextString2, strNextString3);
                    break;
                case g.DOUBLE_FIELD_NUMBER /* 7 */:
                    jsonReader.beginObject();
                    String strNextString4 = null;
                    byte[] bArrDecode = null;
                    while (jsonReader.hasNext()) {
                        String strNextName2 = jsonReader.nextName();
                        strNextName2.getClass();
                        if (strNextName2.equals("filename")) {
                            strNextString4 = jsonReader.nextString();
                            if (strNextString4 == null) {
                                throw new NullPointerException("Null filename");
                            }
                        } else if (strNextName2.equals("contents")) {
                            bArrDecode = Base64.decode(jsonReader.nextString(), 2);
                            if (bArrDecode == null) {
                                throw new NullPointerException("Null contents");
                            }
                        } else {
                            jsonReader.skipValue();
                        }
                    }
                    jsonReader.endObject();
                    if (strNextString4 == null || bArrDecode == null) {
                        StringBuilder sb2 = new StringBuilder();
                        if (strNextString4 == null) {
                            sb2.append(" filename");
                        }
                        if (bArrDecode == null) {
                            sb2.append(" contents");
                        }
                        throw new IllegalStateException(AbstractC0844a.m("Missing required properties:", sb2));
                    }
                    e8 = new H(strNextString4, bArrDecode);
                    break;
                case g.BYTES_FIELD_NUMBER /* 8 */:
                    C1286e0 c1286e0 = new C1286e0();
                    jsonReader.beginObject();
                    while (jsonReader.hasNext()) {
                        String strNextName3 = jsonReader.nextName();
                        strNextName3.getClass();
                        switch (strNextName3) {
                            case "parameterKey":
                                String strNextString5 = jsonReader.nextString();
                                if (strNextString5 == null) {
                                    throw new NullPointerException("Null parameterKey");
                                }
                                c1286e0.f15365b = strNextString5;
                                break;
                                break;
                            case "templateVersion":
                                c1286e0.f15367d = jsonReader.nextLong();
                                c1286e0.f15368e = (byte) (c1286e0.f15368e | 1);
                                break;
                            case "rolloutVariant":
                                jsonReader.beginObject();
                                String strNextString6 = null;
                                String strNextString7 = null;
                                while (jsonReader.hasNext()) {
                                    String strNextName4 = jsonReader.nextName();
                                    strNextName4.getClass();
                                    if (strNextName4.equals("variantId")) {
                                        strNextString7 = jsonReader.nextString();
                                        if (strNextString7 == null) {
                                            throw new NullPointerException("Null variantId");
                                        }
                                    } else if (strNextName4.equals("rolloutId")) {
                                        strNextString6 = jsonReader.nextString();
                                        if (strNextString6 == null) {
                                            throw new NullPointerException("Null rolloutId");
                                        }
                                    } else {
                                        jsonReader.skipValue();
                                    }
                                }
                                jsonReader.endObject();
                                if (strNextString6 != null && strNextString7 != null) {
                                    c1286e0.f15364a = new C1290g0(strNextString6, strNextString7);
                                    break;
                                } else {
                                    StringBuilder sb3 = new StringBuilder();
                                    if (strNextString6 == null) {
                                        sb3.append(" rolloutId");
                                    }
                                    if (strNextString7 == null) {
                                        sb3.append(" variantId");
                                    }
                                    throw new IllegalStateException(AbstractC0844a.m("Missing required properties:", sb3));
                                }
                                break;
                            case "parameterValue":
                                String strNextString8 = jsonReader.nextString();
                                if (strNextString8 == null) {
                                    throw new NullPointerException("Null parameterValue");
                                }
                                c1286e0.f15366c = strNextString8;
                                break;
                                break;
                            default:
                                jsonReader.skipValue();
                                break;
                        }
                    }
                    jsonReader.endObject();
                    e8 = c1286e0.a();
                    break;
                case 9:
                    jsonReader.beginObject();
                    String strNextString9 = null;
                    List listD = null;
                    byte b10 = 0;
                    int iNextInt = 0;
                    while (jsonReader.hasNext()) {
                        String strNextName5 = jsonReader.nextName();
                        strNextName5.getClass();
                        switch (strNextName5) {
                            case "frames":
                                listD = d(jsonReader, new C0878i(11));
                                if (listD == null) {
                                    throw new NullPointerException("Null frames");
                                }
                                break;
                                break;
                            case "name":
                                strNextString9 = jsonReader.nextString();
                                if (strNextString9 == null) {
                                    throw new NullPointerException("Null name");
                                }
                                break;
                            case "importance":
                                iNextInt = jsonReader.nextInt();
                                b10 = (byte) (b10 | 1);
                                break;
                            default:
                                jsonReader.skipValue();
                                break;
                        }
                    }
                    jsonReader.endObject();
                    if (b10 != 1 || strNextString9 == null || listD == null) {
                        StringBuilder sb4 = new StringBuilder();
                        if (strNextString9 == null) {
                            sb4.append(" name");
                        }
                        if ((b10 & 1) == 0) {
                            sb4.append(" importance");
                        }
                        if (listD == null) {
                            sb4.append(" frames");
                        }
                        throw new IllegalStateException(AbstractC0844a.m("Missing required properties:", sb4));
                    }
                    e8 = new W(strNextString9, iNextInt, listD);
                    break;
                case 10:
                    jsonReader.beginObject();
                    String strNextString10 = null;
                    String str = null;
                    long jNextLong = 0;
                    long jNextLong2 = 0;
                    byte b11 = 0;
                    while (jsonReader.hasNext()) {
                        String strNextName6 = jsonReader.nextName();
                        strNextName6.getClass();
                        switch (strNextName6.hashCode()) {
                            case 3373707:
                                b8 = !strNextName6.equals("name") ? (byte) -1 : (byte) 0;
                                break;
                            case 3530753:
                                if (strNextName6.equals("size")) {
                                    b8 = 1;
                                    break;
                                }
                                break;
                            case 3601339:
                                if (strNextName6.equals("uuid")) {
                                    b8 = 2;
                                    break;
                                }
                                break;
                            case 1153765347:
                                if (strNextName6.equals("baseAddress")) {
                                    b8 = b9;
                                    break;
                                }
                                break;
                        }
                        switch (b8) {
                            case u0.f15495q /* 0 */:
                                strNextString10 = jsonReader.nextString();
                                if (strNextString10 == null) {
                                    throw new NullPointerException("Null name");
                                }
                                break;
                                break;
                            case 1:
                                b11 = (byte) (b11 | 2);
                                jNextLong2 = jsonReader.nextLong();
                                break;
                            case 2:
                                str = new String(Base64.decode(jsonReader.nextString(), 2), O0.f15265a);
                                break;
                            case 3:
                                b11 = (byte) (b11 | 1);
                                jNextLong = jsonReader.nextLong();
                                break;
                            default:
                                jsonReader.skipValue();
                                break;
                        }
                    }
                    jsonReader.endObject();
                    if (b11 != b9 || strNextString10 == null) {
                        StringBuilder sb5 = new StringBuilder();
                        if ((b11 & 1) == 0) {
                            sb5.append(" baseAddress");
                        }
                        if ((b11 & 2) == 0) {
                            sb5.append(" size");
                        }
                        if (strNextString10 == null) {
                            sb5.append(" name");
                        }
                        throw new IllegalStateException(AbstractC0844a.m("Missing required properties:", sb5));
                    }
                    e8 = new T(jNextLong, jNextLong2, strNextString10, str);
                    break;
                default:
                    e8 = a(jsonReader);
                    break;
            }
            arrayList.add(e8);
            b9 = 3;
        }
        jsonReader.endArray();
        return Collections.unmodifiableList(arrayList);
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:111:0x01b2  */
    /* JADX WARN: Removed duplicated region for block: B:146:0x0230  */
    /* JADX WARN: Removed duplicated region for block: B:241:0x03d6  */
    /* JADX WARN: Removed duplicated region for block: B:62:0x00f1  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0022  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static P e(JsonReader jsonReader) throws IOException {
        String str;
        List list;
        O o8 = new O();
        jsonReader.beginObject();
        while (jsonReader.hasNext()) {
            String strNextName = jsonReader.nextName();
            strNextName.getClass();
            str = null;
            list = null;
            switch (strNextName) {
                case "device":
                    C1280b0 c1280b0 = new C1280b0();
                    jsonReader.beginObject();
                    while (jsonReader.hasNext()) {
                        String strNextName2 = jsonReader.nextName();
                        strNextName2.getClass();
                        switch (strNextName2) {
                            case "batteryLevel":
                                c1280b0.f15332a = Double.valueOf(jsonReader.nextDouble());
                                break;
                            case "batteryVelocity":
                                c1280b0.f15333b = jsonReader.nextInt();
                                c1280b0.f15338g = (byte) (c1280b0.f15338g | 1);
                                break;
                            case "orientation":
                                c1280b0.f15335d = jsonReader.nextInt();
                                c1280b0.f15338g = (byte) (c1280b0.f15338g | 4);
                                break;
                            case "diskUsed":
                                c1280b0.f15337f = jsonReader.nextLong();
                                c1280b0.f15338g = (byte) (c1280b0.f15338g | 16);
                                break;
                            case "ramUsed":
                                c1280b0.f15336e = jsonReader.nextLong();
                                c1280b0.f15338g = (byte) (c1280b0.f15338g | 8);
                                break;
                            case "proximityOn":
                                c1280b0.f15334c = jsonReader.nextBoolean();
                                c1280b0.f15338g = (byte) (c1280b0.f15338g | 2);
                                break;
                            default:
                                jsonReader.skipValue();
                                break;
                        }
                    }
                    jsonReader.endObject();
                    o8.f15261d = c1280b0.a();
                    continue;
                    break;
                case "rollouts":
                    jsonReader.beginObject();
                    while (jsonReader.hasNext()) {
                        String strNextName3 = jsonReader.nextName();
                        strNextName3.getClass();
                        if (strNextName3.equals("assignments")) {
                            List listD = d(jsonReader, new C0878i(8));
                            if (listD == null) {
                                throw new NullPointerException("Null rolloutAssignments");
                            }
                            list = listD;
                        } else {
                            jsonReader.skipValue();
                        }
                    }
                    jsonReader.endObject();
                    if (list == null) {
                        throw new IllegalStateException("Missing required properties: rolloutAssignments");
                    }
                    o8.f15263f = new C1292h0(list);
                    continue;
                    break;
                    break;
                case "app":
                    jsonReader.beginObject();
                    S s8 = null;
                    List listUnmodifiableList = null;
                    List listUnmodifiableList2 = null;
                    Boolean boolValueOf = null;
                    C1278a0 c1278a0G = null;
                    List listUnmodifiableList3 = null;
                    byte b8 = 0;
                    int iNextInt = 0;
                    while (jsonReader.hasNext()) {
                        String strNextName4 = jsonReader.nextName();
                        strNextName4.getClass();
                        switch (strNextName4) {
                            case "appProcessDetails":
                                ArrayList arrayList = new ArrayList();
                                jsonReader.beginArray();
                                while (jsonReader.hasNext()) {
                                    arrayList.add(g(jsonReader));
                                }
                                jsonReader.endArray();
                                listUnmodifiableList3 = Collections.unmodifiableList(arrayList);
                                break;
                            case "background":
                                boolValueOf = Boolean.valueOf(jsonReader.nextBoolean());
                                break;
                            case "execution":
                                jsonReader.beginObject();
                                List listD2 = null;
                                U uF = null;
                                D dC = null;
                                V v7 = null;
                                List listD3 = null;
                                while (jsonReader.hasNext()) {
                                    String strNextName5 = jsonReader.nextName();
                                    strNextName5.getClass();
                                    switch (strNextName5) {
                                        case "appExitInfo":
                                            dC = c(jsonReader);
                                            break;
                                        case "threads":
                                            listD2 = d(jsonReader, new C0878i(9));
                                            break;
                                        case "signal":
                                            jsonReader.beginObject();
                                            long jNextLong = 0;
                                            String strNextString = null;
                                            String strNextString2 = null;
                                            byte b9 = 0;
                                            while (jsonReader.hasNext()) {
                                                String strNextName6 = jsonReader.nextName();
                                                strNextName6.getClass();
                                                switch (strNextName6) {
                                                    case "address":
                                                        b9 = (byte) (b9 | 1);
                                                        jNextLong = jsonReader.nextLong();
                                                        break;
                                                    case "code":
                                                        strNextString2 = jsonReader.nextString();
                                                        if (strNextString2 == null) {
                                                            throw new NullPointerException("Null code");
                                                        }
                                                        break;
                                                        break;
                                                    case "name":
                                                        strNextString = jsonReader.nextString();
                                                        if (strNextString == null) {
                                                            throw new NullPointerException("Null name");
                                                        }
                                                        break;
                                                        break;
                                                    default:
                                                        jsonReader.skipValue();
                                                        break;
                                                }
                                            }
                                            jsonReader.endObject();
                                            if (b9 == 1 && strNextString != null && strNextString2 != null) {
                                                v7 = new V(jNextLong, strNextString, strNextString2);
                                                break;
                                            } else {
                                                StringBuilder sb = new StringBuilder();
                                                if (strNextString == null) {
                                                    sb.append(" name");
                                                }
                                                if (strNextString2 == null) {
                                                    sb.append(" code");
                                                }
                                                if ((b9 & 1) == 0) {
                                                    sb.append(" address");
                                                }
                                                throw new IllegalStateException(AbstractC0844a.m("Missing required properties:", sb));
                                            }
                                            break;
                                        case "binaries":
                                            listD3 = d(jsonReader, new C0878i(10));
                                            if (listD3 == null) {
                                                throw new NullPointerException("Null binaries");
                                            }
                                            break;
                                        case "exception":
                                            uF = f(jsonReader);
                                            break;
                                        default:
                                            jsonReader.skipValue();
                                            break;
                                    }
                                }
                                jsonReader.endObject();
                                if (v7 != null && listD3 != null) {
                                    s8 = new S(listD2, uF, dC, v7, listD3);
                                    break;
                                } else {
                                    StringBuilder sb2 = new StringBuilder();
                                    if (v7 == null) {
                                        sb2.append(" signal");
                                    }
                                    if (listD3 == null) {
                                        sb2.append(" binaries");
                                    }
                                    throw new IllegalStateException(AbstractC0844a.m("Missing required properties:", sb2));
                                }
                                break;
                            case "internalKeys":
                                ArrayList arrayList2 = new ArrayList();
                                jsonReader.beginArray();
                                while (jsonReader.hasNext()) {
                                    arrayList2.add(b(jsonReader));
                                }
                                jsonReader.endArray();
                                listUnmodifiableList2 = Collections.unmodifiableList(arrayList2);
                                break;
                            case "customAttributes":
                                ArrayList arrayList3 = new ArrayList();
                                jsonReader.beginArray();
                                while (jsonReader.hasNext()) {
                                    arrayList3.add(b(jsonReader));
                                }
                                jsonReader.endArray();
                                listUnmodifiableList = Collections.unmodifiableList(arrayList3);
                                break;
                            case "uiOrientation":
                                iNextInt = jsonReader.nextInt();
                                b8 = (byte) 1;
                                break;
                            case "currentProcessDetails":
                                c1278a0G = g(jsonReader);
                                break;
                            default:
                                jsonReader.skipValue();
                                break;
                        }
                    }
                    jsonReader.endObject();
                    if (b8 == 1 && s8 != null) {
                        o8.f15260c = new Q(s8, listUnmodifiableList, listUnmodifiableList2, boolValueOf, c1278a0G, listUnmodifiableList3, iNextInt);
                        continue;
                        break;
                    } else {
                        StringBuilder sb3 = new StringBuilder();
                        if (s8 == null) {
                            sb3.append(" execution");
                        }
                        if (b8 == 0) {
                            sb3.append(" uiOrientation");
                        }
                        throw new IllegalStateException(AbstractC0844a.m("Missing required properties:", sb3));
                    }
                    break;
                case "log":
                    jsonReader.beginObject();
                    while (jsonReader.hasNext()) {
                        if (jsonReader.nextName().equals("content")) {
                            String strNextString3 = jsonReader.nextString();
                            if (strNextString3 == null) {
                                throw new NullPointerException("Null content");
                            }
                            str = strNextString3;
                        } else {
                            jsonReader.skipValue();
                        }
                    }
                    jsonReader.endObject();
                    if (str == null) {
                        throw new IllegalStateException("Missing required properties: content");
                    }
                    o8.f15262e = new C1284d0(str);
                    break;
                    break;
                case "type":
                    String strNextString4 = jsonReader.nextString();
                    if (strNextString4 == null) {
                        throw new NullPointerException("Null type");
                    }
                    o8.f15259b = strNextString4;
                    break;
                    break;
                case "timestamp":
                    o8.f15258a = jsonReader.nextLong();
                    o8.f15264g = (byte) (o8.f15264g | 1);
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
        }
        jsonReader.endObject();
        return o8.a();
    }

    public static U f(JsonReader jsonReader) throws IOException {
        jsonReader.beginObject();
        int iNextInt = 0;
        String str = null;
        String strNextString = null;
        List list = null;
        U uF = null;
        byte b8 = 0;
        while (jsonReader.hasNext()) {
            String strNextName = jsonReader.nextName();
            strNextName.getClass();
            switch (strNextName) {
                case "frames":
                    List listD = d(jsonReader, new C0878i(11));
                    if (listD == null) {
                        throw new NullPointerException("Null frames");
                    }
                    list = listD;
                    break;
                    break;
                case "reason":
                    strNextString = jsonReader.nextString();
                    break;
                case "type":
                    String strNextString2 = jsonReader.nextString();
                    if (strNextString2 == null) {
                        throw new NullPointerException("Null type");
                    }
                    str = strNextString2;
                    break;
                    break;
                case "causedBy":
                    uF = f(jsonReader);
                    break;
                case "overflowCount":
                    iNextInt = jsonReader.nextInt();
                    b8 = (byte) (b8 | 1);
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
        }
        jsonReader.endObject();
        if (b8 == 1 && str != null && list != null) {
            return new U(str, strNextString, list, uF, iNextInt);
        }
        StringBuilder sb = new StringBuilder();
        if (str == null) {
            sb.append(" type");
        }
        if (list == null) {
            sb.append(" frames");
        }
        if ((b8 & 1) == 0) {
            sb.append(" overflowCount");
        }
        throw new IllegalStateException(AbstractC0844a.m("Missing required properties:", sb));
    }

    public static C1278a0 g(JsonReader jsonReader) throws IOException {
        Z z8 = new Z();
        jsonReader.beginObject();
        while (jsonReader.hasNext()) {
            String strNextName = jsonReader.nextName();
            strNextName.getClass();
            switch (strNextName) {
                case "pid":
                    z8.f15311b = jsonReader.nextInt();
                    z8.f15314e = (byte) (z8.f15314e | 1);
                    break;
                case "processName":
                    String strNextString = jsonReader.nextString();
                    if (strNextString == null) {
                        throw new NullPointerException("Null processName");
                    }
                    z8.f15310a = strNextString;
                    break;
                    break;
                case "defaultProcess":
                    z8.f15313d = jsonReader.nextBoolean();
                    z8.f15314e = (byte) (z8.f15314e | 4);
                    break;
                case "importance":
                    z8.f15312c = jsonReader.nextInt();
                    z8.f15314e = (byte) (z8.f15314e | 2);
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
        }
        jsonReader.endObject();
        return z8.a();
    }

    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r10v11 */
    /* JADX WARN: Type inference failed for: r10v12 */
    /* JADX WARN: Type inference failed for: r10v14 */
    /* JADX WARN: Type inference failed for: r10v15 */
    /* JADX WARN: Type inference failed for: r10v17 */
    /* JADX WARN: Type inference failed for: r10v18 */
    /* JADX WARN: Type inference failed for: r10v2 */
    /* JADX WARN: Type inference failed for: r10v20 */
    /* JADX WARN: Type inference failed for: r10v21 */
    /* JADX WARN: Type inference failed for: r10v23 */
    /* JADX WARN: Type inference failed for: r10v24 */
    /* JADX WARN: Type inference failed for: r10v26 */
    /* JADX WARN: Type inference failed for: r10v27 */
    /* JADX WARN: Type inference failed for: r10v29 */
    /* JADX WARN: Type inference failed for: r10v3 */
    /* JADX WARN: Type inference failed for: r10v30 */
    /* JADX WARN: Type inference failed for: r10v32 */
    /* JADX WARN: Type inference failed for: r10v33 */
    /* JADX WARN: Type inference failed for: r10v35 */
    /* JADX WARN: Type inference failed for: r10v36 */
    /* JADX WARN: Type inference failed for: r10v37 */
    /* JADX WARN: Type inference failed for: r10v44 */
    /* JADX WARN: Type inference failed for: r10v5 */
    /* JADX WARN: Type inference failed for: r10v6 */
    /* JADX WARN: Type inference failed for: r10v8 */
    /* JADX WARN: Type inference failed for: r10v9 */
    public static B h(JsonReader jsonReader) throws IOException {
        ?? r10;
        boolean z8 = false;
        Charset charset = O0.f15265a;
        C1276A c1276a = new C1276A();
        jsonReader.beginObject();
        while (jsonReader.hasNext()) {
            String strNextName = jsonReader.nextName();
            strNextName.getClass();
            switch (strNextName.hashCode()) {
                case -2118372775:
                    r10 = !strNextName.equals("ndkPayload") ? -1 : z8;
                    break;
                case -1962630338:
                    r10 = !strNextName.equals("sdkVersion") ? -1 : 1;
                    break;
                case -1907185581:
                    r10 = !strNextName.equals("appQualitySessionId") ? -1 : 2;
                    break;
                case -1375141843:
                    r10 = !strNextName.equals("appExitInfo") ? -1 : 3;
                    break;
                case -911706486:
                    r10 = !strNextName.equals("buildVersion") ? -1 : 4;
                    break;
                case -401988390:
                    r10 = !strNextName.equals("firebaseAuthenticationToken") ? -1 : 5;
                    break;
                case 344431858:
                    r10 = !strNextName.equals("gmpAppId") ? -1 : 6;
                    break;
                case 719853845:
                    r10 = !strNextName.equals("installationUuid") ? -1 : 7;
                    break;
                case 1047652060:
                    r10 = !strNextName.equals("firebaseInstallationId") ? -1 : 8;
                    break;
                case 1874684019:
                    r10 = !strNextName.equals("platform") ? -1 : 9;
                    break;
                case 1975623094:
                    r10 = !strNextName.equals("displayVersion") ? -1 : 10;
                    break;
                case 1984987798:
                    r10 = !strNextName.equals("session") ? -1 : 11;
                    break;
                default:
                    r10 = -1;
                    break;
            }
            switch (r10) {
                case u0.f15495q /* 0 */:
                    jsonReader.beginObject();
                    List listD = null;
                    String strNextString = null;
                    while (jsonReader.hasNext()) {
                        String strNextName2 = jsonReader.nextName();
                        strNextName2.getClass();
                        if (strNextName2.equals("files")) {
                            listD = d(jsonReader, new C0878i(7));
                            if (listD == null) {
                                throw new NullPointerException("Null files");
                            }
                        } else if (strNextName2.equals("orgId")) {
                            strNextString = jsonReader.nextString();
                        } else {
                            jsonReader.skipValue();
                        }
                    }
                    jsonReader.endObject();
                    if (listD == null) {
                        throw new IllegalStateException("Missing required properties: files");
                    }
                    c1276a.f15172k = new G(strNextString, listD);
                    continue;
                    z8 = false;
                    break;
                    break;
                case 1:
                    String strNextString2 = jsonReader.nextString();
                    if (strNextString2 == null) {
                        throw new NullPointerException("Null sdkVersion");
                    }
                    c1276a.f15163a = strNextString2;
                    break;
                    break;
                case 2:
                    c1276a.f15169g = jsonReader.nextString();
                    break;
                case 3:
                    c1276a.f15173l = c(jsonReader);
                    break;
                case 4:
                    String strNextString3 = jsonReader.nextString();
                    if (strNextString3 == null) {
                        throw new NullPointerException("Null buildVersion");
                    }
                    c1276a.f15170h = strNextString3;
                    break;
                    break;
                case 5:
                    c1276a.f15168f = jsonReader.nextString();
                    break;
                case g.STRING_SET_FIELD_NUMBER /* 6 */:
                    String strNextString4 = jsonReader.nextString();
                    if (strNextString4 == null) {
                        throw new NullPointerException("Null gmpAppId");
                    }
                    c1276a.f15164b = strNextString4;
                    break;
                    break;
                case g.DOUBLE_FIELD_NUMBER /* 7 */:
                    String strNextString5 = jsonReader.nextString();
                    if (strNextString5 == null) {
                        throw new NullPointerException("Null installationUuid");
                    }
                    c1276a.f15166d = strNextString5;
                    break;
                    break;
                case g.BYTES_FIELD_NUMBER /* 8 */:
                    c1276a.f15167e = jsonReader.nextString();
                    break;
                case 9:
                    c1276a.f15165c = jsonReader.nextInt();
                    c1276a.f15174m = (byte) (c1276a.f15174m | 1);
                    break;
                case 10:
                    String strNextString6 = jsonReader.nextString();
                    if (strNextString6 == null) {
                        throw new NullPointerException("Null displayVersion");
                    }
                    c1276a.i = strNextString6;
                    break;
                    break;
                case 11:
                    I i = new I();
                    i.f15217f = z8;
                    i.f15223m = (byte) (i.f15223m | 2);
                    jsonReader.beginObject();
                    while (jsonReader.hasNext()) {
                        String strNextName3 = jsonReader.nextName();
                        strNextName3.getClass();
                        switch (strNextName3) {
                            case "startedAt":
                                i.f15215d = jsonReader.nextLong();
                                i.f15223m = (byte) (i.f15223m | 1);
                                break;
                            case "appQualitySessionId":
                                i.f15214c = jsonReader.nextString();
                                break;
                            case "identifier":
                                i.f15213b = new String(Base64.decode(jsonReader.nextString(), 2), O0.f15265a);
                                break;
                            case "endedAt":
                                i.f15216e = Long.valueOf(jsonReader.nextLong());
                                break;
                            case "device":
                                M m8 = new M();
                                jsonReader.beginObject();
                                while (jsonReader.hasNext()) {
                                    String strNextName4 = jsonReader.nextName();
                                    strNextName4.getClass();
                                    switch (strNextName4) {
                                        case "simulator":
                                            m8.f15246f = jsonReader.nextBoolean();
                                            m8.f15249j = (byte) (m8.f15249j | 16);
                                            break;
                                        case "manufacturer":
                                            String strNextString7 = jsonReader.nextString();
                                            if (strNextString7 == null) {
                                                throw new NullPointerException("Null manufacturer");
                                            }
                                            m8.f15248h = strNextString7;
                                            break;
                                            break;
                                        case "ram":
                                            m8.f15244d = jsonReader.nextLong();
                                            m8.f15249j = (byte) (m8.f15249j | 4);
                                            break;
                                        case "arch":
                                            m8.f15241a = jsonReader.nextInt();
                                            m8.f15249j = (byte) (m8.f15249j | 1);
                                            break;
                                        case "diskSpace":
                                            m8.f15245e = jsonReader.nextLong();
                                            m8.f15249j = (byte) (m8.f15249j | 8);
                                            break;
                                        case "cores":
                                            m8.f15243c = jsonReader.nextInt();
                                            m8.f15249j = (byte) (m8.f15249j | 2);
                                            break;
                                        case "model":
                                            String strNextString8 = jsonReader.nextString();
                                            if (strNextString8 == null) {
                                                throw new NullPointerException("Null model");
                                            }
                                            m8.f15242b = strNextString8;
                                            break;
                                            break;
                                        case "state":
                                            m8.f15247g = jsonReader.nextInt();
                                            m8.f15249j = (byte) (m8.f15249j | 32);
                                            break;
                                        case "modelClass":
                                            String strNextString9 = jsonReader.nextString();
                                            if (strNextString9 == null) {
                                                throw new NullPointerException("Null modelClass");
                                            }
                                            m8.i = strNextString9;
                                            break;
                                            break;
                                        default:
                                            jsonReader.skipValue();
                                            break;
                                    }
                                }
                                jsonReader.endObject();
                                i.f15220j = m8.a();
                                break;
                            case "events":
                                ArrayList arrayList = new ArrayList();
                                jsonReader.beginArray();
                                while (jsonReader.hasNext()) {
                                    arrayList.add(e(jsonReader));
                                }
                                jsonReader.endArray();
                                i.f15221k = Collections.unmodifiableList(arrayList);
                                break;
                            case "os":
                                C1294i0 c1294i0 = new C1294i0();
                                jsonReader.beginObject();
                                while (jsonReader.hasNext()) {
                                    String strNextName5 = jsonReader.nextName();
                                    strNextName5.getClass();
                                    switch (strNextName5) {
                                        case "buildVersion":
                                            String strNextString10 = jsonReader.nextString();
                                            if (strNextString10 == null) {
                                                throw new NullPointerException("Null buildVersion");
                                            }
                                            c1294i0.f15399c = strNextString10;
                                            break;
                                            break;
                                        case "jailbroken":
                                            c1294i0.f15400d = jsonReader.nextBoolean();
                                            c1294i0.f15401e = (byte) (c1294i0.f15401e | 2);
                                            break;
                                        case "version":
                                            String strNextString11 = jsonReader.nextString();
                                            if (strNextString11 == null) {
                                                throw new NullPointerException("Null version");
                                            }
                                            c1294i0.f15398b = strNextString11;
                                            break;
                                            break;
                                        case "platform":
                                            c1294i0.f15397a = jsonReader.nextInt();
                                            c1294i0.f15401e = (byte) (c1294i0.f15401e | 1);
                                            break;
                                        default:
                                            jsonReader.skipValue();
                                            break;
                                    }
                                }
                                jsonReader.endObject();
                                i.i = c1294i0.a();
                                break;
                            case "app":
                                jsonReader.beginObject();
                                String strNextString12 = null;
                                String strNextString13 = null;
                                String strNextString14 = null;
                                String strNextString15 = null;
                                String strNextString16 = null;
                                String strNextString17 = null;
                                while (jsonReader.hasNext()) {
                                    String strNextName6 = jsonReader.nextName();
                                    strNextName6.getClass();
                                    switch (strNextName6) {
                                        case "identifier":
                                            strNextString12 = jsonReader.nextString();
                                            if (strNextString12 == null) {
                                                throw new NullPointerException("Null identifier");
                                            }
                                            break;
                                            break;
                                        case "developmentPlatform":
                                            strNextString16 = jsonReader.nextString();
                                            break;
                                        case "developmentPlatformVersion":
                                            strNextString17 = jsonReader.nextString();
                                            break;
                                        case "version":
                                            strNextString13 = jsonReader.nextString();
                                            if (strNextString13 == null) {
                                                throw new NullPointerException("Null version");
                                            }
                                            break;
                                            break;
                                        case "installationUuid":
                                            strNextString15 = jsonReader.nextString();
                                            break;
                                        case "displayVersion":
                                            strNextString14 = jsonReader.nextString();
                                            break;
                                        default:
                                            jsonReader.skipValue();
                                            break;
                                    }
                                }
                                jsonReader.endObject();
                                if (strNextString12 != null && strNextString13 != null) {
                                    i.f15218g = new K(strNextString12, strNextString13, strNextString14, strNextString15, strNextString16, strNextString17);
                                    break;
                                } else {
                                    StringBuilder sb = new StringBuilder();
                                    if (strNextString12 == null) {
                                        sb.append(" identifier");
                                    }
                                    if (strNextString13 == null) {
                                        sb.append(" version");
                                    }
                                    throw new IllegalStateException(AbstractC0844a.m("Missing required properties:", sb));
                                }
                                break;
                            case "user":
                                jsonReader.beginObject();
                                String strNextString18 = null;
                                while (jsonReader.hasNext()) {
                                    if (jsonReader.nextName().equals("identifier")) {
                                        strNextString18 = jsonReader.nextString();
                                        if (strNextString18 == null) {
                                            throw new NullPointerException("Null identifier");
                                        }
                                    } else {
                                        jsonReader.skipValue();
                                    }
                                }
                                jsonReader.endObject();
                                if (strNextString18 == null) {
                                    throw new IllegalStateException("Missing required properties: identifier");
                                }
                                i.f15219h = new C1298k0(strNextString18);
                                break;
                                break;
                            case "generator":
                                String strNextString19 = jsonReader.nextString();
                                if (strNextString19 == null) {
                                    throw new NullPointerException("Null generator");
                                }
                                i.f15212a = strNextString19;
                                break;
                                break;
                            case "crashed":
                                i.f15217f = jsonReader.nextBoolean();
                                i.f15223m = (byte) (i.f15223m | 2);
                                break;
                            case "generatorType":
                                i.f15222l = jsonReader.nextInt();
                                i.f15223m = (byte) (i.f15223m | 4);
                                break;
                            default:
                                jsonReader.skipValue();
                                break;
                        }
                    }
                    jsonReader.endObject();
                    c1276a.f15171j = i.a();
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
            z8 = false;
        }
        jsonReader.endObject();
        return c1276a.a();
    }

    public static B i(String str) {
        try {
            JsonReader jsonReader = new JsonReader(new StringReader(str));
            try {
                B bH = h(jsonReader);
                jsonReader.close();
                return bH;
            } finally {
            }
        } catch (IllegalStateException e8) {
            throw new IOException(e8);
        }
    }
}
