package o;

import android.util.JsonReader;
import java.io.IOException;
import java.io.StringReader;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.wo, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2844wo {
    public static final C0247Jn a;

    static {
        C2040oJ c2040oJ = new C2040oJ();
        C1104ea c1104ea = C1104ea.a;
        c2040oJ.a(AbstractC2654uo.class, c1104ea);
        c2040oJ.a(C0724ab.class, c1104ea);
        C1677ka c1677ka = C1677ka.a;
        c2040oJ.a(AbstractC2559to.class, c1677ka);
        c2040oJ.a(C1584jb.class, c1677ka);
        C1392ha c1392ha = C1392ha.a;
        c2040oJ.a(AbstractC0750ao.class, c1392ha);
        c2040oJ.a(C1679kb.class, c1392ha);
        C1488ia c1488ia = C1488ia.a;
        c2040oJ.a(AbstractC0662Zn.class, c1488ia);
        c2040oJ.a(AbstractC1774lb.class, c1488ia);
        C0000Aa c0000Aa = C0000Aa.a;
        c2040oJ.a(AbstractC2464so.class, c0000Aa);
        c2040oJ.a(C0235Jb.class, c0000Aa);
        C3101za c3101za = C3101za.a;
        c2040oJ.a(AbstractC2369ro.class, c3101za);
        c2040oJ.a(C0209Ib.class, c3101za);
        C1582ja c1582ja = C1582ja.a;
        c2040oJ.a(AbstractC0846bo.class, c1582ja);
        c2040oJ.a(C1964nb.class, c1582ja);
        C2626ua c2626ua = C2626ua.a;
        c2040oJ.a(AbstractC2275qo.class, c2626ua);
        c2040oJ.a(C2154pb.class, c2626ua);
        C1772la c1772la = C1772la.a;
        c2040oJ.a(AbstractC1705ko.class, c1772la);
        c2040oJ.a(C2249qb.class, c1772la);
        C1962na c1962na = C1962na.a;
        c2040oJ.a(AbstractC1515io.class, c1962na);
        c2040oJ.a(C2343rb.class, c1962na);
        C2247qa c2247qa = C2247qa.a;
        c2040oJ.a(AbstractC1420ho.class, c2247qa);
        c2040oJ.a(C2723vb.class, c2247qa);
        C2341ra c2341ra = C2341ra.a;
        c2040oJ.a(AbstractC1324go.class, c2341ra);
        c2040oJ.a(C2913xb.class, c2341ra);
        C2057oa c2057oa = C2057oa.a;
        c2040oJ.a(AbstractC1132eo.class, c2057oa);
        c2040oJ.a(C2533tb.class, c2057oa);
        C0913ca c0913ca = C0913ca.a;
        c2040oJ.a(AbstractC0558Vn.class, c0913ca);
        c2040oJ.a(C1011db.class, c0913ca);
        C0818ba c0818ba = C0818ba.a;
        c2040oJ.a(AbstractC0532Un.class, c0818ba);
        c2040oJ.a(C1106eb.class, c0818ba);
        C2152pa c2152pa = C2152pa.a;
        c2040oJ.a(AbstractC1228fo.class, c2152pa);
        c2040oJ.a(C2628ub.class, c2152pa);
        C1867ma c1867ma = C1867ma.a;
        c2040oJ.a(AbstractC0941co.class, c1867ma);
        c2040oJ.a(C2438sb.class, c1867ma);
        C1009da c1009da = C1009da.a;
        c2040oJ.a(AbstractC0584Wn.class, c1009da);
        c2040oJ.a(C1202fb.class, c1009da);
        C2436sa c2436sa = C2436sa.a;
        c2040oJ.a(AbstractC1610jo.class, c2436sa);
        c2040oJ.a(C3103zb.class, c2436sa);
        C2531ta c2531ta = C2531ta.a;
        c2040oJ.a(AbstractC1800lo.class, c2531ta);
        c2040oJ.a(C0027Bb.class, c2531ta);
        C2721va c2721va = C2721va.a;
        c2040oJ.a(AbstractC1895mo.class, c2721va);
        c2040oJ.a(C0053Cb.class, c2721va);
        C3006ya c3006ya = C3006ya.a;
        c2040oJ.a(AbstractC2180po.class, c3006ya);
        c2040oJ.a(C0157Gb.class, c3006ya);
        C2816wa c2816wa = C2816wa.a;
        c2040oJ.a(AbstractC2085oo.class, c2816wa);
        c2040oJ.a(C0105Eb.class, c2816wa);
        C2911xa c2911xa = C2911xa.a;
        c2040oJ.a(AbstractC1990no.class, c2911xa);
        c2040oJ.a(C0131Fb.class, c2911xa);
        C1200fa c1200fa = C1200fa.a;
        c2040oJ.a(AbstractC0636Yn.class, c1200fa);
        c2040oJ.a(C1298gb.class, c1200fa);
        C1296ga c1296ga = C1296ga.a;
        c2040oJ.a(AbstractC0610Xn.class, c1296ga);
        c2040oJ.a(C1394hb.class, c1296ga);
        c2040oJ.d = true;
        a = new C0247Jn(20, c2040oJ);
    }

    public static C2913xb a(JsonReader jsonReader) throws IOException {
        C2818wb c2818wb = new C2818wb();
        jsonReader.beginObject();
        while (jsonReader.hasNext()) {
            String strNextName = jsonReader.nextName();
            strNextName.getClass();
            switch (strNextName) {
                case "offset":
                    c2818wb.d = jsonReader.nextLong();
                    c2818wb.f = (byte) (c2818wb.f | 2);
                    break;
                case "symbol":
                    String strNextString = jsonReader.nextString();
                    if (strNextString == null) {
                        throw new NullPointerException("Null symbol");
                    }
                    c2818wb.b = strNextString;
                    break;
                case "pc":
                    c2818wb.a = jsonReader.nextLong();
                    c2818wb.f = (byte) (c2818wb.f | 1);
                    break;
                case "file":
                    c2818wb.c = jsonReader.nextString();
                    break;
                case "importance":
                    c2818wb.e = jsonReader.nextInt();
                    c2818wb.f = (byte) (c2818wb.f | 4);
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
        }
        jsonReader.endObject();
        return c2818wb.a();
    }

    public static C1202fb 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 C1202fb(strNextString, strNextString2);
        }
        StringBuilder sb = new StringBuilder();
        if (strNextString == null) {
            sb.append(" key");
        }
        if (strNextString2 == null) {
            sb.append(" value");
        }
        throw new IllegalStateException(AbstractC2462sn.k("Missing required properties:", sb));
    }

    public static C1011db c(JsonReader jsonReader) throws IOException {
        C0915cb c0915cb = new C0915cb();
        jsonReader.beginObject();
        while (jsonReader.hasNext()) {
            String strNextName = jsonReader.nextName();
            strNextName.getClass();
            switch (strNextName) {
                case "buildIdMappingForArch":
                    c0915cb.i = d(jsonReader, new C0397Pi(6));
                    break;
                case "pid":
                    c0915cb.a = jsonReader.nextInt();
                    c0915cb.j = (byte) (c0915cb.j | 1);
                    break;
                case "pss":
                    c0915cb.e = jsonReader.nextLong();
                    c0915cb.j = (byte) (c0915cb.j | 8);
                    break;
                case "rss":
                    c0915cb.f = jsonReader.nextLong();
                    c0915cb.j = (byte) (c0915cb.j | 16);
                    break;
                case "timestamp":
                    c0915cb.g = jsonReader.nextLong();
                    c0915cb.j = (byte) (c0915cb.j | 32);
                    break;
                case "processName":
                    String strNextString = jsonReader.nextString();
                    if (strNextString == null) {
                        throw new NullPointerException("Null processName");
                    }
                    c0915cb.b = strNextString;
                    break;
                case "reasonCode":
                    c0915cb.c = jsonReader.nextInt();
                    c0915cb.j = (byte) (c0915cb.j | 2);
                    break;
                case "traceFile":
                    c0915cb.h = jsonReader.nextString();
                    break;
                case "importance":
                    c0915cb.d = jsonReader.nextInt();
                    c0915cb.j = (byte) (c0915cb.j | 4);
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
        }
        jsonReader.endObject();
        return c0915cb.a();
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Removed duplicated region for block: B:109:0x01b2  */
    /* JADX WARN: Removed duplicated region for block: B:13:0x004d  */
    /* JADX WARN: Removed duplicated region for block: B:205:0x0323  */
    /* JADX WARN: Removed duplicated region for block: B:60:0x0106  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static java.util.List d(android.util.JsonReader r22, o.C0397Pi r23) throws java.io.IOException {
        /*
            Method dump skipped, instructions count: 1080
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C2844wo.d(android.util.JsonReader, o.Pi):java.util.List");
    }

    /* 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: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:111:0x01b0  */
    /* JADX WARN: Removed duplicated region for block: B:157:0x0255  */
    /* JADX WARN: Removed duplicated region for block: B:241:0x03d3  */
    /* JADX WARN: Removed duplicated region for block: B:62:0x00ef  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0020  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static o.C2154pb e(android.util.JsonReader r29) throws java.io.IOException {
        /*
            Method dump skipped, instructions count: 1350
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C2844wo.e(android.util.JsonReader):o.pb");
    }

    /* 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:7:0x0021  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static o.C2533tb f(android.util.JsonReader r11) throws java.io.IOException {
        /*
            Method dump skipped, instructions count: 246
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C2844wo.f(android.util.JsonReader):o.tb");
    }

    public static C3103zb g(JsonReader jsonReader) throws IOException {
        C3008yb c3008yb = new C3008yb();
        jsonReader.beginObject();
        while (jsonReader.hasNext()) {
            String strNextName = jsonReader.nextName();
            strNextName.getClass();
            switch (strNextName) {
                case "pid":
                    c3008yb.b = jsonReader.nextInt();
                    c3008yb.e = (byte) (c3008yb.e | 1);
                    break;
                case "processName":
                    String strNextString = jsonReader.nextString();
                    if (strNextString == null) {
                        throw new NullPointerException("Null processName");
                    }
                    c3008yb.a = strNextString;
                    break;
                case "defaultProcess":
                    c3008yb.d = jsonReader.nextBoolean();
                    c3008yb.e = (byte) (c3008yb.e | 4);
                    break;
                case "importance":
                    c3008yb.c = jsonReader.nextInt();
                    c3008yb.e = (byte) (c3008yb.e | 2);
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
        }
        jsonReader.endObject();
        return c3008yb.a();
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Removed duplicated region for block: B:145:0x0219  */
    /* JADX WARN: Removed duplicated region for block: B:203:0x02db  */
    /* JADX WARN: Removed duplicated region for block: B:245:0x038c  */
    /* JADX WARN: Removed duplicated region for block: B:65:0x00ed  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0031  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static o.C0724ab h(android.util.JsonReader r29) throws java.io.IOException {
        /*
            Method dump skipped, instructions count: 1766
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C2844wo.h(android.util.JsonReader):o.ab");
    }

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