package o;

import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.database.Cursor;
import android.graphics.PorterDuff;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.os.Process;
import android.text.TextUtils;
import android.view.View;
import androidx.compose.ui.draw.ShadowGraphicsLayerElement;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.R;
import com.google.android.gms.common.api.Api;
import java.io.IOException;
import java.security.cert.Certificate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.WeakHashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.net.ssl.SSLPeerUnverifiedException;
import javax.net.ssl.SSLSession;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class Co0 {
    public static ClassLoader a;
    public static Thread b;
    public static final Object c = null;
    public static final C0688a6 d = new C0688a6(27);
    public static final W20 e = new W20();
    public static final String[] f = {"firebase_last_notification", "first_open_time", "first_visit_time", "last_deep_link_referrer", "user_id", "last_advertising_id_reset", "first_open_after_install", "lifetime_user_engagement", "session_user_engagement", "non_personalized_ads", "ga_session_number", "ga_session_id", "last_gclid", "session_number", "session_id"};
    public static final String[] g = {"_ln", "_fot", "_fvt", "_ldl", "_id", "_lair", "_fi", "_lte", "_se", "_npa", "_sno", "_sid", "_lgclid", "_sno", "_sid"};
    public static CG h;
    public static CG i;
    public static C2616uQ j;

    public static ColorStateList A(Drawable drawable) {
        if (drawable instanceof ColorDrawable) {
            return ColorStateList.valueOf(((ColorDrawable) drawable).getColor());
        }
        if (Build.VERSION.SDK_INT < 29 || !S2.x(drawable)) {
            return null;
        }
        return S2.i(drawable).getColorStateList();
    }

    public static final int B(Cursor cursor, String str) {
        String strS;
        int columnIndex = cursor.getColumnIndex(str);
        if (columnIndex < 0) {
            columnIndex = cursor.getColumnIndex("`" + str + '`');
            if (columnIndex < 0) {
                if (Build.VERSION.SDK_INT <= 25 && str.length() != 0) {
                    String[] columnNames = cursor.getColumnNames();
                    String strConcat = ".".concat(str);
                    String str2 = "." + str + '`';
                    int length = columnNames.length;
                    int i2 = 0;
                    int i3 = 0;
                    while (i3 < length) {
                        String str3 = columnNames[i3];
                        int i4 = i2 + 1;
                        if (str3.length() >= str.length() + 2 && (str3.endsWith(strConcat) || (str3.charAt(0) == '`' && str3.endsWith(str2)))) {
                            columnIndex = i2;
                            break;
                        }
                        i3++;
                        i2 = i4;
                    }
                    columnIndex = -1;
                } else {
                    columnIndex = -1;
                }
            }
        }
        if (columnIndex >= 0) {
            return columnIndex;
        }
        try {
            strS = AbstractC2219q9.S(63, cursor.getColumnNames());
        } catch (Exception unused) {
            strS = "unknown";
        }
        throw new IllegalArgumentException("column '" + str + "' does not exist. Available columns: " + strS);
    }

    public static final boolean C(R50 r50) {
        Object objG = r50.d.l.g(W50.I);
        if (objG == null) {
            objG = null;
        }
        Kf0 kf0 = (Kf0) objG;
        ZQ zq = r50.d.l;
        Object objG2 = zq.g(W50.x);
        if (objG2 == null) {
            objG2 = null;
        }
        C1065e30 c1065e30 = (C1065e30) objG2;
        boolean z = kf0 != null;
        Object objG3 = zq.g(W50.H);
        if (((Boolean) (objG3 != null ? objG3 : null)) == null || (c1065e30 != null && c1065e30.a == 4)) {
            return z;
        }
        return true;
    }

    public static final String D(R50 r50, Resources resources) throws Resources.NotFoundException {
        N50 n50 = r50.d;
        N50 n502 = r50.d;
        Object objG = n50.l.g(W50.b);
        String string = null;
        if (objG == null) {
            objG = null;
        }
        ZQ zq = n502.l;
        Object objG2 = zq.g(W50.I);
        if (objG2 == null) {
            objG2 = null;
        }
        Kf0 kf0 = (Kf0) objG2;
        Object objG3 = zq.g(W50.x);
        if (objG3 == null) {
            objG3 = null;
        }
        C1065e30 c1065e30 = (C1065e30) objG3;
        if (kf0 != null) {
            int iOrdinal = kf0.ordinal();
            if (iOrdinal != 0) {
                if (iOrdinal != 1) {
                    if (iOrdinal != 2) {
                        throw new C2170pj();
                    }
                    if (objG == null) {
                        objG = resources.getString(R.string.indeterminate);
                    }
                } else if (c1065e30 != null && c1065e30.a == 2 && objG == null) {
                    objG = resources.getString(R.string.state_off);
                }
            } else if (c1065e30 != null && c1065e30.a == 2 && objG == null) {
                objG = resources.getString(R.string.state_on);
            }
        }
        Object objG4 = zq.g(W50.H);
        if (objG4 == null) {
            objG4 = null;
        }
        Boolean bool = (Boolean) objG4;
        if (bool != null) {
            boolean zBooleanValue = bool.booleanValue();
            if ((c1065e30 == null || c1065e30.a != 4) && objG == null) {
                objG = zBooleanValue ? resources.getString(R.string.selected) : resources.getString(R.string.not_selected);
            }
        }
        Object objG5 = zq.g(W50.c);
        if (objG5 == null) {
            objG5 = null;
        }
        C1295gZ c1295gZ = (C1295gZ) objG5;
        if (c1295gZ != null) {
            if (c1295gZ != C1295gZ.b) {
                if (objG == null) {
                    objG = resources.getString(R.string.template_percent, 0);
                }
            } else if (objG == null) {
                objG = resources.getString(R.string.in_progress);
            }
        }
        Z50 z50 = W50.E;
        if (zq.c(z50)) {
            ZQ zq2 = new R50(r50.a, true, r50.c, n502).k().l;
            Object objG6 = zq2.g(W50.a);
            if (objG6 == null) {
                objG6 = null;
            }
            Collection collection = (Collection) objG6;
            if (collection == null || collection.isEmpty()) {
                Object objG7 = zq2.g(W50.A);
                if (objG7 == null) {
                    objG7 = null;
                }
                Collection collection2 = (Collection) objG7;
                if (collection2 == null || collection2.isEmpty()) {
                    Object objG8 = zq2.g(z50);
                    if (objG8 == null) {
                        objG8 = null;
                    }
                    CharSequence charSequence = (CharSequence) objG8;
                    if (charSequence == null || charSequence.length() == 0) {
                        string = resources.getString(R.string.state_empty);
                    }
                }
            }
            objG = string;
        }
        return (String) objG;
    }

    public static final C0977d7 E(R50 r50) {
        N50 n50 = r50.d;
        Z50 z50 = W50.a;
        C0977d7 c0977d7 = (C0977d7) IJ.t(n50, W50.E);
        List list = (List) IJ.t(r50.d, W50.A);
        return c0977d7 == null ? list != null ? (C0977d7) AbstractC3117zi.f0(list) : null : c0977d7;
    }

    public static final Bundle F(String str, Bundle bundle) {
        Bundle bundle2 = bundle.getBundle(str);
        if (bundle2 != null) {
            return bundle2;
        }
        throw new IllegalArgumentException(AbstractC2462sn.j("No valid saved state was found for the key '", str, "'. It may be missing, null, or not of the expected type. This can occur if the value was saved with a different type or if the saved state was modified unexpectedly."));
    }

    public static final void G(InterfaceC1851mK interfaceC1851mK) {
        AbstractC2539te.S(interfaceC1851mK).B();
    }

    public static boolean H(View view) {
        WeakHashMap weakHashMap = Oj0.a;
        return view.getLayoutDirection() == 1;
    }

    public static String I(String str, Object... objArr) {
        int iIndexOf;
        String string;
        int i2 = 0;
        for (int i3 = 0; i3 < objArr.length; i3++) {
            Object obj = objArr[i3];
            if (obj == null) {
                string = "null";
            } else {
                try {
                    string = obj.toString();
                } catch (Exception e2) {
                    String name = obj.getClass().getName();
                    String hexString = Integer.toHexString(System.identityHashCode(obj));
                    StringBuilder sb = new StringBuilder(String.valueOf(hexString).length() + name.length() + 1);
                    sb.append(name);
                    sb.append('@');
                    sb.append(hexString);
                    String string2 = sb.toString();
                    Logger logger = Logger.getLogger("com.google.common.base.Strings");
                    Level level = Level.WARNING;
                    String strValueOf = String.valueOf(string2);
                    logger.log(level, strValueOf.length() != 0 ? "Exception during lenientFormat for ".concat(strValueOf) : new String("Exception during lenientFormat for "), (Throwable) e2);
                    String name2 = e2.getClass().getName();
                    StringBuilder sb2 = new StringBuilder(name2.length() + String.valueOf(string2).length() + 9);
                    sb2.append("<");
                    sb2.append(string2);
                    sb2.append(" threw ");
                    sb2.append(name2);
                    sb2.append(">");
                    string = sb2.toString();
                }
            }
            objArr[i3] = string;
        }
        StringBuilder sb3 = new StringBuilder((objArr.length * 16) + str.length());
        int i4 = 0;
        while (i2 < objArr.length && (iIndexOf = str.indexOf("%s", i4)) != -1) {
            sb3.append((CharSequence) str, i4, iIndexOf);
            sb3.append(objArr[i2]);
            i4 = iIndexOf + 2;
            i2++;
        }
        sb3.append((CharSequence) str, i4, str.length());
        if (i2 < objArr.length) {
            sb3.append(" [");
            sb3.append(objArr[i2]);
            for (int i5 = i2 + 1; i5 < objArr.length; i5++) {
                sb3.append(", ");
                sb3.append(objArr[i5]);
            }
            sb3.append(']');
        }
        return sb3.toString();
    }

    public static PorterDuff.Mode J(int i2, PorterDuff.Mode mode) {
        if (i2 == 3) {
            return PorterDuff.Mode.SRC_OVER;
        }
        if (i2 == 5) {
            return PorterDuff.Mode.SRC_IN;
        }
        if (i2 == 9) {
            return PorterDuff.Mode.SRC_ATOP;
        }
        switch (i2) {
            case 14:
                return PorterDuff.Mode.MULTIPLY;
            case 15:
                return PorterDuff.Mode.SCREEN;
            case 16:
                return PorterDuff.Mode.ADD;
            default:
                return mode;
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r10v2, types: [java.lang.Object, java.lang.Object[]] */
    public static final boolean K(C1556jA c1556jA, V5 v5) {
        C1556jA[] c1556jAArr = new C1556jA[16];
        if (!c1556jA.l.y) {
            AbstractC2133pH.b("visitChildren called on an unattached node");
        }
        C1479iR c1479iR = new C1479iR(new LP[16]);
        LP lp = c1556jA.l;
        LP lp2 = lp.q;
        if (lp2 == null) {
            AbstractC2539te.g(c1479iR, lp);
        } else {
            c1479iR.b(lp2);
        }
        int i2 = 0;
        while (true) {
            int i3 = c1479iR.n;
            if (i3 == 0) {
                break;
            }
            LP lpI = (LP) c1479iR.k(i3 - 1);
            if ((lpI.f209o & 1024) == 0) {
                AbstractC2539te.g(c1479iR, lpI);
            } else {
                while (true) {
                    if (lpI == null) {
                        break;
                    }
                    if ((lpI.n & 1024) != 0) {
                        C1479iR c1479iR2 = null;
                        while (lpI != null) {
                            if (lpI instanceof C1556jA) {
                                C1556jA c1556jA2 = (C1556jA) lpI;
                                int i4 = i2 + 1;
                                if (c1556jAArr.length < i4) {
                                    int length = c1556jAArr.length;
                                    ?? r10 = new Object[Math.max(i4, length * 2)];
                                    System.arraycopy(c1556jAArr, 0, r10, 0, length);
                                    c1556jAArr = r10;
                                }
                                c1556jAArr[i2] = c1556jA2;
                                i2 = i4;
                            } else if ((lpI.n & 1024) != 0 && (lpI instanceof AbstractC0561Vq)) {
                                int i5 = 0;
                                for (LP lp3 = ((AbstractC0561Vq) lpI).A; lp3 != null; lp3 = lp3.q) {
                                    if ((lp3.n & 1024) != 0) {
                                        i5++;
                                        if (i5 == 1) {
                                            lpI = lp3;
                                        } else {
                                            if (c1479iR2 == null) {
                                                c1479iR2 = new C1479iR(new LP[16]);
                                            }
                                            if (lpI != null) {
                                                c1479iR2.b(lpI);
                                                lpI = null;
                                            }
                                            c1479iR2.b(lp3);
                                        }
                                    }
                                }
                                if (i5 == 1) {
                                }
                            }
                            lpI = AbstractC2539te.i(c1479iR2);
                        }
                    } else {
                        lpI = lpI.q;
                    }
                }
            }
        }
        Arrays.sort(c1556jAArr, 0, i2, C1746lA.b);
        int i6 = i2 - 1;
        if (i6 < c1556jAArr.length) {
            while (i6 >= 0) {
                C1556jA c1556jA3 = c1556jAArr[i6];
                if (AbstractC0752ap.S(c1556jA3) && i(c1556jA3, v5)) {
                    return true;
                }
                i6--;
            }
        }
        return false;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r10v2, types: [java.lang.Object, java.lang.Object[]] */
    public static final boolean L(C1556jA c1556jA, V5 v5) {
        C1556jA[] c1556jAArr = new C1556jA[16];
        if (!c1556jA.l.y) {
            AbstractC2133pH.b("visitChildren called on an unattached node");
        }
        C1479iR c1479iR = new C1479iR(new LP[16]);
        LP lp = c1556jA.l;
        LP lp2 = lp.q;
        if (lp2 == null) {
            AbstractC2539te.g(c1479iR, lp);
        } else {
            c1479iR.b(lp2);
        }
        int i2 = 0;
        while (true) {
            int i3 = c1479iR.n;
            if (i3 == 0) {
                break;
            }
            LP lpI = (LP) c1479iR.k(i3 - 1);
            if ((lpI.f209o & 1024) == 0) {
                AbstractC2539te.g(c1479iR, lpI);
            } else {
                while (true) {
                    if (lpI == null) {
                        break;
                    }
                    if ((lpI.n & 1024) != 0) {
                        C1479iR c1479iR2 = null;
                        while (lpI != null) {
                            if (lpI instanceof C1556jA) {
                                C1556jA c1556jA2 = (C1556jA) lpI;
                                int i4 = i2 + 1;
                                if (c1556jAArr.length < i4) {
                                    int length = c1556jAArr.length;
                                    ?? r10 = new Object[Math.max(i4, length * 2)];
                                    System.arraycopy(c1556jAArr, 0, r10, 0, length);
                                    c1556jAArr = r10;
                                }
                                c1556jAArr[i2] = c1556jA2;
                                i2 = i4;
                            } else if ((lpI.n & 1024) != 0 && (lpI instanceof AbstractC0561Vq)) {
                                int i5 = 0;
                                for (LP lp3 = ((AbstractC0561Vq) lpI).A; lp3 != null; lp3 = lp3.q) {
                                    if ((lp3.n & 1024) != 0) {
                                        i5++;
                                        if (i5 == 1) {
                                            lpI = lp3;
                                        } else {
                                            if (c1479iR2 == null) {
                                                c1479iR2 = new C1479iR(new LP[16]);
                                            }
                                            if (lpI != null) {
                                                c1479iR2.b(lpI);
                                                lpI = null;
                                            }
                                            c1479iR2.b(lp3);
                                        }
                                    }
                                }
                                if (i5 == 1) {
                                }
                            }
                            lpI = AbstractC2539te.i(c1479iR2);
                        }
                    } else {
                        lpI = lpI.q;
                    }
                }
            }
        }
        Arrays.sort(c1556jAArr, 0, i2, C1746lA.b);
        for (int i6 = 0; i6 < i2; i6++) {
            C1556jA c1556jA3 = c1556jAArr[i6];
            if (AbstractC0752ap.S(c1556jA3) && u(c1556jA3, v5)) {
                return true;
            }
        }
        return false;
    }

    public static final Object M(Object obj, Object obj2) {
        if (obj == null) {
            return obj2;
        }
        if (obj instanceof ArrayList) {
            ((ArrayList) obj).add(obj2);
            return obj;
        }
        ArrayList arrayList = new ArrayList(4);
        arrayList.add(obj);
        arrayList.add(obj2);
        return arrayList;
    }

    public static MP N(MP mp, float f2, C2302r30 c2302r30) {
        boolean z = Float.compare(f2, (float) 0) > 0;
        long j2 = AbstractC1370hE.a;
        return (Float.compare(f2, (float) 0) > 0 || z) ? mp.g(new ShadowGraphicsLayerElement(f2, c2302r30, z, j2, j2)) : mp;
    }

    public static final Object O(M40 m40, M40 m402, SC sc) {
        Object c2075oj;
        Object objY;
        try {
            AbstractC1692kh0.l(2, sc);
            c2075oj = sc.f(m402, m40);
        } catch (Throwable th) {
            c2075oj = new C2075oj(th, false);
        }
        EnumC0091Dn enumC0091Dn = EnumC0091Dn.l;
        if (c2075oj == enumC0091Dn || (objY = m40.Y(c2075oj)) == AbstractC2841wm0.d) {
            return enumC0091Dn;
        }
        if (objY instanceof C2075oj) {
            throw ((C2075oj) objY).a;
        }
        return AbstractC2841wm0.K(objY);
    }

    public static final C1537j00 P(C2277qp c2277qp, C0168Gm c0168Gm, C2817wa0 c2817wa0, Float f2) {
        InterfaceC0736ah.a.getClass();
        C0655Zg c0655Zg = C0655Zg.a;
        DH dh = new DH(c2277qp, C0281Kv.l);
        Ba0 ba0H = AbstractC0752ap.h(f2);
        InterfaceC2747vn interfaceC2747vn = (InterfaceC2747vn) dh.m;
        InterfaceC2104oz interfaceC2104oz = (InterfaceC2104oz) dh.l;
        int i2 = c2817wa0.equals(C2977y80.a) ? 1 : 4;
        C3063z4 c3063z4 = new C3063z4(c2817wa0, interfaceC2104oz, ba0H, f2, null, 6);
        InterfaceC2747vn interfaceC2747vnU = C2887xC.u(c0168Gm, interfaceC2747vn);
        A ck = i2 == 2 ? new CK(interfaceC2747vnU, c3063z4) : new C2058oa0(interfaceC2747vnU, true);
        ck.m0(i2, ck, c3063z4);
        return new C1537j00(ba0H);
    }

    /* JADX WARN: Removed duplicated region for block: B:53:0x0093 A[Catch: all -> 0x008f, PHI: r1
      0x0093: PHI (r1v4 java.lang.Thread) = (r1v3 java.lang.Thread), (r1v14 java.lang.Thread) binds: [B:7:0x000a, B:47:0x008c] A[DONT_GENERATE, DONT_INLINE], TRY_LEAVE, TryCatch #6 {, blocks: (B:4:0x0003, B:6:0x0007, B:8:0x000c, B:46:0x008a, B:61:0x00a2, B:12:0x001f, B:52:0x0092, B:53:0x0093, B:64:0x00a6, B:65:0x00a7, B:54:0x0094, B:60:0x00a1, B:59:0x009e, B:13:0x0020, B:15:0x002d, B:25:0x0046, B:26:0x004d, B:28:0x0058, B:34:0x006d, B:35:0x0074, B:43:0x0085, B:44:0x0088, B:18:0x003c), top: B:80:0x0003, inners: #2, #5 }] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static synchronized java.lang.ClassLoader Q() {
        /*
            java.lang.Class<o.Co0> r0 = o.Co0.class
            monitor-enter(r0)
            java.lang.ClassLoader r1 = o.Co0.a     // Catch: java.lang.Throwable -> L8f
            if (r1 != 0) goto La7
            java.lang.Thread r1 = o.Co0.b     // Catch: java.lang.Throwable -> L8f
            r2 = 0
            if (r1 != 0) goto L93
            android.os.Looper r1 = android.os.Looper.getMainLooper()     // Catch: java.lang.Throwable -> L8f
            java.lang.Thread r1 = r1.getThread()     // Catch: java.lang.Throwable -> L8f
            java.lang.ThreadGroup r1 = r1.getThreadGroup()     // Catch: java.lang.Throwable -> L8f
            if (r1 != 0) goto L1d
            r1 = r2
            goto L8a
        L1d:
            java.lang.Class<java.lang.Void> r3 = java.lang.Void.class
            monitor-enter(r3)     // Catch: java.lang.Throwable -> L8f
            int r4 = r1.activeGroupCount()     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
            java.lang.ThreadGroup[] r5 = new java.lang.ThreadGroup[r4]     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
            r1.enumerate(r5)     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
            r6 = 0
            r7 = r6
        L2b:
            if (r7 >= r4) goto L43
            r8 = r5[r7]     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
            java.lang.String r9 = "dynamiteLoader"
            java.lang.String r10 = r8.getName()     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
            boolean r9 = r9.equals(r10)     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
            if (r9 == 0) goto L3c
            goto L44
        L3c:
            int r7 = r7 + 1
            goto L2b
        L3f:
            r1 = move-exception
            goto L91
        L41:
            r1 = move-exception
            goto L83
        L43:
            r8 = r2
        L44:
            if (r8 != 0) goto L4d
            java.lang.ThreadGroup r8 = new java.lang.ThreadGroup     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
            java.lang.String r4 = "dynamiteLoader"
            r8.<init>(r1, r4)     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
        L4d:
            int r1 = r8.activeCount()     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
            java.lang.Thread[] r4 = new java.lang.Thread[r1]     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
            r8.enumerate(r4)     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
        L56:
            if (r6 >= r1) goto L6a
            r5 = r4[r6]     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
            java.lang.String r7 = "GmsDynamite"
            java.lang.String r9 = r5.getName()     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
            boolean r7 = r7.equals(r9)     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L41
            if (r7 == 0) goto L67
            goto L6b
        L67:
            int r6 = r6 + 1
            goto L56
        L6a:
            r5 = r2
        L6b:
            if (r5 != 0) goto L88
            o.K9 r1 = new o.K9     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L81
            java.lang.String r4 = "GmsDynamite"
            r1.<init>(r8, r4)     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L81
            r1.setContextClassLoader(r2)     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L7c
            r1.start()     // Catch: java.lang.Throwable -> L3f java.lang.SecurityException -> L7c
            r5 = r1
            goto L88
        L7c:
            r4 = move-exception
            r5 = r1
            goto L85
        L7f:
            r4 = r1
            goto L85
        L81:
            r1 = move-exception
            goto L7f
        L83:
            r4 = r1
            r5 = r2
        L85:
            r4.getMessage()     // Catch: java.lang.Throwable -> L3f
        L88:
            monitor-exit(r3)     // Catch: java.lang.Throwable -> L3f
            r1 = r5
        L8a:
            o.Co0.b = r1     // Catch: java.lang.Throwable -> L8f
            if (r1 != 0) goto L93
            goto La2
        L8f:
            r1 = move-exception
            goto Lab
        L91:
            monitor-exit(r3)     // Catch: java.lang.Throwable -> L3f
            throw r1     // Catch: java.lang.Throwable -> L8f
        L93:
            monitor-enter(r1)     // Catch: java.lang.Throwable -> L8f
            java.lang.Thread r3 = o.Co0.b     // Catch: java.lang.Throwable -> L9b java.lang.SecurityException -> L9d
            java.lang.ClassLoader r2 = r3.getContextClassLoader()     // Catch: java.lang.Throwable -> L9b java.lang.SecurityException -> L9d
            goto La1
        L9b:
            r2 = move-exception
            goto La5
        L9d:
            r3 = move-exception
            r3.getMessage()     // Catch: java.lang.Throwable -> L9b
        La1:
            monitor-exit(r1)     // Catch: java.lang.Throwable -> L9b
        La2:
            o.Co0.a = r2     // Catch: java.lang.Throwable -> L8f
            goto La7
        La5:
            monitor-exit(r1)     // Catch: java.lang.Throwable -> L9b
            throw r2     // Catch: java.lang.Throwable -> L8f
        La7:
            java.lang.ClassLoader r1 = o.Co0.a     // Catch: java.lang.Throwable -> L8f
            monitor-exit(r0)
            return r1
        Lab:
            monitor-exit(r0)     // Catch: java.lang.Throwable -> L8f
            throw r1
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Co0.Q():java.lang.ClassLoader");
    }

    /* JADX WARN: Removed duplicated region for block: B:118:0x0168  */
    /* JADX WARN: Removed duplicated region for block: B:121:0x0177  */
    /* JADX WARN: Removed duplicated region for block: B:122:0x017a  */
    /* JADX WARN: Removed duplicated region for block: B:125:0x0180  */
    /* JADX WARN: Removed duplicated region for block: B:126:0x0183  */
    /* JADX WARN: Removed duplicated region for block: B:128:0x0187  */
    /* JADX WARN: Removed duplicated region for block: B:129:0x019c  */
    /* JADX WARN: Removed duplicated region for block: B:177:0x028e  */
    /* JADX WARN: Removed duplicated region for block: B:179:0x029b  */
    /* JADX WARN: Removed duplicated region for block: B:182:0x02a3  */
    /* JADX WARN: Removed duplicated region for block: B:185:0x02c6  */
    /* JADX WARN: Removed duplicated region for block: B:189:0x02e4  */
    /* JADX WARN: Removed duplicated region for block: B:191:0x0334  */
    /* JADX WARN: Removed duplicated region for block: B:194:0x0342  */
    /* JADX WARN: Removed duplicated region for block: B:196:? A[RETURN, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:30:0x0057  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x0067  */
    /* JADX WARN: Removed duplicated region for block: B:44:0x0078  */
    /* JADX WARN: Removed duplicated region for block: B:52:0x008d  */
    /* JADX WARN: Removed duplicated region for block: B:55:0x0095  */
    /* JADX WARN: Removed duplicated region for block: B:57:0x0099  */
    /* JADX WARN: Removed duplicated region for block: B:66:0x00b1  */
    /* JADX WARN: Removed duplicated region for block: B:67:0x00b6  */
    /* JADX WARN: Removed duplicated region for block: B:76:0x00d2  */
    /* JADX WARN: Removed duplicated region for block: B:77:0x00d5  */
    /* JADX WARN: Removed duplicated region for block: B:86:0x00ec  */
    /* JADX WARN: Removed duplicated region for block: B:93:0x0108  */
    /* JADX WARN: Removed duplicated region for block: B:94:0x010b  */
    /* JADX WARN: Removed duplicated region for block: B:97:0x0114  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final void a(final o.NC r28, final o.MP r29, boolean r30, final o.L70 r31, final o.C2067of r32, o.C2351rf r33, o.C1875me r34, o.C2147pV r35, final o.TC r36, o.C0321Mk r37, final int r38, final int r39) {
        /*
            Method dump skipped, instructions count: 852
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Co0.a(o.NC, o.MP, boolean, o.L70, o.of, o.rf, o.me, o.pV, o.TC, o.Mk, int, int):void");
    }

    public static final void b(final NC nc, final MP mp, boolean z, final L70 l70, final C2067of c2067of, C1875me c1875me, C2147pV c2147pV, final C0554Vj c0554Vj, C0321Mk c0321Mk, final int i2) {
        int i3;
        final boolean z2;
        final C1875me c1875me2;
        final C2147pV c2147pV2;
        int i4;
        C1875me c1875meA;
        C2147pV c2147pV3;
        boolean z3;
        c0321Mk.X(399974542);
        if ((i2 & 6) == 0) {
            i3 = i2 | (c0321Mk.h(nc) ? 4 : 2);
        } else {
            i3 = i2;
        }
        if ((i2 & 48) == 0) {
            i3 |= c0321Mk.f(mp) ? 32 : 16;
        }
        int i5 = i3 | 384 | (c0321Mk.f(l70) ? 2048 : 1024) | (c0321Mk.f(c2067of) ? 16384 : 8192) | 113967104;
        if (c0321Mk.N(i5 & 1, (306783379 & i5) != 306783378)) {
            c0321Mk.S();
            if ((i2 & 1) == 0 || c0321Mk.x()) {
                C2147pV c2147pV4 = AbstractC2162pf.a;
                float f2 = AbstractC2921xf.b;
                c0321Mk.V(-112346942);
                long jD = AbstractC0319Mi.d(25, c0321Mk);
                c0321Mk.q(false);
                i4 = i5 & (-3670017);
                c1875meA = AbstractC1155f00.a(f2, jD);
                c2147pV3 = AbstractC2162pf.a;
                z3 = true;
            } else {
                c0321Mk.Q();
                i4 = i5 & (-3670017);
                z3 = z;
                c1875meA = c1875me;
                c2147pV3 = c2147pV;
            }
            c0321Mk.r();
            a(nc, mp, z3, l70, c2067of, null, c1875meA, c2147pV3, c0554Vj, c0321Mk, i4 & 2147483646, 0);
            z2 = z3;
            c2147pV2 = c2147pV3;
            c1875me2 = c1875meA;
        } else {
            c0321Mk.Q();
            z2 = z;
            c1875me2 = c1875me;
            c2147pV2 = c2147pV;
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new SC() { // from class: o.uf
                @Override // o.SC
                public final Object f(Object obj, Object obj2) {
                    ((Integer) obj2).getClass();
                    Co0.b(nc, mp, z2, l70, c2067of, c1875me2, c2147pV2, c0554Vj, (C0321Mk) obj, AbstractC1904ms0.D(i2 | 1));
                    return Oh0.a;
                }
            };
        }
    }

    public static final void c(MP mp, C0554Vj c0554Vj, C0321Mk c0321Mk, int i2) {
        int i3;
        MP mp2;
        C0554Vj c0554Vj2;
        c0321Mk.X(790527681);
        int i4 = 4;
        if ((i2 & 6) == 0) {
            i3 = (c0321Mk.f(mp) ? 4 : 2) | i2;
        } else {
            i3 = i2;
        }
        if ((i2 & 48) == 0) {
            i3 |= c0321Mk.h(c0554Vj) ? 32 : 16;
        }
        if (c0321Mk.N(i3 & 1, (i3 & 19) != 18)) {
            Object objK = c0321Mk.K();
            J7 j7 = C0140Fk.a;
            if (objK == j7) {
                MV mv = new MV(null, C0669Zu.O);
                c0321Mk.f0(mv);
                objK = mv;
            }
            InterfaceC1191fR interfaceC1191fR = (InterfaceC1191fR) objK;
            Object objK2 = c0321Mk.K();
            if (objK2 == j7) {
                objK2 = new C5(interfaceC1191fR, 27);
                c0321Mk.f0(objK2);
            }
            NC nc = (NC) objK2;
            XX xx = AbstractC0198Hq.a;
            C2063od c2063odK = AbstractC2539te.k(AbstractC1029dk.b, c0321Mk, 6);
            mp2 = mp;
            c0554Vj2 = c0554Vj;
            AbstractC2841wm0.c(new A7[]{AbstractC2348rd0.b.a(AbstractC0249Jp.Y(nc, c0321Mk, 2)), AbstractC2348rd0.a.a(c2063odK)}, C2887xC.y(1070596993, new C0046Bu(mp2, interfaceC1191fR, c0554Vj2, c2063odK, nc), c0321Mk), c0321Mk, 56);
        } else {
            mp2 = mp;
            c0554Vj2 = c0554Vj;
            c0321Mk.Q();
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new B5(mp2, c0554Vj2, i2, i4);
        }
    }

    public static final void d(MP mp, C0554Vj c0554Vj, C0321Mk c0321Mk, int i2) {
        int i3;
        c0321Mk.X(155925518);
        if ((i2 & 6) == 0) {
            i3 = (c0321Mk.f(mp) ? 4 : 2) | i2;
        } else {
            i3 = i2;
        }
        if ((i2 & 48) == 0) {
            i3 |= c0321Mk.h(c0554Vj) ? 32 : 16;
        }
        if (c0321Mk.N(i3 & 1, (i3 & 19) != 18)) {
            boolean z = c0321Mk.j(AbstractC2348rd0.a) != null;
            boolean z2 = c0321Mk.j(AbstractC2348rd0.b) != null;
            if (z && z2) {
                c0321Mk.V(-1977156178);
                InterfaceC2235qO interfaceC2235qOD = AbstractC3109ze.d(C0669Zu.m, true);
                int iHashCode = Long.hashCode(c0321Mk.R);
                AW awL = c0321Mk.l();
                MP mpF = AbstractC1692kh0.F(c0321Mk, mp);
                InterfaceC0062Ck.b.getClass();
                C0744al c0744al = C0036Bk.b;
                c0321Mk.Y();
                if (c0321Mk.Q) {
                    c0321Mk.k(c0744al);
                } else {
                    c0321Mk.i0();
                }
                AbstractC2378rs0.f0(interfaceC2235qOD, c0321Mk, C0036Bk.f);
                AbstractC2378rs0.f0(awL, c0321Mk, C0036Bk.e);
                C0975d6 c0975d6 = C0036Bk.i;
                if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode))) {
                    AbstractC2462sn.r(iHashCode, c0321Mk, iHashCode, c0975d6);
                }
                AbstractC2378rs0.f0(mpF, c0321Mk, C0036Bk.c);
                c0554Vj.f(c0321Mk, Integer.valueOf((i3 >> 3) & 14));
                c0321Mk.q(true);
                c0321Mk.q(false);
            } else if (z) {
                c0321Mk.V(-1976965962);
                AbstractC0249Jp.i(mp, c0554Vj, c0321Mk, i3 & 126);
                c0321Mk.q(false);
            } else if (z2) {
                c0321Mk.V(-1976815178);
                AbstractC0198Hq.d(mp, c0554Vj, c0321Mk, i3 & 126);
                c0321Mk.q(false);
            } else {
                c0321Mk.V(-1976684761);
                c(mp, c0554Vj, c0321Mk, i3 & 126);
                c0321Mk.q(false);
            }
        } else {
            c0321Mk.Q();
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new B5(mp, c0554Vj, i2, 3);
        }
    }

    public static final void e(NC nc, MP mp, boolean z, L70 l70, C2067of c2067of, C2147pV c2147pV, TC tc, C0321Mk c0321Mk, int i2) {
        NC nc2;
        int i3;
        MP mp2;
        boolean z2;
        L70 l702;
        C2067of c2067of2;
        C2147pV c2147pV2;
        C2067of c2067of3;
        int i4;
        MP mp3;
        L70 l703;
        boolean z3;
        C2067of c2067of4;
        c0321Mk.X(-1061374109);
        if ((i2 & 6) == 0) {
            nc2 = nc;
            i3 = i2 | (c0321Mk.h(nc2) ? 4 : 2);
        } else {
            nc2 = nc;
            i3 = i2;
        }
        int i5 = i3 | 115025328;
        if (c0321Mk.N(i5 & 1, (306783379 & i5) != 306783378)) {
            c0321Mk.S();
            if ((i2 & 1) == 0 || c0321Mk.x()) {
                C2147pV c2147pV3 = AbstractC2162pf.a;
                float f2 = AbstractC2921xf.a;
                L70 l70A = AbstractC0884c80.a(7, c0321Mk);
                C0294Li c0294Li = (C0294Li) c0321Mk.j(AbstractC0319Mi.a);
                C2067of c2067of5 = c0294Li.Y;
                if (c2067of5 == null) {
                    long j2 = C0190Hi.f;
                    c2067of3 = new C2067of(j2, AbstractC0319Mi.c(c0294Li, 26), j2, C0190Hi.b(0.38f, AbstractC0319Mi.c(c0294Li, 19)));
                    c0294Li.Y = c2067of3;
                } else {
                    c2067of3 = c2067of5;
                }
                C2147pV c2147pV4 = AbstractC2162pf.b;
                i4 = i5 & (-64513);
                mp3 = JP.a;
                c2147pV2 = c2147pV4;
                l703 = l70A;
                z3 = true;
                c2067of4 = c2067of3;
            } else {
                c0321Mk.Q();
                z3 = z;
                l703 = l70;
                c2067of4 = c2067of;
                c2147pV2 = c2147pV;
                i4 = i5 & (-64513);
                mp3 = mp;
            }
            c0321Mk.r();
            a(nc2, mp3, z3, l703, c2067of4, null, null, c2147pV2, tc, c0321Mk, i4 & 2147483646, 0);
            l702 = l703;
            c2067of2 = c2067of4;
            mp2 = mp3;
            z2 = z3;
        } else {
            c0321Mk.Q();
            mp2 = mp;
            z2 = z;
            l702 = l70;
            c2067of2 = c2067of;
            c2147pV2 = c2147pV;
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C2541tf(nc, mp2, z2, l702, c2067of2, c2147pV2, tc, i2);
        }
    }

    public static final boolean f(R50 r50) {
        N50 n50K = r50.k();
        return !n50K.l.c(W50.i);
    }

    public static final boolean g(R50 r50, Resources resources) {
        Object objG = r50.d.l.g(W50.a);
        if (objG == null) {
            objG = null;
        }
        List list = (List) objG;
        return !As0.G(r50) && (r50.d.n || (r50.o() && ((list != null ? (String) AbstractC3117zi.f0(list) : null) != null || E(r50) != null || D(r50, resources) != null || C(r50))));
    }

    public static void h(C1365h90 c1365h90, List list, C0555Vk c0555Vk) {
        if (list.isEmpty()) {
            return;
        }
        int size = list.size();
        for (int i2 = 0; i2 < size; i2++) {
            int iC = c1365h90.c((G2) list.get(i2));
            int iL = c1365h90.L(c1365h90.b, c1365h90.q(iC));
            Object obj = iL < c1365h90.g(c1365h90.b, c1365h90.q(iC + 1)) ? c1365h90.c[c1365h90.h(iL)] : C0140Fk.a;
            L00 l00 = obj instanceof L00 ? (L00) obj : null;
            if (l00 != null) {
                l00.a = c0555Vk;
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:38:0x007c A[RETURN] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final boolean i(o.C1556jA r7, o.V5 r8) {
        /*
            o.hA r0 = r7.J0()
            int r0 = r0.ordinal()
            if (r0 == 0) goto L89
            r1 = 3
            r2 = 0
            r3 = 2
            r4 = 1
            if (r0 == r4) goto L37
            if (r0 == r3) goto L89
            if (r0 != r1) goto L31
            boolean r0 = K(r7, r8)
            if (r0 != 0) goto L7d
            o.bA r0 = r7.I0()
            boolean r0 = r0.a
            if (r0 == 0) goto L2d
            java.lang.Object r7 = r8.g(r7)
            java.lang.Boolean r7 = (java.lang.Boolean) r7
            boolean r7 = r7.booleanValue()
            goto L2e
        L2d:
            r7 = r2
        L2e:
            if (r7 == 0) goto L7c
            goto L7d
        L31:
            o.pj r7 = new o.pj
            r7.<init>()
            throw r7
        L37:
            o.jA r0 = o.AbstractC0752ap.L(r7)
            java.lang.String r5 = "ActiveParent must have a focusedChild"
            if (r0 == 0) goto L83
            o.hA r6 = r0.J0()
            int r6 = r6.ordinal()
            if (r6 == 0) goto L7e
            if (r6 == r4) goto L5b
            if (r6 == r3) goto L7e
            if (r6 == r1) goto L55
            o.pj r7 = new o.pj
            r7.<init>()
            throw r7
        L55:
            java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
            r7.<init>(r5)
            throw r7
        L5b:
            boolean r1 = i(r0, r8)
            if (r1 != 0) goto L7d
            boolean r7 = v(r7, r0, r3, r8)
            if (r7 != 0) goto L7d
            o.bA r7 = r0.I0()
            boolean r7 = r7.a
            if (r7 == 0) goto L7c
            java.lang.Object r7 = r8.g(r0)
            java.lang.Boolean r7 = (java.lang.Boolean) r7
            boolean r7 = r7.booleanValue()
            if (r7 == 0) goto L7c
            goto L7d
        L7c:
            return r2
        L7d:
            return r4
        L7e:
            boolean r7 = v(r7, r0, r3, r8)
            return r7
        L83:
            java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
            r7.<init>(r5)
            throw r7
        L89:
            boolean r7 = K(r7, r8)
            return r7
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Co0.i(o.jA, o.V5):boolean");
    }

    public static InterfaceC2104oz j(InterfaceC2104oz interfaceC2104oz, int i2) {
        int i3;
        if (i2 < 0 && i2 != -2 && i2 != -1) {
            throw new IllegalArgumentException(AbstractC0126Ew.j(i2, "Buffer size should be non-negative, BUFFERED, or CONFLATED, but was ").toString());
        }
        if (i2 == -1) {
            i2 = 0;
            i3 = 2;
        } else {
            i3 = 1;
        }
        boolean z = interfaceC2104oz instanceof InterfaceC0795bD;
        C0281Kv c0281Kv = C0281Kv.l;
        return z ? ((InterfaceC0795bD) interfaceC2104oz).b(c0281Kv, i2, i3) : new C1118eh(interfaceC2104oz, c0281Kv, i2, i3);
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.io.Serializable k(o.InterfaceC2104oz r4, o.InterfaceC2294qz r5, o.AbstractC0298Lm r6) throws java.lang.Throwable {
        /*
            boolean r0 = r6 instanceof o.C3148zz
            if (r0 == 0) goto L13
            r0 = r6
            o.zz r0 = (o.C3148zz) r0
            int r1 = r0.q
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.q = r1
            goto L18
        L13:
            o.zz r0 = new o.zz
            r0.<init>(r6)
        L18:
            java.lang.Object r6 = r0.p
            int r1 = r0.q
            r2 = 1
            if (r1 == 0) goto L31
            if (r1 != r2) goto L29
            o.B10 r4 = r0.f834o
            o.IJ.H(r6)     // Catch: java.lang.Throwable -> L27
            goto L4b
        L27:
            r5 = move-exception
            goto L4f
        L29:
            java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
            java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
            r4.<init>(r5)
            throw r4
        L31:
            o.IJ.H(r6)
            o.B10 r6 = new o.B10
            r6.<init>()
            o.ys r1 = new o.ys     // Catch: java.lang.Throwable -> L4d
            r1.<init>(r5, r6)     // Catch: java.lang.Throwable -> L4d
            r0.f834o = r6     // Catch: java.lang.Throwable -> L4d
            r0.q = r2     // Catch: java.lang.Throwable -> L4d
            java.lang.Object r4 = r4.a(r1, r0)     // Catch: java.lang.Throwable -> L4d
            o.Dn r5 = o.EnumC0091Dn.l
            if (r4 != r5) goto L4b
            return r5
        L4b:
            r4 = 0
            return r4
        L4d:
            r5 = move-exception
            r4 = r6
        L4f:
            java.lang.Object r4 = r4.l
            java.lang.Throwable r4 = (java.lang.Throwable) r4
            if (r4 == 0) goto L5b
            boolean r6 = r4.equals(r5)
            if (r6 != 0) goto L7b
        L5b:
            o.vn r6 = r0.m
            o.Zu r0 = o.C0669Zu.K
            o.tn r6 = r6.m(r0)
            o.TI r6 = (o.TI) r6
            if (r6 == 0) goto L7c
            boolean r0 = r6.isCancelled()
            if (r0 != 0) goto L6e
            goto L7c
        L6e:
            java.util.concurrent.CancellationException r6 = r6.z()
            if (r6 == 0) goto L7c
            boolean r6 = r6.equals(r5)
            if (r6 != 0) goto L7b
            goto L7c
        L7b:
            throw r5
        L7c:
            if (r4 != 0) goto L7f
            return r5
        L7f:
            boolean r6 = r5 instanceof java.util.concurrent.CancellationException
            if (r6 == 0) goto L87
            o.C80.i(r4, r5)
            throw r4
        L87:
            o.C80.i(r5, r4)
            throw r5
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Co0.k(o.oz, o.qz, o.Lm):java.io.Serializable");
    }

    public static int l(Context context, String str) {
        if (str != null) {
            return (Build.VERSION.SDK_INT >= 33 || !TextUtils.equals("android.permission.POST_NOTIFICATIONS", str)) ? context.checkPermission(str, Process.myPid(), Process.myUid()) : new TS(context).b.areNotificationsEnabled() ? 0 : -1;
        }
        throw new NullPointerException("permission must be non-null");
    }

    public static int m(int i2, int i3, int i4) {
        return i2 < i3 ? i3 : i2 > i4 ? i4 : i2;
    }

    public static final InterfaceC2104oz n(InterfaceC2104oz interfaceC2104oz) {
        return ((interfaceC2104oz instanceof InterfaceC3102za0) || (interfaceC2104oz instanceof C3137zs)) ? interfaceC2104oz : new C3137zs(interfaceC2104oz);
    }

    public static String o(AbstractC0161Gf abstractC0161Gf) {
        StringBuilder sb = new StringBuilder(abstractC0161Gf.size());
        for (int i2 = 0; i2 < abstractC0161Gf.size(); i2++) {
            byte bA = abstractC0161Gf.a(i2);
            if (bA == 34) {
                sb.append("\\\"");
            } else if (bA == 39) {
                sb.append("\\'");
            } else if (bA != 92) {
                switch (bA) {
                    case 7:
                        sb.append("\\a");
                        break;
                    case 8:
                        sb.append("\\b");
                        break;
                    case ConnectionResult.SERVICE_INVALID /* 9 */:
                        sb.append("\\t");
                        break;
                    case 10:
                        sb.append("\\n");
                        break;
                    case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                        sb.append("\\v");
                        break;
                    case 12:
                        sb.append("\\f");
                        break;
                    case 13:
                        sb.append("\\r");
                        break;
                    default:
                        if (bA < 32 || bA > 126) {
                            sb.append('\\');
                            sb.append((char) (((bA >>> 6) & 3) + 48));
                            sb.append((char) (((bA >>> 3) & 7) + 48));
                            sb.append((char) ((bA & 7) + 48));
                            break;
                        } else {
                            sb.append((char) bA);
                            break;
                        }
                }
            } else {
                sb.append("\\\\");
            }
        }
        return sb.toString();
    }

    /* JADX WARN: Removed duplicated region for block: B:30:0x0062 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:31:0x0063  */
    /* JADX WARN: Removed duplicated region for block: B:33:0x006b  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0015  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object p(o.InterfaceC2104oz r5, o.AbstractC0298Lm r6) {
        /*
            o.xq r0 = o.F3.f
            boolean r1 = r6 instanceof o.C0259Jz
            if (r1 == 0) goto L15
            r1 = r6
            o.Jz r1 = (o.C0259Jz) r1
            int r2 = r1.r
            r3 = -2147483648(0xffffffff80000000, float:-0.0)
            r4 = r2 & r3
            if (r4 == 0) goto L15
            int r2 = r2 - r3
            r1.r = r2
            goto L1a
        L15:
            o.Jz r1 = new o.Jz
            r1.<init>(r6)
        L1a:
            java.lang.Object r6 = r1.q
            int r2 = r1.r
            r3 = 1
            if (r2 == 0) goto L35
            if (r2 != r3) goto L2d
            o.Hz r5 = r1.p
            o.B10 r1 = r1.f183o
            o.IJ.H(r6)     // Catch: o.C1441i -> L2b
            goto L5e
        L2b:
            r6 = move-exception
            goto L5a
        L2d:
            java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
            java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
            r5.<init>(r6)
            throw r5
        L35:
            o.IJ.H(r6)
            o.B10 r6 = new o.B10
            r6.<init>()
            r6.l = r0
            o.Hz r2 = new o.Hz
            r4 = 0
            r2.<init>(r6, r4)
            r1.f183o = r6     // Catch: o.C1441i -> L56
            r1.p = r2     // Catch: o.C1441i -> L56
            r1.r = r3     // Catch: o.C1441i -> L56
            java.lang.Object r5 = r5.a(r2, r1)     // Catch: o.C1441i -> L56
            o.Dn r1 = o.EnumC0091Dn.l
            if (r5 != r1) goto L54
            return r1
        L54:
            r1 = r6
            goto L5e
        L56:
            r5 = move-exception
            r1 = r6
            r6 = r5
            r5 = r2
        L5a:
            java.lang.Object r2 = r6.l
            if (r2 != r5) goto L6b
        L5e:
            java.lang.Object r5 = r1.l
            if (r5 == r0) goto L63
            return r5
        L63:
            java.util.NoSuchElementException r5 = new java.util.NoSuchElementException
            java.lang.String r6 = "Expected at least one element"
            r5.<init>(r6)
            throw r5
        L6b:
            throw r6
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Co0.p(o.oz, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:30:0x006d A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:31:0x006e  */
    /* JADX WARN: Removed duplicated region for block: B:33:0x0082  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0015  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object q(o.InterfaceC2104oz r5, o.SC r6, o.AbstractC0298Lm r7) {
        /*
            o.xq r0 = o.F3.f
            boolean r1 = r7 instanceof o.C0285Kz
            if (r1 == 0) goto L15
            r1 = r7
            o.Kz r1 = (o.C0285Kz) r1
            int r2 = r1.s
            r3 = -2147483648(0xffffffff80000000, float:-0.0)
            r4 = r2 & r3
            if (r4 == 0) goto L15
            int r2 = r2 - r3
            r1.s = r2
            goto L1a
        L15:
            o.Kz r1 = new o.Kz
            r1.<init>(r7)
        L1a:
            java.lang.Object r7 = r1.r
            int r2 = r1.s
            r3 = 1
            if (r2 == 0) goto L39
            if (r2 != r3) goto L31
            o.Ez r5 = r1.q
            o.B10 r6 = r1.p
            o.Sb0 r1 = r1.f201o
            o.SC r1 = (o.SC) r1
            o.IJ.H(r7)     // Catch: o.C1441i -> L2f
            goto L69
        L2f:
            r7 = move-exception
            goto L65
        L31:
            java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
            java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
            r5.<init>(r6)
            throw r5
        L39:
            o.IJ.H(r7)
            o.B10 r7 = new o.B10
            r7.<init>()
            r7.l = r0
            o.Ez r2 = new o.Ez
            r4 = 1
            r2.<init>(r4, r6, r7)
            r4 = r6
            o.Sb0 r4 = (o.Sb0) r4     // Catch: o.C1441i -> L60
            r1.f201o = r4     // Catch: o.C1441i -> L60
            r1.p = r7     // Catch: o.C1441i -> L60
            r1.q = r2     // Catch: o.C1441i -> L60
            r1.s = r3     // Catch: o.C1441i -> L60
            java.lang.Object r5 = r5.a(r2, r1)     // Catch: o.C1441i -> L60
            o.Dn r1 = o.EnumC0091Dn.l
            if (r5 != r1) goto L5d
            return r1
        L5d:
            r1 = r6
            r6 = r7
            goto L69
        L60:
            r5 = move-exception
            r1 = r6
            r6 = r7
            r7 = r5
            r5 = r2
        L65:
            java.lang.Object r2 = r7.l
            if (r2 != r5) goto L82
        L69:
            java.lang.Object r5 = r6.l
            if (r5 == r0) goto L6e
            return r5
        L6e:
            java.util.NoSuchElementException r5 = new java.util.NoSuchElementException
            java.lang.StringBuilder r6 = new java.lang.StringBuilder
            java.lang.String r7 = "Expected at least one element matching the predicate "
            r6.<init>(r7)
            r6.append(r1)
            java.lang.String r6 = r6.toString()
            r5.<init>(r6)
            throw r5
        L82:
            throw r7
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Co0.q(o.oz, o.SC, o.Lm):java.lang.Object");
    }

    /* JADX WARN: Removed duplicated region for block: B:30:0x005d  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object r(o.InterfaceC2104oz r4, o.AbstractC0298Lm r5) {
        /*
            boolean r0 = r5 instanceof o.C0310Lz
            if (r0 == 0) goto L13
            r0 = r5
            o.Lz r0 = (o.C0310Lz) r0
            int r1 = r0.r
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.r = r1
            goto L18
        L13:
            o.Lz r0 = new o.Lz
            r0.<init>(r5)
        L18:
            java.lang.Object r5 = r0.q
            int r1 = r0.r
            r2 = 1
            if (r1 == 0) goto L33
            if (r1 != r2) goto L2b
            o.Hz r4 = r0.p
            o.B10 r0 = r0.f220o
            o.IJ.H(r5)     // Catch: o.C1441i -> L29
            goto L5a
        L29:
            r5 = move-exception
            goto L56
        L2b:
            java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
            java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
            r4.<init>(r5)
            throw r4
        L33:
            o.IJ.H(r5)
            o.B10 r5 = new o.B10
            r5.<init>()
            o.Hz r1 = new o.Hz
            r3 = 1
            r1.<init>(r5, r3)
            r0.f220o = r5     // Catch: o.C1441i -> L52
            r0.p = r1     // Catch: o.C1441i -> L52
            r0.r = r2     // Catch: o.C1441i -> L52
            java.lang.Object r4 = r4.a(r1, r0)     // Catch: o.C1441i -> L52
            o.Dn r0 = o.EnumC0091Dn.l
            if (r4 != r0) goto L50
            return r0
        L50:
            r0 = r5
            goto L5a
        L52:
            r4 = move-exception
            r0 = r5
            r5 = r4
            r4 = r1
        L56:
            java.lang.Object r1 = r5.l
            if (r1 != r4) goto L5d
        L5a:
            java.lang.Object r4 = r0.l
            return r4
        L5d:
            throw r5
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Co0.r(o.oz, o.Lm):java.lang.Object");
    }

    public static long s(int i2, int i3, int i4, int i5) {
        int i6 = 262142;
        int iMin = Math.min(i4, 262142);
        int iMin2 = Api.BaseClientBuilder.API_PRIORITY_OTHER;
        int iMin3 = i5 == Integer.MAX_VALUE ? Integer.MAX_VALUE : Math.min(i5, 262142);
        int i7 = iMin3 == Integer.MAX_VALUE ? iMin : iMin3;
        if (i7 >= 8191) {
            if (i7 < 32767) {
                i6 = 65534;
            } else if (i7 < 65535) {
                i6 = 32766;
            } else {
                if (i7 >= 262143) {
                    AbstractC0842bm.l(i7);
                    throw new C2170pj();
                }
                i6 = 8190;
            }
        }
        if (i3 != Integer.MAX_VALUE) {
            iMin2 = Math.min(i6, i3);
        }
        return AbstractC0842bm.a(Math.min(i6, i2), iMin2, iMin, iMin3);
    }

    public static long t(int i2, int i3, int i4, int i5) {
        int i6 = 262142;
        int iMin = Math.min(i2, 262142);
        int iMin2 = Api.BaseClientBuilder.API_PRIORITY_OTHER;
        int iMin3 = i3 == Integer.MAX_VALUE ? Integer.MAX_VALUE : Math.min(i3, 262142);
        int i7 = iMin3 == Integer.MAX_VALUE ? iMin : iMin3;
        if (i7 >= 8191) {
            if (i7 < 32767) {
                i6 = 65534;
            } else if (i7 < 65535) {
                i6 = 32766;
            } else {
                if (i7 >= 262143) {
                    AbstractC0842bm.l(i7);
                    throw new C2170pj();
                }
                i6 = 8190;
            }
        }
        if (i5 != Integer.MAX_VALUE) {
            iMin2 = Math.min(i6, i5);
        }
        return AbstractC0842bm.a(iMin, iMin3, Math.min(i6, i4), iMin2);
    }

    public static final boolean u(C1556jA c1556jA, V5 v5) {
        int iOrdinal = c1556jA.J0().ordinal();
        if (iOrdinal != 0) {
            if (iOrdinal == 1) {
                C1556jA c1556jAL = AbstractC0752ap.L(c1556jA);
                if (c1556jAL != null) {
                    return u(c1556jAL, v5) || v(c1556jA, c1556jAL, 1, v5);
                }
                throw new IllegalStateException("ActiveParent must have a focusedChild");
            }
            if (iOrdinal != 2) {
                if (iOrdinal == 3) {
                    return c1556jA.I0().a ? ((Boolean) v5.g(c1556jA)).booleanValue() : L(c1556jA, v5);
                }
                throw new C2170pj();
            }
        }
        return L(c1556jA, v5);
    }

    /* JADX WARN: Code restructure failed: missing block: B:75:0x00fe, code lost:
    
        r5 = true;
     */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:129:0x01a0  */
    /* JADX WARN: Removed duplicated region for block: B:160:0x019d A[EDGE_INSN: B:160:0x019d->B:127:0x019d BREAK  A[LOOP:5: B:89:0x012e->B:165:0x012e], SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:87:0x0121  */
    /* JADX WARN: Removed duplicated region for block: B:90:0x0130  */
    /* JADX WARN: Type inference failed for: r11v2, types: [java.lang.Object, java.lang.Object[]] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final boolean v(o.C1556jA r12, o.C1556jA r13, int r14, o.V5 r15) {
        /*
            Method dump skipped, instructions count: 465
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Co0.v(o.jA, o.jA, int, o.V5):boolean");
    }

    public static DE w(SSLSession sSLSession) throws IOException {
        Certificate[] peerCertificates;
        List listK = C0332Mv.l;
        String cipherSuite = sSLSession.getCipherSuite();
        if (cipherSuite == null) {
            throw new IllegalStateException("cipherSuite == null");
        }
        if (cipherSuite.equals("TLS_NULL_WITH_NULL_NULL") ? true : cipherSuite.equals("SSL_NULL_WITH_NULL_NULL")) {
            throw new IOException("cipherSuite == ".concat(cipherSuite));
        }
        C0396Ph c0396PhO = C0396Ph.b.o(cipherSuite);
        String protocol = sSLSession.getProtocol();
        if (protocol == null) {
            throw new IllegalStateException("tlsVersion == null");
        }
        if ("NONE".equals(protocol)) {
            throw new IOException("tlsVersion == NONE");
        }
        Jf0 jf0J = AbstractC0752ap.J(protocol);
        try {
            peerCertificates = sSLSession.getPeerCertificates();
        } catch (SSLPeerUnverifiedException unused) {
        }
        List listK2 = peerCertificates != null ? AbstractC2264qi0.k(Arrays.copyOf(peerCertificates, peerCertificates.length)) : listK;
        Certificate[] localCertificates = sSLSession.getLocalCertificates();
        if (localCertificates != null) {
            listK = AbstractC2264qi0.k(Arrays.copyOf(localCertificates, localCertificates.length));
        }
        return new DE(jf0J, c0396PhO, listK, new U4(10, listK2));
    }

    public static final CG x() {
        CG cg = h;
        if (cg != null) {
            return cg;
        }
        BG bg = new BG("Filled.ArrowDropUp", 24.0f, 24.0f, 24.0f, 24.0f, 0L, 0, false, 96);
        int i2 = Zi0.a;
        Q90 q90 = new Q90(C0190Hi.b);
        ArrayList arrayList = new ArrayList(32);
        arrayList.add(new ZV(7.0f, 14.0f));
        arrayList.add(new C1292gW(5.0f, -5.0f));
        arrayList.add(new C1292gW(5.0f, 5.0f));
        arrayList.add(VV.c);
        BG.a(bg, arrayList, q90);
        CG cgB = bg.b();
        h = cgB;
        return cgB;
    }

    public static final CG y() {
        CG cg = i;
        if (cg != null) {
            return cg;
        }
        BG bg = new BG("Filled.CheckCircle", 24.0f, 24.0f, 24.0f, 24.0f, 0L, 0, false, 96);
        int i2 = Zi0.a;
        Q90 q90 = new Q90(C0190Hi.b);
        KE ke = new KE(1);
        ke.l(12.0f, 2.0f);
        ke.f(6.48f, 2.0f, 2.0f, 6.48f, 2.0f, 12.0f);
        ke.n(4.48f, 10.0f, 10.0f, 10.0f);
        ke.n(10.0f, -4.48f, 10.0f, -10.0f);
        ke.m(17.52f, 2.0f, 12.0f, 2.0f);
        ke.e();
        ke.l(10.0f, 17.0f);
        ke.k(-5.0f, -5.0f);
        ke.k(1.41f, -1.41f);
        ke.j(10.0f, 14.17f);
        ke.k(7.59f, -7.59f);
        ke.j(19.0f, 8.0f);
        ke.k(-9.0f, 9.0f);
        ke.e();
        BG.a(bg, ke.a, q90);
        CG cgB = bg.b();
        i = cgB;
        return cgB;
    }

    /* JADX WARN: Code restructure failed: missing block: B:20:0x0047, code lost:
    
        if (r5.c == r8.hashCode()) goto L21;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static android.content.res.ColorStateList z(android.content.Context r8, int r9) throws android.content.res.Resources.NotFoundException {
        /*
            android.content.res.Resources r0 = r8.getResources()
            android.content.res.Resources$Theme r8 = r8.getTheme()
            o.y20 r1 = new o.y20
            r1.<init>(r0, r8)
            java.lang.Object r2 = o.AbstractC3060z20.c
            monitor-enter(r2)
            java.util.WeakHashMap r3 = o.AbstractC3060z20.b     // Catch: java.lang.Throwable -> L3c
            java.lang.Object r3 = r3.get(r1)     // Catch: java.lang.Throwable -> L3c
            android.util.SparseArray r3 = (android.util.SparseArray) r3     // Catch: java.lang.Throwable -> L3c
            r4 = 0
            if (r3 == 0) goto L50
            int r5 = r3.size()     // Catch: java.lang.Throwable -> L3c
            if (r5 <= 0) goto L50
            java.lang.Object r5 = r3.get(r9)     // Catch: java.lang.Throwable -> L3c
            o.x20 r5 = (o.C2870x20) r5     // Catch: java.lang.Throwable -> L3c
            if (r5 == 0) goto L50
            android.content.res.Configuration r6 = r5.b     // Catch: java.lang.Throwable -> L3c
            android.content.res.Configuration r7 = r0.getConfiguration()     // Catch: java.lang.Throwable -> L3c
            boolean r6 = r6.equals(r7)     // Catch: java.lang.Throwable -> L3c
            if (r6 == 0) goto L4d
            if (r8 != 0) goto L3f
            int r6 = r5.c     // Catch: java.lang.Throwable -> L3c
            if (r6 == 0) goto L49
            goto L3f
        L3c:
            r8 = move-exception
            goto Laf
        L3f:
            if (r8 == 0) goto L4d
            int r6 = r5.c     // Catch: java.lang.Throwable -> L3c
            int r7 = r8.hashCode()     // Catch: java.lang.Throwable -> L3c
            if (r6 != r7) goto L4d
        L49:
            android.content.res.ColorStateList r3 = r5.a     // Catch: java.lang.Throwable -> L3c
            monitor-exit(r2)     // Catch: java.lang.Throwable -> L3c
            goto L52
        L4d:
            r3.remove(r9)     // Catch: java.lang.Throwable -> L3c
        L50:
            monitor-exit(r2)     // Catch: java.lang.Throwable -> L3c
            r3 = r4
        L52:
            if (r3 == 0) goto L55
            return r3
        L55:
            java.lang.ThreadLocal r2 = o.AbstractC3060z20.a
            java.lang.Object r3 = r2.get()
            android.util.TypedValue r3 = (android.util.TypedValue) r3
            if (r3 != 0) goto L67
            android.util.TypedValue r3 = new android.util.TypedValue
            r3.<init>()
            r2.set(r3)
        L67:
            r2 = 1
            r0.getValue(r9, r3, r2)
            int r2 = r3.type
            r3 = 28
            if (r2 < r3) goto L76
            r3 = 31
            if (r2 > r3) goto L76
            goto L7e
        L76:
            android.content.res.XmlResourceParser r2 = r0.getXml(r9)
            android.content.res.ColorStateList r4 = o.AbstractC0449Ri.a(r0, r2, r8)     // Catch: java.lang.Exception -> L7e
        L7e:
            if (r4 == 0) goto Laa
            java.lang.Object r2 = o.AbstractC3060z20.c
            monitor-enter(r2)
            java.util.WeakHashMap r0 = o.AbstractC3060z20.b     // Catch: java.lang.Throwable -> L96
            java.lang.Object r3 = r0.get(r1)     // Catch: java.lang.Throwable -> L96
            android.util.SparseArray r3 = (android.util.SparseArray) r3     // Catch: java.lang.Throwable -> L96
            if (r3 != 0) goto L98
            android.util.SparseArray r3 = new android.util.SparseArray     // Catch: java.lang.Throwable -> L96
            r3.<init>()     // Catch: java.lang.Throwable -> L96
            r0.put(r1, r3)     // Catch: java.lang.Throwable -> L96
            goto L98
        L96:
            r8 = move-exception
            goto La8
        L98:
            o.x20 r0 = new o.x20     // Catch: java.lang.Throwable -> L96
            android.content.res.Resources r1 = r1.a     // Catch: java.lang.Throwable -> L96
            android.content.res.Configuration r1 = r1.getConfiguration()     // Catch: java.lang.Throwable -> L96
            r0.<init>(r4, r1, r8)     // Catch: java.lang.Throwable -> L96
            r3.append(r9, r0)     // Catch: java.lang.Throwable -> L96
            monitor-exit(r2)     // Catch: java.lang.Throwable -> L96
            goto Lae
        La8:
            monitor-exit(r2)     // Catch: java.lang.Throwable -> L96
            throw r8
        Laa:
            android.content.res.ColorStateList r4 = r0.getColorStateList(r9, r8)
        Lae:
            return r4
        Laf:
            monitor-exit(r2)     // Catch: java.lang.Throwable -> L3c
            throw r8
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Co0.z(android.content.Context, int):android.content.res.ColorStateList");
    }
}
