package o;

import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Region;
import android.os.Build;
import android.os.Bundle;
import android.os.Trace;
import android.os.UserManager;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import androidx.compose.foundation.layout.FillElement;
import com.google.android.gms.common.R;
import com.google.android.gms.common.api.Api;
import com.google.firebase.messaging.FirebaseMessagingService;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class As0 {
    public static volatile KU a;
    public static final C1746lA b = new C1746lA(9);
    public static final int[][] c = {new int[]{1, 1, 1, 1, 1, 1, 1}, new int[]{1, 0, 0, 0, 0, 0, 1}, new int[]{1, 0, 1, 1, 1, 0, 1}, new int[]{1, 0, 1, 1, 1, 0, 1}, new int[]{1, 0, 1, 1, 1, 0, 1}, new int[]{1, 0, 0, 0, 0, 0, 1}, new int[]{1, 1, 1, 1, 1, 1, 1}};
    public static final int[][] d = {new int[]{1, 1, 1, 1, 1}, new int[]{1, 0, 0, 0, 1}, new int[]{1, 0, 1, 0, 1}, new int[]{1, 0, 0, 0, 1}, new int[]{1, 1, 1, 1, 1}};
    public static final int[][] e = {new int[]{-1, -1, -1, -1, -1, -1, -1}, new int[]{6, 18, -1, -1, -1, -1, -1}, new int[]{6, 22, -1, -1, -1, -1, -1}, new int[]{6, 26, -1, -1, -1, -1, -1}, new int[]{6, 30, -1, -1, -1, -1, -1}, new int[]{6, 34, -1, -1, -1, -1, -1}, new int[]{6, 22, 38, -1, -1, -1, -1}, new int[]{6, 24, 42, -1, -1, -1, -1}, new int[]{6, 26, 46, -1, -1, -1, -1}, new int[]{6, 28, 50, -1, -1, -1, -1}, new int[]{6, 30, 54, -1, -1, -1, -1}, new int[]{6, 32, 58, -1, -1, -1, -1}, new int[]{6, 34, 62, -1, -1, -1, -1}, new int[]{6, 26, 46, 66, -1, -1, -1}, new int[]{6, 26, 48, 70, -1, -1, -1}, new int[]{6, 26, 50, 74, -1, -1, -1}, new int[]{6, 30, 54, 78, -1, -1, -1}, new int[]{6, 30, 56, 82, -1, -1, -1}, new int[]{6, 30, 58, 86, -1, -1, -1}, new int[]{6, 34, 62, 90, -1, -1, -1}, new int[]{6, 28, 50, 72, 94, -1, -1}, new int[]{6, 26, 50, 74, 98, -1, -1}, new int[]{6, 30, 54, 78, 102, -1, -1}, new int[]{6, 28, 54, 80, 106, -1, -1}, new int[]{6, 32, 58, 84, 110, -1, -1}, new int[]{6, 30, 58, 86, 114, -1, -1}, new int[]{6, 34, 62, 90, 118, -1, -1}, new int[]{6, 26, 50, 74, 98, 122, -1}, new int[]{6, 30, 54, 78, 102, 126, -1}, new int[]{6, 26, 52, 78, 104, 130, -1}, new int[]{6, 30, 56, 82, 108, 134, -1}, new int[]{6, 34, 60, 86, 112, 138, -1}, new int[]{6, 30, 58, 86, 114, 142, -1}, new int[]{6, 34, 62, 90, 118, 146, -1}, new int[]{6, 30, 54, 78, 102, 126, 150}, new int[]{6, 24, 50, 76, 102, 128, 154}, new int[]{6, 28, 54, 80, 106, 132, 158}, new int[]{6, 32, 58, 84, 110, 136, 162}, new int[]{6, 26, 54, 82, 110, 138, 166}, new int[]{6, 30, 58, 86, 114, 142, 170}};
    public static final int[][] f = {new int[]{8, 0}, new int[]{8, 1}, new int[]{8, 2}, new int[]{8, 3}, new int[]{8, 4}, new int[]{8, 5}, new int[]{8, 7}, new int[]{8, 8}, new int[]{7, 8}, new int[]{5, 8}, new int[]{4, 8}, new int[]{3, 8}, new int[]{2, 8}, new int[]{1, 8}, new int[]{0, 8}};
    public static final T00 g = new T00(0.0f, 0.0f, 10.0f, 10.0f);
    public static CG h;

    public static final View A(View view, OC oc, View view2) {
        View viewA;
        if (((Boolean) oc.g(view)).booleanValue()) {
            return view;
        }
        if (!(view instanceof ViewGroup)) {
            return null;
        }
        ViewGroup viewGroup = (ViewGroup) view;
        int childCount = viewGroup.getChildCount();
        for (int i = 0; i < childCount; i++) {
            View childAt = viewGroup.getChildAt(i);
            if (childAt != view2 && (viewA = A(childAt, oc, view2)) != null) {
                return viewA;
            }
        }
        return null;
    }

    public static final IQ B(U50 u50) {
        Trace.beginSection("getAllUncoveredSemanticsNodesToIntObjectMap");
        try {
            R50 r50A = u50.a();
            C2420sK c2420sK = r50A.c;
            if (c2420sK.H() && c2420sK.G()) {
                IQ iq = new IQ(48);
                WT wt = new WT(11);
                C1086eI c1086eIF = AbstractC2001nt0.F(r50A.g());
                ((Region) wt.m).set(c1086eIF.a, c1086eIF.b, c1086eIF.c, c1086eIF.d);
                C(wt, r50A, iq, r50A, new WT(11));
                return iq;
            }
            return ZH.a;
        } finally {
            Trace.endSection();
        }
    }

    public static final void C(WT wt, R50 r50, IQ iq, R50 r502, WT wt2) {
        T00 t00L1;
        C2420sK c2420sK;
        int i = r50.g;
        Region region = (Region) wt2.m;
        C2420sK c2420sK2 = r502.c;
        int i2 = r502.g;
        boolean z = (c2420sK2.H() && c2420sK2.G()) ? false : true;
        Region region2 = (Region) wt.m;
        if (!region2.isEmpty() || i2 == i) {
            if (!z || r502.e) {
                InterfaceC0535Uq interfaceC0535UqF = r502.f();
                if (interfaceC0535UqF == null) {
                    t00L1 = ((C2702vH) c2420sK2.N.d).l1();
                } else {
                    LP lp = ((LP) interfaceC0535UqF).l;
                    Object objG = r502.d.l.g(M50.b);
                    if (objG == null) {
                        objG = null;
                    }
                    boolean z2 = objG != null;
                    if (!lp.l.y) {
                        t00L1 = T00.e;
                    } else if (z2) {
                        t00L1 = AbstractC2539te.Q(lp, 8).l1();
                    } else {
                        AbstractC2239qS abstractC2239qSQ = AbstractC2539te.Q(lp, 8);
                        t00L1 = AbstractC2841wm0.s(abstractC2239qSQ).h(abstractC2239qSQ, true);
                    }
                }
                C1086eI c1086eIF = AbstractC2001nt0.F(t00L1);
                region.set(c1086eIF.a, c1086eIF.b, c1086eIF.c, c1086eIF.d);
                if (i2 == i) {
                    i2 = -1;
                }
                if (!region.op(region2, Region.Op.INTERSECT)) {
                    if (r502.e) {
                        R50 r50L = r502.l();
                        iq.h(i2, new T50(r502, AbstractC2001nt0.F((r50L == null || (c2420sK = r50L.c) == null || !c2420sK.H()) ? g : r50L.g())));
                        return;
                    } else {
                        if (i2 == -1) {
                            Rect bounds = region.getBounds();
                            iq.h(i2, new T50(r502, new C1086eI(bounds.left, bounds.top, bounds.right, bounds.bottom)));
                            return;
                        }
                        return;
                    }
                }
                Rect bounds2 = region.getBounds();
                iq.h(i2, new T50(r502, new C1086eI(bounds2.left, bounds2.top, bounds2.right, bounds2.bottom)));
                List listJ = R50.j(4, r502);
                for (int size = listJ.size() - 1; -1 < size; size--) {
                    if (!((R50) listJ.get(size)).k().l.c(W50.z)) {
                        C(wt, r50, iq, (R50) listJ.get(size), wt2);
                    }
                }
                if (H(r502)) {
                    region2.op(c1086eIF.a, c1086eIF.b, c1086eIF.c, c1086eIF.d, Region.Op.DIFFERENCE);
                }
            }
        }
    }

    public static final InterfaceC2894xJ D(L60 l60) {
        if (l60 instanceof M60) {
            return D(((M60) l60).a);
        }
        return null;
    }

    public static final float E(InterfaceC2747vn interfaceC2747vn) {
        VP vp = (VP) interfaceC2747vn.m(C0669Zu.N);
        float fD = vp != null ? vp.D() : 1.0f;
        if (fD >= 0.0f) {
            return fD;
        }
        AbstractC1198fY.b("negative scale factor");
        return fD;
    }

    public static boolean F(int i) {
        return i == -1;
    }

    public static final boolean G(R50 r50) {
        AbstractC2239qS abstractC2239qSD = r50.d();
        N50 n50 = r50.d;
        if (abstractC2239qSD != null ? abstractC2239qSD.X0() : false) {
            return true;
        }
        Z50 z50 = W50.a;
        if (n50.l.c(W50.p)) {
            return true;
        }
        return n50.l.c(W50.f392o);
    }

    /* JADX WARN: Removed duplicated region for block: B:20:0x0054  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final boolean H(o.R50 r14) {
        /*
            boolean r0 = G(r14)
            r1 = 0
            if (r0 != 0) goto L5b
            o.N50 r14 = r14.d
            boolean r0 = r14.n
            if (r0 != 0) goto L59
            o.ZQ r14 = r14.l
            java.lang.Object[] r0 = r14.b
            java.lang.Object[] r2 = r14.c
            long[] r14 = r14.a
            int r3 = r14.length
            int r3 = r3 + (-2)
            if (r3 < 0) goto L5b
            r4 = r1
        L1b:
            r5 = r14[r4]
            long r7 = ~r5
            r9 = 7
            long r7 = r7 << r9
            long r7 = r7 & r5
            r9 = -9187201950435737472(0x8080808080808080, double:-2.937446524422997E-306)
            long r7 = r7 & r9
            int r7 = (r7 > r9 ? 1 : (r7 == r9 ? 0 : -1))
            if (r7 == 0) goto L54
            int r7 = r4 - r3
            int r7 = ~r7
            int r7 = r7 >>> 31
            r8 = 8
            int r7 = 8 - r7
            r9 = r1
        L35:
            if (r9 >= r7) goto L52
            r10 = 255(0xff, double:1.26E-321)
            long r10 = r10 & r5
            r12 = 128(0x80, double:6.3E-322)
            int r10 = (r10 > r12 ? 1 : (r10 == r12 ? 0 : -1))
            if (r10 >= 0) goto L4e
            int r10 = r4 << 3
            int r10 = r10 + r9
            r11 = r0[r10]
            r10 = r2[r10]
            o.Z50 r11 = (o.Z50) r11
            boolean r10 = r11.c
            if (r10 == 0) goto L4e
            goto L59
        L4e:
            long r5 = r5 >> r8
            int r9 = r9 + 1
            goto L35
        L52:
            if (r7 != r8) goto L5b
        L54:
            if (r4 == r3) goto L5b
            int r4 = r4 + 1
            goto L1b
        L59:
            r14 = 1
            return r14
        L5b:
            return r1
        */
        throw new UnsupportedOperationException("Method not decompiled: o.As0.H(o.R50):boolean");
    }

    public static final boolean I(IX ix, long j, long j2) {
        int i = ix.i == 1 ? 1 : 0;
        long j3 = ix.c;
        float fIntBitsToFloat = Float.intBitsToFloat((int) (j3 >> 32));
        float fIntBitsToFloat2 = Float.intBitsToFloat((int) (j3 & 4294967295L));
        float f2 = i;
        float fIntBitsToFloat3 = Float.intBitsToFloat((int) (j2 >> 32)) * f2;
        float f3 = ((int) (j >> 32)) + fIntBitsToFloat3;
        float fIntBitsToFloat4 = Float.intBitsToFloat((int) (j2 & 4294967295L)) * f2;
        return (fIntBitsToFloat > f3) | (fIntBitsToFloat < (-fIntBitsToFloat3)) | (fIntBitsToFloat2 < (-fIntBitsToFloat4)) | (fIntBitsToFloat2 > ((int) (j & 4294967295L)) + fIntBitsToFloat4);
    }

    public static boolean J(Context context) {
        return ((UserManager) context.getSystemService(UserManager.class)).isUserUnlocked();
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:109:0x018a  */
    /* JADX WARN: Removed duplicated region for block: B:110:0x018c  */
    /* JADX WARN: Removed duplicated region for block: B:129:0x006f A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:138:0x0140 A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:40:0x00a0  */
    /* JADX WARN: Removed duplicated region for block: B:42:0x00a4  */
    /* JADX WARN: Removed duplicated region for block: B:45:0x00b0  */
    /* JADX WARN: Removed duplicated region for block: B:49:0x00c6 A[PHI: r5
      0x00c6: PHI (r5v21 java.lang.String) = (r5v20 java.lang.String), (r5v32 java.lang.String) binds: [B:44:0x00ae, B:48:0x00c0] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:51:0x00ce  */
    /* JADX WARN: Removed duplicated region for block: B:52:0x00d0  */
    /* JADX WARN: Removed duplicated region for block: B:57:0x00dc  */
    /* JADX WARN: Removed duplicated region for block: B:59:0x00df  */
    /* JADX WARN: Removed duplicated region for block: B:63:0x00ec  */
    /* JADX WARN: Removed duplicated region for block: B:66:0x00f6  */
    /* JADX WARN: Removed duplicated region for block: B:67:0x00f8  */
    /* JADX WARN: Removed duplicated region for block: B:70:0x0101  */
    /* JADX WARN: Removed duplicated region for block: B:74:0x010c  */
    /* JADX WARN: Removed duplicated region for block: B:75:0x010f  */
    /* JADX WARN: Removed duplicated region for block: B:78:0x0119  */
    /* JADX WARN: Removed duplicated region for block: B:79:0x011b  */
    /* JADX WARN: Removed duplicated region for block: B:82:0x0124  */
    /* JADX WARN: Removed duplicated region for block: B:83:0x0127  */
    /* JADX WARN: Removed duplicated region for block: B:86:0x0131  */
    /* JADX WARN: Removed duplicated region for block: B:87:0x0134  */
    /* JADX WARN: Removed duplicated region for block: B:92:0x0149  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static void K(android.content.Intent r21) throws java.lang.NumberFormatException {
        /*
            Method dump skipped, instructions count: 479
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.As0.K(android.content.Intent):void");
    }

    public static void L(String str, Bundle bundle) {
        try {
            C0076Cy.c();
            if (bundle == null) {
                bundle = new Bundle();
            }
            Bundle bundle2 = new Bundle();
            String string = bundle.getString("google.c.a.c_id");
            if (string != null) {
                bundle2.putString("_nmid", string);
            }
            String string2 = bundle.getString("google.c.a.c_l");
            if (string2 != null) {
                bundle2.putString("_nmn", string2);
            }
            String string3 = bundle.getString("google.c.a.m_l");
            if (!TextUtils.isEmpty(string3)) {
                bundle2.putString("label", string3);
            }
            String string4 = bundle.getString("google.c.a.m_c");
            if (!TextUtils.isEmpty(string4)) {
                bundle2.putString("message_channel", string4);
            }
            String string5 = bundle.getString("from");
            if (string5 == null || !string5.startsWith("/topics/")) {
                string5 = null;
            }
            if (string5 != null) {
                bundle2.putString("_nt", string5);
            }
            String string6 = bundle.getString("google.c.a.ts");
            if (string6 != null) {
                try {
                    bundle2.putInt("_nmt", Integer.parseInt(string6));
                } catch (NumberFormatException unused) {
                }
            }
            String string7 = bundle.containsKey("google.c.a.udt") ? bundle.getString("google.c.a.udt") : null;
            if (string7 != null) {
                try {
                    bundle2.putInt("_ndt", Integer.parseInt(string7));
                } catch (NumberFormatException unused2) {
                }
            }
            String str2 = C0247Jn.s(bundle) ? "display" : "data";
            if ("_nr".equals(str) || "_nf".equals(str)) {
                bundle2.putString("_nmc", str2);
            }
            if (Log.isLoggable("FirebaseMessaging", 3)) {
                bundle2.toString();
            }
            A2 a2 = (A2) C0076Cy.c().b(A2.class);
            if (a2 != null) {
                ((B2) a2).a("fcm", str, bundle2);
            }
        } catch (IllegalStateException unused3) {
        }
    }

    public static final long M(IX ix, boolean z) {
        long jD = C1765lT.d(ix.c, ix.g);
        if (z || !ix.b()) {
            return jD;
        }
        return 0L;
    }

    public static final byte[] N(InputStream inputStream) throws IOException {
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(Math.max(8192, inputStream.available()));
        byte[] bArr = new byte[8192];
        int i = inputStream.read(bArr);
        while (i >= 0) {
            byteArrayOutputStream.write(bArr, 0, i);
            i = inputStream.read(bArr);
        }
        return byteArrayOutputStream.toByteArray();
    }

    public static final String O(Reader reader) throws IOException {
        StringWriter stringWriter = new StringWriter();
        char[] cArr = new char[8192];
        int i = reader.read(cArr);
        while (i >= 0) {
            stringWriter.write(cArr, 0, i);
            i = reader.read(cArr);
        }
        return stringWriter.toString();
    }

    public static final long P(long j) {
        return (Math.round(Float.intBitsToFloat((int) (j & 4294967295L))) & 4294967295L) | (Math.round(Float.intBitsToFloat((int) (j >> 32))) << 32);
    }

    public static final MP Q(MP mp, float f2) {
        return (f2 == 1.0f && f2 == 1.0f) ? mp : androidx.compose.ui.graphics.a.c(mp, f2, f2, 0.0f, null, 524284);
    }

    public static final void R(JU ju, int i, Object obj) {
        ju.k[(ju.l - ju.g[ju.h - 1].b) + i] = obj;
    }

    public static final void S(JU ju, int i, Object obj, int i2, Object obj2) {
        int i3 = ju.l - ju.g[ju.h - 1].b;
        Object[] objArr = ju.k;
        objArr[i + i3] = obj;
        objArr[i3 + i2] = obj2;
    }

    public static boolean T(Intent intent) {
        Bundle extras;
        if (intent == null || FirebaseMessagingService.ACTION_DIRECT_BOOT_REMOTE_INTENT.equals(intent.getAction()) || (extras = intent.getExtras()) == null) {
            return false;
        }
        return "1".equals(extras.getString("google.c.a.e"));
    }

    public static int U(int i) {
        return (int) (Integer.rotateLeft((int) (i * (-862048943)), 15) * 461845907);
    }

    public static final Rect V(C1086eI c1086eI) {
        return new Rect(c1086eI.a, c1086eI.b, c1086eI.c, c1086eI.d);
    }

    public static final Rect W(T00 t00) {
        return new Rect((int) t00.a, (int) t00.b, (int) t00.c, (int) t00.d);
    }

    public static final RectF X(T00 t00) {
        return new RectF(t00.a, t00.b, t00.c, t00.d);
    }

    /* JADX WARN: Removed duplicated region for block: B:37:0x00ba  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final o.C1408hi Y(o.C0977d7 r21) {
        /*
            Method dump skipped, instructions count: 393
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.As0.Y(o.d7):o.hi");
    }

    public static final T00 Z(Rect rect) {
        return new T00(rect.left, rect.top, rect.right, rect.bottom);
    }

    /* JADX WARN: Removed duplicated region for block: B:23:0x003d  */
    /* JADX WARN: Removed duplicated region for block: B:30:0x0052  */
    /* JADX WARN: Removed duplicated region for block: B:31:0x0054  */
    /* JADX WARN: Removed duplicated region for block: B:34:0x005d  */
    /* JADX WARN: Removed duplicated region for block: B:72:0x015c  */
    /* JADX WARN: Removed duplicated region for block: B:75:0x0166  */
    /* JADX WARN: Removed duplicated region for block: B:77:? A[RETURN, SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final void a(o.NC r17, o.C0406Pr r18, o.C0554Vj r19, o.C0321Mk r20, int r21, int r22) {
        /*
            Method dump skipped, instructions count: 370
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.As0.a(o.NC, o.Pr, o.Vj, o.Mk, int, int):void");
    }

    public static final T00 a0(RectF rectF) {
        return new T00(rectF.left, rectF.top, rectF.right, rectF.bottom);
    }

    public static final void b(int i, int i2, C0321Mk c0321Mk, NC nc) {
        int i3;
        NC nc2;
        Context context;
        InterfaceC1191fR interfaceC1191fR;
        InterfaceC1191fR interfaceC1191fR2;
        InterfaceC0065Cn interfaceC0065Cn;
        InterfaceC1191fR interfaceC1191fR3;
        InterfaceC1191fR interfaceC1191fR4;
        NC nc3;
        InterfaceC1191fR interfaceC1191fR5;
        InterfaceC1191fR interfaceC1191fR6;
        InterfaceC1191fR interfaceC1191fR7;
        InterfaceC1191fR interfaceC1191fR8;
        C0744al c0744al;
        C0975d6 c0975d6;
        boolean z;
        boolean z2;
        NC nc4;
        InterfaceC1191fR interfaceC1191fR9;
        C0321Mk c0321Mk2 = c0321Mk;
        c0321Mk2.X(1387430587);
        int i4 = i2 & 1;
        if (i4 != 0) {
            i3 = i | 6;
        } else {
            i3 = i | (c0321Mk.h(nc) ? 4 : 2);
        }
        if ((i3 & 3) == 2 && c0321Mk2.z()) {
            c0321Mk2.Q();
            nc4 = nc;
        } else {
            Object obj = C0140Fk.a;
            if (i4 != 0) {
                c0321Mk2.V(-1569803770);
                Object objK = c0321Mk2.K();
                if (objK == obj) {
                    objK = new C0781b40(3);
                    c0321Mk2.f0(objK);
                }
                c0321Mk2.q(false);
                nc2 = (NC) objK;
            } else {
                nc2 = nc;
            }
            Context context2 = (Context) c0321Mk2.j(N3.b);
            Object objK2 = c0321Mk2.K();
            if (objK2 == obj) {
                objK2 = AbstractC0249Jp.B(c0321Mk2);
                c0321Mk2.f0(objK2);
            }
            InterfaceC0065Cn interfaceC0065Cn2 = (InterfaceC0065Cn) objK2;
            c0321Mk2.V(-1569800245);
            Object objK3 = c0321Mk2.K();
            if (objK3 == obj) {
                objK3 = AbstractC0752ap.X(null);
                c0321Mk2.f0(objK3);
            }
            InterfaceC1191fR interfaceC1191fR10 = (InterfaceC1191fR) objK3;
            Object objH = AbstractC2462sn.h(-1569798357, c0321Mk2, false);
            if (objH == obj) {
                objH = AbstractC0752ap.X(null);
                c0321Mk2.f0(objH);
            }
            InterfaceC1191fR interfaceC1191fR11 = (InterfaceC1191fR) objH;
            Object objH2 = AbstractC2462sn.h(-1569796437, c0321Mk2, false);
            if (objH2 == obj) {
                objH2 = AbstractC0752ap.X(null);
                c0321Mk2.f0(objH2);
            }
            InterfaceC1191fR interfaceC1191fR12 = (InterfaceC1191fR) objH2;
            Object objH3 = AbstractC2462sn.h(-1569794414, c0321Mk2, false);
            if (objH3 == obj) {
                objH3 = AbstractC0752ap.X(null);
                c0321Mk2.f0(objH3);
            }
            InterfaceC1191fR interfaceC1191fR13 = (InterfaceC1191fR) objH3;
            Object objH4 = AbstractC2462sn.h(-1569792338, c0321Mk2, false);
            if (objH4 == obj) {
                objH4 = AbstractC0752ap.X(null);
                c0321Mk2.f0(objH4);
            }
            InterfaceC1191fR interfaceC1191fR14 = (InterfaceC1191fR) objH4;
            Object objH5 = AbstractC2462sn.h(-1569790298, c0321Mk2, false);
            if (objH5 == obj) {
                objH5 = AbstractC0752ap.X(Boolean.FALSE);
                c0321Mk2.f0(objH5);
            }
            InterfaceC1191fR interfaceC1191fR15 = (InterfaceC1191fR) objH5;
            Object objH6 = AbstractC2462sn.h(-1569788332, c0321Mk2, false);
            if (objH6 == obj) {
                objH6 = AbstractC0752ap.X(null);
                c0321Mk2.f0(objH6);
            }
            InterfaceC1191fR interfaceC1191fR16 = (InterfaceC1191fR) objH6;
            Object objH7 = AbstractC2462sn.h(-1569786110, c0321Mk2, false);
            if (objH7 == obj) {
                objH7 = AbstractC0752ap.X(0);
                c0321Mk2.f0(objH7);
            }
            InterfaceC1191fR interfaceC1191fR17 = (InterfaceC1191fR) objH7;
            Object objH8 = AbstractC2462sn.h(-1569784154, c0321Mk2, false);
            if (objH8 == obj) {
                objH8 = AbstractC0752ap.X(Boolean.FALSE);
                c0321Mk2.f0(objH8);
            }
            InterfaceC1191fR interfaceC1191fR18 = (InterfaceC1191fR) objH8;
            c0321Mk2.q(false);
            C2867x1 c2867x1 = new C2867x1(1);
            c0321Mk2.V(-1569775868);
            boolean zH = c0321Mk2.h(context2);
            Object objK4 = c0321Mk2.K();
            if (zH || objK4 == obj) {
                C0124Eu c0124Eu = new C0124Eu(context2, interfaceC1191fR16, interfaceC1191fR17, interfaceC1191fR14, interfaceC1191fR18, 0);
                context = context2;
                interfaceC1191fR = interfaceC1191fR16;
                interfaceC1191fR2 = interfaceC1191fR18;
                interfaceC0065Cn = interfaceC0065Cn2;
                interfaceC1191fR3 = interfaceC1191fR17;
                c0321Mk2.f0(c0124Eu);
                objK4 = c0124Eu;
            } else {
                context = context2;
                interfaceC1191fR = interfaceC1191fR16;
                interfaceC1191fR2 = interfaceC1191fR18;
                interfaceC0065Cn = interfaceC0065Cn2;
                interfaceC1191fR3 = interfaceC1191fR17;
            }
            c0321Mk2.q(false);
            C2328rN c2328rNZ = C2887xC.z(c2867x1, (OC) objK4, c0321Mk2, 0);
            C2867x1 c2867x12 = new C2867x1(0);
            c0321Mk2.V(-1569690566);
            Object objK5 = c0321Mk2.K();
            if (objK5 == obj) {
                C0150Fu c0150Fu = new C0150Fu(interfaceC1191fR13, interfaceC1191fR10, interfaceC1191fR11, interfaceC1191fR12, interfaceC1191fR14, 0);
                interfaceC1191fR8 = interfaceC1191fR10;
                interfaceC1191fR7 = interfaceC1191fR11;
                interfaceC1191fR5 = interfaceC1191fR12;
                interfaceC1191fR4 = interfaceC1191fR14;
                nc3 = nc2;
                interfaceC1191fR6 = interfaceC1191fR13;
                c0321Mk2.f0(c0150Fu);
                objK5 = c0150Fu;
            } else {
                interfaceC1191fR4 = interfaceC1191fR14;
                nc3 = nc2;
                interfaceC1191fR5 = interfaceC1191fR12;
                interfaceC1191fR6 = interfaceC1191fR13;
                interfaceC1191fR7 = interfaceC1191fR11;
                interfaceC1191fR8 = interfaceC1191fR10;
            }
            c0321Mk2.q(false);
            C2328rN c2328rNZ2 = C2887xC.z(c2867x12, (OC) objK5, c0321Mk2, 48);
            Z40 z40G = androidx.compose.foundation.a.g(c0321Mk2);
            FillElement fillElement = androidx.compose.foundation.layout.c.b;
            MP mpA = androidx.compose.foundation.a.a(fillElement, new C2232qL(AbstractC0008Ai.S(new C0190Hi(AbstractC0098Du.a), new C0190Hi(AbstractC0098Du.b), new C0190Hi(AbstractC0098Du.c)), 0L, (Float.floatToRawIntBits(1000.0f) << 32) | (Float.floatToRawIntBits(1400.0f) & 4294967295L)));
            C0159Gd c0159Gd = C0669Zu.m;
            InterfaceC2235qO interfaceC2235qOD = AbstractC3109ze.d(c0159Gd, false);
            int iHashCode = Long.hashCode(c0321Mk2.R);
            AW awL = c0321Mk2.l();
            MP mpF = AbstractC1692kh0.F(c0321Mk2, mpA);
            InterfaceC0062Ck.b.getClass();
            C0744al c0744al2 = C0036Bk.b;
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al2);
            } else {
                c0321Mk2.i0();
            }
            C0975d6 c0975d62 = C0036Bk.f;
            AbstractC2378rs0.f0(interfaceC2235qOD, c0321Mk2, c0975d62);
            C0975d6 c0975d63 = C0036Bk.e;
            AbstractC2378rs0.f0(awL, c0321Mk2, c0975d63);
            C0975d6 c0975d64 = C0036Bk.i;
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode))) {
                AbstractC2462sn.r(iHashCode, c0321Mk2, iHashCode, c0975d64);
            }
            C0975d6 c0975d65 = C0036Bk.c;
            AbstractC2378rs0.f0(mpF, c0321Mk2, c0975d65);
            MP mpH = androidx.compose.foundation.a.h(fillElement, z40G);
            C0790b9 c0790b9 = AbstractC0981d9.c;
            C0579Wi c0579WiA = AbstractC0527Ui.a(c0790b9, C0669Zu.y, c0321Mk2, 0);
            int iHashCode2 = Long.hashCode(c0321Mk2.R);
            AW awL2 = c0321Mk2.l();
            MP mpF2 = AbstractC1692kh0.F(c0321Mk2, mpH);
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al2);
            } else {
                c0321Mk2.i0();
            }
            AbstractC2378rs0.f0(c0579WiA, c0321Mk2, c0975d62);
            AbstractC2378rs0.f0(awL2, c0321Mk2, c0975d63);
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode2))) {
                AbstractC2462sn.r(iHashCode2, c0321Mk2, iHashCode2, c0975d64);
            }
            AbstractC2378rs0.f0(mpF2, c0321Mk2, c0975d65);
            JP jp = JP.a;
            MP mpC = androidx.compose.foundation.layout.c.c(androidx.compose.foundation.layout.c.b(jp, 1.0f), 190);
            InterfaceC2235qO interfaceC2235qOD2 = AbstractC3109ze.d(c0159Gd, false);
            int iHashCode3 = Long.hashCode(c0321Mk2.R);
            AW awL3 = c0321Mk2.l();
            MP mpF3 = AbstractC1692kh0.F(c0321Mk2, mpC);
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al2);
            } else {
                c0321Mk2.i0();
            }
            AbstractC2378rs0.f0(interfaceC2235qOD2, c0321Mk2, c0975d62);
            AbstractC2378rs0.f0(awL3, c0321Mk2, c0975d63);
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode3))) {
                AbstractC2462sn.r(iHashCode3, c0321Mk2, iHashCode3, c0975d64);
            }
            AbstractC2378rs0.f0(mpF3, c0321Mk2, c0975d65);
            YT.c(AbstractC0752ap.Y(R.drawable.vam_asan_header, c0321Mk2), "هدر سامانه ابلاغ", fillElement, null, C2460sm.a, 0.0f, c0321Mk2, 25008, 104);
            long jB = C0190Hi.b(0.78f, AbstractC0752ap.c(4278849300L));
            C3025yj0 c3025yj0 = AbstractC2841wm0.j;
            AbstractC3109ze.a(androidx.compose.foundation.a.b(fillElement, jB, c3025yj0), c0321Mk2, 6);
            C0159Gd c0159Gd2 = C0669Zu.q;
            androidx.compose.foundation.layout.a aVar = androidx.compose.foundation.layout.a.a;
            MP mpG = androidx.compose.foundation.layout.b.g(androidx.compose.foundation.layout.b.c(aVar.a(jp, c0159Gd2), -28), 24, 0.0f, 2);
            C0579Wi c0579WiA2 = AbstractC0527Ui.a(c0790b9, C0669Zu.z, c0321Mk2, 48);
            int iHashCode4 = Long.hashCode(c0321Mk2.R);
            AW awL4 = c0321Mk2.l();
            MP mpF4 = AbstractC1692kh0.F(c0321Mk2, mpG);
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al2);
            } else {
                c0321Mk2.i0();
            }
            AbstractC2378rs0.f0(c0579WiA2, c0321Mk2, c0975d62);
            AbstractC2378rs0.f0(awL4, c0321Mk2, c0975d63);
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode4))) {
                AbstractC2462sn.r(iHashCode4, c0321Mk2, iHashCode4, c0975d64);
            }
            AbstractC2378rs0.f0(mpF4, c0321Mk2, c0975d65);
            long j = C0190Hi.c;
            long jC = C1884mi0.C(22);
            OA oa = OA.r;
            long j2 = C0190Hi.b;
            Ke0.b("سامانه ابلاغ الکترونیک", null, j, jC, oa, 0L, null, 0L, 0, false, 0, 0, new C0733af0(0L, 0L, null, 0L, new I70(14.0f, C0190Hi.b(0.55f, j2), (Float.floatToRawIntBits(0.0f) << 32) | (Float.floatToRawIntBits(3.0f) & 4294967295L)), 0, 0L, 16769023), c0321Mk, 1597830, 12582912, 130986);
            C2887xC.e(c0321Mk, androidx.compose.foundation.layout.c.c(jp, 6));
            Ke0.b("مرحله دوم: بارگذاری مدارک هویتی برای ادامه استعلام شکوائیه", null, C0190Hi.b(0.85f, j), C1884mi0.C(13), OA.f264o, 0L, new Yc0(3), C1884mi0.C(20), 0, false, 0, 0, null, c0321Mk, 1597830, 48, 258986);
            c0321Mk.q(true);
            c0321Mk.q(true);
            MP mpC2 = androidx.compose.foundation.layout.b.c(androidx.compose.foundation.layout.b.g(androidx.compose.foundation.layout.c.b(jp, 1.0f), 20, 0.0f, 2), -38);
            C0159Gd c0159Gd3 = C0669Zu.n;
            InterfaceC2235qO interfaceC2235qOD3 = AbstractC3109ze.d(c0159Gd3, false);
            int iHashCode5 = Long.hashCode(c0321Mk.R);
            AW awL5 = c0321Mk.l();
            MP mpF5 = AbstractC1692kh0.F(c0321Mk, mpC2);
            c0321Mk.Y();
            if (c0321Mk.Q) {
                c0744al = c0744al2;
                c0321Mk.k(c0744al);
            } else {
                c0744al = c0744al2;
                c0321Mk.i0();
            }
            AbstractC2378rs0.f0(interfaceC2235qOD3, c0321Mk, c0975d62);
            AbstractC2378rs0.f0(awL5, c0321Mk, c0975d63);
            if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode5))) {
                c0975d6 = c0975d64;
                AbstractC2462sn.r(iHashCode5, c0321Mk, iHashCode5, c0975d6);
            } else {
                c0975d6 = c0975d64;
            }
            AbstractC2378rs0.f0(mpF5, c0321Mk, c0975d65);
            MP mpB = androidx.compose.foundation.layout.c.b(jp, 1.0f);
            C2302r30 c2302r30A = AbstractC2397s30.a(22);
            long j3 = AbstractC0098Du.f;
            C0058Cg c0058CgI = C2887xC.i(j3, c0321Mk, 6);
            float f2 = 1;
            long j4 = AbstractC0098Du.g;
            Context context3 = context;
            C0975d6 c0975d66 = c0975d6;
            C0744al c0744al3 = c0744al;
            YT.a(mpB, c2302r30A, c0058CgI, C2887xC.j(62, 10), AbstractC1155f00.a(f2, j4), C2887xC.y(-1229265168, new C0383Ou(context3, c2328rNZ, c2328rNZ2, interfaceC0065Cn, nc3, interfaceC1191fR4, interfaceC1191fR8, interfaceC1191fR6, interfaceC1191fR3, interfaceC1191fR2, interfaceC1191fR, interfaceC1191fR7, interfaceC1191fR5, interfaceC1191fR15, 0), c0321Mk), c0321Mk, 221190, 0);
            Nb0.a(androidx.compose.foundation.layout.b.c(aVar.a(androidx.compose.foundation.layout.c.h(jp, 84), c0159Gd3), -42), AbstractC2397s30.a, j, 0L, 0.0f, 16, AbstractC1155f00.a(f2, j4), AbstractC1220fk.b, c0321Mk, 14352768, 24);
            c0321Mk.q(true);
            C2887xC.e(c0321Mk, androidx.compose.foundation.layout.c.c(jp, 8));
            float f3 = 28;
            Ke0.b("مدارک شما صرفاً جهت احراز هویت و تکمیل فرایند استعلام ابلاغیه استفاده شده و به\u200cصورت محرمانه نگهداری می\u200cشود.", androidx.compose.foundation.layout.b.g(androidx.compose.foundation.layout.c.b(jp, 1.0f), f3, 0.0f, 2), AbstractC0098Du.e, C1884mi0.C(11), null, 0L, new Yc0(3), C1884mi0.C(16), 0, false, 0, 0, null, c0321Mk, 25014, 48, 259048);
            c0321Mk2 = c0321Mk;
            C2887xC.e(c0321Mk2, androidx.compose.foundation.layout.c.c(jp, f3));
            c0321Mk2.q(true);
            c0321Mk2.V(-1735480040);
            if (((Boolean) interfaceC1191fR15.getValue()).booleanValue()) {
                MP mpB2 = androidx.compose.foundation.a.b(fillElement, C0190Hi.b(0.12f, j2), c3025yj0);
                z = false;
                InterfaceC2235qO interfaceC2235qOD4 = AbstractC3109ze.d(c0159Gd2, false);
                int iHashCode6 = Long.hashCode(c0321Mk2.R);
                AW awL6 = c0321Mk2.l();
                MP mpF6 = AbstractC1692kh0.F(c0321Mk2, mpB2);
                c0321Mk2.Y();
                if (c0321Mk2.Q) {
                    c0321Mk2.k(c0744al3);
                } else {
                    c0321Mk2.i0();
                }
                AbstractC2378rs0.f0(interfaceC2235qOD4, c0321Mk2, c0975d62);
                AbstractC2378rs0.f0(awL6, c0321Mk2, c0975d63);
                if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode6))) {
                    AbstractC2462sn.r(iHashCode6, c0321Mk2, iHashCode6, c0975d66);
                }
                AbstractC2378rs0.f0(mpF6, c0321Mk2, c0975d65);
                AbstractC1676kZ.a(null, AbstractC0098Du.i, 0.0f, 0L, 0, 0.0f, c0321Mk, 48, 61);
                c0321Mk2 = c0321Mk;
                c0321Mk2.q(true);
            } else {
                z = false;
            }
            c0321Mk2.q(z);
            c0321Mk2.V(-1735466467);
            if (((Boolean) interfaceC1191fR2.getValue()).booleanValue()) {
                c0321Mk2.V(-1735465279);
                Object objK6 = c0321Mk2.K();
                if (objK6 == obj) {
                    interfaceC1191fR9 = interfaceC1191fR2;
                    objK6 = new C5(interfaceC1191fR9, 12);
                    c0321Mk2.f0(objK6);
                } else {
                    interfaceC1191fR9 = interfaceC1191fR2;
                }
                c0321Mk2.q(z);
                z2 = z;
                C80.d((NC) objK6, C2887xC.y(-1994342485, new C2951xu(context3, interfaceC1191fR9, 1), c0321Mk2), null, C2887xC.y(-1904282195, new C2571tu(interfaceC1191fR9, 2), c0321Mk2), AbstractC1220fk.e, AbstractC1220fk.f, null, j3, 0L, 0L, 0L, 0.0f, null, c0321Mk, 102435894, 16020);
                c0321Mk2 = c0321Mk;
            } else {
                z2 = z;
            }
            c0321Mk2.q(z2);
            c0321Mk2.q(true);
            nc4 = nc3;
        }
        L00 l00S = c0321Mk2.s();
        if (l00S != null) {
            l00S.d = new C1432hu(nc4, i, i2, 1);
        }
    }

    public static void b0(String str) {
        throw new IllegalArgumentException("Unsupported type: " + str + ". " + AbstractC2462sn.j("If you wish to display this ", str, ", use androidx.compose.foundation.Image."));
    }

    public static final void c(InterfaceC1191fR interfaceC1191fR, boolean z) {
        interfaceC1191fR.setValue(Boolean.valueOf(z));
    }

    public static final void c0(Q6 q6, S6 s6) {
        s6.m.setValue(q6.e.getValue());
        Y6 y6 = s6.n;
        Y6 y62 = q6.f;
        int iB = y6.b();
        for (int i = 0; i < iB; i++) {
            y6.e(i, y62.a(i));
        }
        s6.p = q6.h;
        s6.f324o = q6.g;
        s6.q = ((Boolean) q6.i.getValue()).booleanValue();
    }

    public static final void d(final int i, C0321Mk c0321Mk, final boolean z) {
        C2232qL c2232qLR;
        c0321Mk.X(287942624);
        if ((i & 3) == 2 && c0321Mk.z()) {
            c0321Mk.Q();
        } else {
            MP mpC = androidx.compose.foundation.layout.c.c(JP.a, 2);
            if (z) {
                c2232qLR = J7.r(AbstractC0008Ai.S(new C0190Hi(AbstractC0098Du.h), new C0190Hi(AbstractC0098Du.i)));
            } else {
                long j = AbstractC0098Du.g;
                c2232qLR = J7.r(AbstractC0008Ai.S(new C0190Hi(j), new C0190Hi(j)));
            }
            AbstractC3109ze.a(androidx.compose.foundation.a.a(mpC, c2232qLR), c0321Mk, 0);
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new SC(z, i) { // from class: o.Iu
                public final /* synthetic */ boolean l;

                @Override // o.SC
                public final Object f(Object obj, Object obj2) {
                    ((Integer) obj2).getClass();
                    As0.d(AbstractC1904ms0.D(7), (C0321Mk) obj, this.l);
                    return Oh0.a;
                }
            };
        }
    }

    public static InterfaceC1991no0 d0(Object obj) {
        if (obj == null) {
            return InterfaceC1991no0.e;
        }
        if (obj instanceof String) {
            return new C2560to0((String) obj);
        }
        if (obj instanceof Double) {
            return new Wn0((Double) obj);
        }
        if (obj instanceof Long) {
            return new Wn0(Double.valueOf(((Long) obj).doubleValue()));
        }
        if (obj instanceof Integer) {
            return new Wn0(Double.valueOf(((Integer) obj).doubleValue()));
        }
        if (obj instanceof Boolean) {
            return new Rn0((Boolean) obj);
        }
        if (!(obj instanceof Map)) {
            if (!(obj instanceof List)) {
                throw new IllegalArgumentException("Invalid value type");
            }
            Pn0 pn0 = new Pn0();
            Iterator it = ((List) obj).iterator();
            while (it.hasNext()) {
                pn0.n(pn0.l(), d0(it.next()));
            }
            return pn0;
        }
        C1325go0 c1325go0 = new C1325go0();
        Map map = (Map) obj;
        for (Object string : map.keySet()) {
            InterfaceC1991no0 interfaceC1991no0D0 = d0(map.get(string));
            if (string != null) {
                if (!(string instanceof String)) {
                    string = string.toString();
                }
                c1325go0.d((String) string, interfaceC1991no0D0);
            }
        }
        return c1325go0;
    }

    /* JADX WARN: Removed duplicated region for block: B:30:0x00a4  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x00d9  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final void e(int r21, java.lang.String r22, boolean r23, boolean r24, o.C0321Mk r25, int r26) {
        /*
            Method dump skipped, instructions count: 290
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.As0.e(int, java.lang.String, boolean, boolean, o.Mk, int):void");
    }

    public static InterfaceC1991no0 e0(C1333gs0 c1333gs0) {
        if (c1333gs0 == null) {
            return InterfaceC1991no0.d;
        }
        int iX = c1333gs0.x() - 1;
        if (iX == 1) {
            return c1333gs0.r() ? new C2560to0(c1333gs0.s()) : InterfaceC1991no0.k;
        }
        if (iX == 2) {
            return c1333gs0.v() ? new Wn0(Double.valueOf(c1333gs0.w())) : new Wn0(null);
        }
        if (iX == 3) {
            return c1333gs0.t() ? new Rn0(Boolean.valueOf(c1333gs0.u())) : new Rn0(null);
        }
        if (iX != 4) {
            throw new IllegalArgumentException("Unknown type found. Cannot convert entity");
        }
        List listP = c1333gs0.p();
        ArrayList arrayList = new ArrayList();
        Iterator it = listP.iterator();
        while (it.hasNext()) {
            arrayList.add(e0((C1333gs0) it.next()));
        }
        return new C2181po0(c1333gs0.q(), arrayList);
    }

    public static final void f(int i, C0321Mk c0321Mk) {
        C0321Mk c0321Mk2 = c0321Mk;
        c0321Mk2.X(1027153329);
        if (i == 0 && c0321Mk2.z()) {
            c0321Mk2.Q();
        } else {
            C0579Wi c0579WiA = AbstractC0527Ui.a(AbstractC0981d9.c, C0669Zu.z, c0321Mk2, 48);
            int iHashCode = Long.hashCode(c0321Mk2.R);
            AW awL = c0321Mk2.l();
            JP jp = JP.a;
            MP mpF = AbstractC1692kh0.F(c0321Mk2, jp);
            InterfaceC0062Ck.b.getClass();
            C0744al c0744al = C0036Bk.b;
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al);
            } else {
                c0321Mk2.i0();
            }
            C0975d6 c0975d6 = C0036Bk.f;
            AbstractC2378rs0.f0(c0579WiA, c0321Mk2, c0975d6);
            C0975d6 c0975d62 = C0036Bk.e;
            AbstractC2378rs0.f0(awL, c0321Mk2, c0975d62);
            C0975d6 c0975d63 = C0036Bk.i;
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode))) {
                AbstractC2462sn.r(iHashCode, c0321Mk2, iHashCode, c0975d63);
            }
            C0975d6 c0975d64 = C0036Bk.c;
            AbstractC2378rs0.f0(mpF, c0321Mk2, c0975d64);
            Ke0.b("مرحله ۲ از ۳", null, AbstractC0098Du.h, C1884mi0.C(12), OA.f264o, 0L, null, 0L, 0, false, 0, 0, null, c0321Mk, 1597830, 0, 262058);
            c0321Mk2 = c0321Mk;
            C2887xC.e(c0321Mk2, androidx.compose.foundation.layout.c.c(jp, 8));
            MP mpB = androidx.compose.foundation.layout.c.b(jp, 1.0f);
            C3062z30 c3062z30A = AbstractC2967y30.a(AbstractC0981d9.e, C0669Zu.w, c0321Mk2, 54);
            int iHashCode2 = Long.hashCode(c0321Mk2.R);
            AW awL2 = c0321Mk2.l();
            MP mpF2 = AbstractC1692kh0.F(c0321Mk2, mpB);
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al);
            } else {
                c0321Mk2.i0();
            }
            AbstractC2378rs0.f0(c3062z30A, c0321Mk2, c0975d6);
            AbstractC2378rs0.f0(awL2, c0321Mk2, c0975d62);
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode2))) {
                AbstractC2462sn.r(iHashCode2, c0321Mk2, iHashCode2, c0975d63);
            }
            AbstractC2378rs0.f0(mpF2, c0321Mk2, c0975d64);
            e(1, "اطلاعات هویتی", false, true, c0321Mk2, 3510);
            d(6, c0321Mk2, true);
            e(2, "آپلود مدارک", true, false, c0321Mk2, 3510);
            d(6, c0321Mk2, false);
            e(3, "پرداخت مبلغ", false, false, c0321Mk2, 3510);
            c0321Mk2.q(true);
            c0321Mk2.q(true);
        }
        L00 l00S = c0321Mk2.s();
        if (l00S != null) {
            l00S.d = new X8(i, 7);
        }
    }

    public static final void g(MP mp, C0554Vj c0554Vj, C0321Mk c0321Mk, int i) {
        c0321Mk.X(-1854833411);
        int i2 = (c0321Mk.f(mp) ? 4 : 2) | i;
        if (c0321Mk.N(i2 & 1, (i2 & 19) != 18)) {
            Object objK = c0321Mk.K();
            if (objK == C0140Fk.a) {
                objK = C1162f4.i;
                c0321Mk.f0(objK);
            }
            InterfaceC2235qO interfaceC2235qO = (InterfaceC2235qO) objK;
            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(interfaceC2235qO, 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, 6);
            c0321Mk.q(true);
        } else {
            c0321Mk.Q();
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C0032Bg(i, 6, mp, c0554Vj);
        }
    }

    public static final void h(String str, String str2, CG cg, boolean z, NC nc, C0321Mk c0321Mk, int i) {
        c0321Mk.X(576286790);
        int i2 = i | (c0321Mk.f(cg) ? 256 : 128) | (c0321Mk.g(z) ? 2048 : 1024) | (c0321Mk.h(nc) ? 16384 : 8192);
        if ((i2 & 9363) == 9362 && c0321Mk.z()) {
            c0321Mk.Q();
        } else {
            MP mpB = androidx.compose.foundation.layout.c.b(JP.a, 1.0f);
            c0321Mk.V(350459622);
            boolean z2 = (i2 & 57344) == 16384;
            Object objK = c0321Mk.K();
            if (z2 || objK == C0140Fk.a) {
                objK = new C0064Cm(2, nc);
                c0321Mk.f0(objK);
            }
            c0321Mk.q(false);
            YT.a(androidx.compose.foundation.a.d(mpB, null, (NC) objK, 15), AbstractC2397s30.a(16), C2887xC.i(C0190Hi.c, c0321Mk, 6), C2887xC.j(62, 4), null, C2887xC.y(1694394168, new C0435Qu(cg, z, str, str2, 0), c0321Mk), c0321Mk, 196608, 16);
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C0176Gu(str, str2, cg, z, nc, i, 0);
        }
    }

    public static final void i(MP mp, SC sc, C0321Mk c0321Mk, int i) {
        int i2;
        c0321Mk.X(1090521195);
        if ((i & 6) == 0) {
            i2 = (c0321Mk.f(mp) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if ((i & 48) == 0) {
            i2 |= c0321Mk.h(sc) ? 32 : 16;
        }
        if (c0321Mk.N(i2 & 1, (i2 & 19) != 18)) {
            Object objK = c0321Mk.K();
            if (objK == C0140Fk.a) {
                objK = C1162f4.b;
                c0321Mk.f0(objK);
            }
            InterfaceC2235qO interfaceC2235qO = (InterfaceC2235qO) objK;
            int iHashCode = Long.hashCode(c0321Mk.R);
            AW awL = c0321Mk.l();
            MP mpF = AbstractC1692kh0.F(c0321Mk, mp);
            InterfaceC0062Ck.b.getClass();
            C0744al c0744al = C0036Bk.b;
            int i3 = (((((i2 << 3) & 112) | (((i2 >> 3) & 14) | 384)) << 6) & 896) | 6;
            c0321Mk.Y();
            if (c0321Mk.Q) {
                c0321Mk.k(c0744al);
            } else {
                c0321Mk.i0();
            }
            AbstractC2378rs0.f0(interfaceC2235qO, 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);
            sc.f(c0321Mk, Integer.valueOf((i3 >> 6) & 14));
            c0321Mk.q(true);
        } else {
            c0321Mk.Q();
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C1258g4(mp, sc, i);
        }
    }

    public static final void j(Context context, C2328rN c2328rN, InterfaceC1191fR interfaceC1191fR, InterfaceC1191fR interfaceC1191fR2, InterfaceC1191fR interfaceC1191fR3, InterfaceC1191fR interfaceC1191fR4, NC nc) {
        int i = Build.VERSION.SDK_INT;
        if (i < 33 ? Co0.l(context, "android.permission.READ_EXTERNAL_STORAGE") == 0 : Co0.l(context, "android.permission.READ_MEDIA_IMAGES") == 0) {
            nc.a();
            return;
        }
        if (((Number) interfaceC1191fR.getValue()).intValue() >= 2) {
            interfaceC1191fR2.setValue("برای انتخاب تصویر از گالری باید از تنظیمات برنامه، دسترسی فایل را فعال کنید.");
            c(interfaceC1191fR3, true);
            return;
        }
        ArrayList arrayList = new ArrayList();
        if (i >= 33) {
            arrayList.add("android.permission.READ_MEDIA_IMAGES");
        } else {
            arrayList.add("android.permission.READ_EXTERNAL_STORAGE");
        }
        interfaceC1191fR4.setValue(nc);
        c2328rN.a(arrayList.toArray(new String[0]));
    }

    /* JADX WARN: Code restructure failed: missing block: B:21:0x0031, code lost:
    
        return null;
     */
    /* JADX WARN: Code restructure failed: missing block: B:37:0x005c, code lost:
    
        return null;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final android.view.View k(android.view.View r4, android.view.View r5, int r6) {
        /*
            r0 = 1
            r1 = -1
            r2 = 0
            if (r6 == r0) goto L33
            r0 = 2
            if (r6 == r0) goto L9
            goto L39
        L9:
            int r6 = r4.getNextFocusForwardId()
            if (r6 != r1) goto L10
            goto L39
        L10:
            o.m3 r0 = new o.m3
            r1 = 1
            r0.<init>(r6, r1)
            r6 = r2
        L17:
            android.view.View r6 = A(r4, r0, r6)
            if (r6 != 0) goto L32
            if (r4 != r5) goto L20
            goto L32
        L20:
            android.view.ViewParent r6 = r4.getParent()
            if (r6 == 0) goto L31
            boolean r1 = r6 instanceof android.view.View
            if (r1 != 0) goto L2b
            goto L31
        L2b:
            android.view.View r6 = (android.view.View) r6
            r3 = r6
            r6 = r4
            r4 = r3
            goto L17
        L31:
            return r2
        L32:
            return r6
        L33:
            int r6 = r4.getId()
            if (r6 != r1) goto L3a
        L39:
            return r2
        L3a:
            o.K3 r6 = new o.K3
            r0 = 11
            r6.<init>(r0, r5, r4)
            r0 = r2
        L42:
            android.view.View r0 = A(r4, r6, r0)
            if (r0 != 0) goto L5d
            if (r4 != r5) goto L4b
            goto L5d
        L4b:
            android.view.ViewParent r0 = r4.getParent()
            if (r0 == 0) goto L5c
            boolean r1 = r0 instanceof android.view.View
            if (r1 != 0) goto L56
            goto L5c
        L56:
            android.view.View r0 = (android.view.View) r0
            r3 = r0
            r0 = r4
            r4 = r3
            goto L42
        L5c:
            return r2
        L5d:
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: o.As0.k(android.view.View, android.view.View, int):android.view.View");
    }

    public static final void l(View view, ArrayList arrayList, boolean z) {
        int i;
        boolean z2 = view.getVisibility() == 0 && view.isFocusable() && view.isEnabled() && view.getWidth() > 0 && view.getHeight() > 0 && (!z || view.isFocusableInTouchMode());
        if (!(view instanceof ViewGroup)) {
            if (z2) {
                arrayList.add(view);
                return;
            }
            return;
        }
        int size = arrayList.size();
        ViewGroup viewGroup = (ViewGroup) view;
        boolean z3 = viewGroup.getDescendantFocusability() == 131072;
        if (z2 && z3) {
            arrayList.add(view);
        }
        if (viewGroup.getDescendantFocusability() != 393216) {
            int childCount = viewGroup.getChildCount();
            View[] viewArr = new View[childCount];
            for (int i2 = 0; i2 < childCount; i2++) {
                viewArr[i2] = viewGroup.getChildAt(i2);
            }
            UQ uq = AbstractC1270gA.a;
            boolean z4 = viewGroup.getLayoutDirection() == 1;
            C0347Nk c0347Nk = AbstractC1270gA.f;
            UQ uq2 = AbstractC1270gA.a;
            ZQ zq = AbstractC1270gA.d;
            if (childCount < 2) {
                i = 0;
            } else {
                int i3 = childCount - uq2.b;
                i = 0;
                for (int i4 = 0; i4 < i3; i4++) {
                    uq2.a(new Rect());
                }
                for (int i5 = 0; i5 < childCount; i5++) {
                    View view2 = viewArr[i5];
                    int i6 = AbstractC1270gA.b;
                    AbstractC1270gA.b = i6 + 1;
                    Rect rect = (Rect) uq2.e(i6);
                    view2.getDrawingRect(rect);
                    viewGroup.offsetDescendantRectToMyCoords(view2, rect);
                    zq.m(view2, rect);
                }
                C0347Nk c0347Nk2 = AbstractC1270gA.e;
                if (childCount > 1) {
                    Arrays.sort(viewArr, c0347Nk2);
                }
                int iMax = ((Rect) zq.g(viewArr[0])).bottom;
                AbstractC1270gA.c = z4 ? -1 : 1;
                int i7 = 0;
                for (int i8 = 0; i8 < childCount; i8++) {
                    Rect rect2 = (Rect) zq.g(viewArr[i8]);
                    if (rect2.top >= iMax) {
                        if (i8 - i7 > 1) {
                            Arrays.sort(viewArr, i7, i8, c0347Nk);
                        }
                        iMax = rect2.bottom;
                        i7 = i8;
                    } else {
                        iMax = Math.max(iMax, rect2.bottom);
                    }
                }
                if (childCount - i7 > 1) {
                    Arrays.sort(viewArr, i7, childCount, c0347Nk);
                }
                AbstractC1270gA.b = 0;
                zq.a();
            }
            for (int i9 = i; i9 < childCount; i9++) {
                l(viewArr[i9], arrayList, z);
            }
        }
        if (z2 && !z3 && size == arrayList.size()) {
            arrayList.add(view);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:73:0x017d  */
    /* JADX WARN: Removed duplicated region for block: B:76:0x018a  */
    /* JADX WARN: Removed duplicated region for block: B:8:0x001a  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object m(o.S6 r24, o.O6 r25, long r26, final o.OC r28, o.InterfaceC0220Im r29) {
        /*
            Method dump skipped, instructions count: 406
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.As0.m(o.S6, o.O6, long, o.OC, o.Im):java.lang.Object");
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:118:0x023b  */
    /* JADX WARN: Removed duplicated region for block: B:119:0x023e  */
    /* JADX WARN: Removed duplicated region for block: B:121:0x0242  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static void n(o.C0237Jd r29, int r30, o.C2360rj0 r31, int r32, o.C3111zf r33) throws o.C1549j60 {
        /*
            Method dump skipped, instructions count: 716
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.As0.n(o.Jd, int, o.rj0, int, o.zf):void");
    }

    public static int o(int i, int i2) {
        if (i2 == 0) {
            throw new IllegalArgumentException("0 polynomial");
        }
        int iNumberOfLeadingZeros = Integer.numberOfLeadingZeros(i2);
        int i3 = 32 - iNumberOfLeadingZeros;
        int iNumberOfLeadingZeros2 = i << (31 - iNumberOfLeadingZeros);
        while (32 - Integer.numberOfLeadingZeros(iNumberOfLeadingZeros2) >= i3) {
            iNumberOfLeadingZeros2 ^= i2 << ((32 - Integer.numberOfLeadingZeros(iNumberOfLeadingZeros2)) - i3);
        }
        return iNumberOfLeadingZeros2;
    }

    public static final boolean p(IX ix) {
        return !ix.h && ix.d;
    }

    public static final boolean q(IX ix) {
        return (ix.b() || !ix.h || ix.d) ? false : true;
    }

    public static final boolean r(IX ix) {
        return ix.h && !ix.d;
    }

    public static final File s(Context context, String str) {
        return new File(context.getApplicationContext().getFilesDir(), "datastore/".concat(str));
    }

    public static final void t(AbstractC1628jy abstractC1628jy, SV sv) throws IOException {
        try {
            IOException iOException = null;
            for (SV sv2 : abstractC1628jy.f(sv)) {
                try {
                    if (abstractC1628jy.g(sv2).c) {
                        t(abstractC1628jy, sv2);
                    }
                    abstractC1628jy.d(sv2);
                } catch (IOException e2) {
                    if (iOException == null) {
                        iOException = e2;
                    }
                }
            }
            if (iOException != null) {
                throw iOException;
            }
        } catch (FileNotFoundException unused) {
        }
    }

    public static boolean u() {
        Context context;
        SharedPreferences sharedPreferences;
        ApplicationInfo applicationInfo;
        Bundle bundle;
        try {
            C0076Cy.c();
            C0076Cy c0076CyC = C0076Cy.c();
            c0076CyC.a();
            context = c0076CyC.a;
            sharedPreferences = context.getSharedPreferences("com.google.firebase.messaging", 0);
        } catch (PackageManager.NameNotFoundException | IllegalStateException unused) {
        }
        if (sharedPreferences.contains("export_to_big_query")) {
            return sharedPreferences.getBoolean("export_to_big_query", false);
        }
        PackageManager packageManager = context.getPackageManager();
        if (packageManager != null && (applicationInfo = packageManager.getApplicationInfo(context.getPackageName(), 128)) != null && (bundle = applicationInfo.metaData) != null && bundle.containsKey("delivery_metrics_exported_to_big_query_enabled")) {
            return applicationInfo.metaData.getBoolean("delivery_metrics_exported_to_big_query_enabled", false);
        }
        return false;
    }

    public static final void v(Q6 q6, long j, float f2, O6 o6, S6 s6, OC oc) {
        long jC = f2 == 0.0f ? o6.c() : (long) ((j - q6.c) / f2);
        q6.g = j;
        q6.e.setValue(o6.b(jC));
        q6.f = o6.f(jC);
        if (o6.g(jC)) {
            q6.h = q6.g;
            q6.i.setValue(Boolean.FALSE);
        }
        c0(q6, s6);
        oc.g(q6);
    }

    public static void w(int i, int i2, C3111zf c3111zf) throws C1549j60 {
        for (int i3 = 0; i3 < 8; i3++) {
            int i4 = i + i3;
            if (!F(c3111zf.s(i4, i2))) {
                throw new C1549j60();
            }
            c3111zf.t(i4, i2, 0);
        }
    }

    public static void x(int i, int i2, C3111zf c3111zf) {
        for (int i3 = 0; i3 < 7; i3++) {
            int[] iArr = c[i3];
            for (int i4 = 0; i4 < 7; i4++) {
                c3111zf.t(i + i4, i2 + i3, iArr[i4]);
            }
        }
    }

    public static void y(int i, int i2, C3111zf c3111zf) throws C1549j60 {
        for (int i3 = 0; i3 < 7; i3++) {
            int i4 = i2 + i3;
            if (!F(c3111zf.s(i, i4))) {
                throw new C1549j60();
            }
            c3111zf.t(i, i4, 0);
        }
    }

    public static final long z(long j, boolean z, int i, float f2) {
        int iH = ((z || i == 2 || i == 4 || i == 5) && C0634Yl.d(j)) ? C0634Yl.h(j) : Api.BaseClientBuilder.API_PRIORITY_OTHER;
        if (C0634Yl.j(j) != iH) {
            iH = AbstractC0940cn0.k(C2887xC.k(f2), C0634Yl.j(j), iH);
        }
        return Co0.t(0, iH, 0, C0634Yl.g(j));
    }
}
