package o;

import android.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.PointF;
import android.os.Build;
import android.os.Bundle;
import android.os.UserManager;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.ExtractedText;
import androidx.compose.foundation.layout.FillElement;
import androidx.compose.ui.CompositionLocalMapInjectionElement;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import com.google.android.gms.common.api.Api;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.regex.Matcher;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.rs0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC2378rs0 {
    public static UserManager a = null;
    public static volatile boolean b = false;
    public static final BP f;
    public static final C2616uQ g;
    public static CG i;
    public static final C2908xX c = new C2908xX(null, new C1579jX());
    public static final int[] d = {R.attr.theme, com.google.android.gms.common.R.attr.theme};
    public static final int[] e = {com.google.android.gms.common.R.attr.materialThemeOverlay};
    public static final BP h = new BP(12);

    static {
        int i2 = 11;
        f = new BP(i2);
        g = new C2616uQ(i2);
    }

    /* JADX WARN: Removed duplicated region for block: B:27:0x006b  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x0091  */
    /* JADX WARN: Removed duplicated region for block: B:39:0x0094  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:33:0x0082 -> B:25:0x0065). Please report as a decompilation issue!!! */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:34:0x0085 -> B:25:0x0065). Please report as a decompilation issue!!! */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object A(java.util.List r6, o.C1612jp r7, o.AbstractC0298Lm r8) throws java.lang.Throwable {
        /*
            boolean r0 = r8 instanceof o.C1038dp
            if (r0 == 0) goto L13
            r0 = r8
            o.dp r0 = (o.C1038dp) 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.dp r0 = new o.dp
            r0.<init>(r8)
        L18:
            java.lang.Object r8 = r0.q
            int r1 = r0.r
            r2 = 2
            r3 = 1
            o.Dn r4 = o.EnumC0091Dn.l
            if (r1 == 0) goto L42
            if (r1 == r3) goto L3a
            if (r1 != r2) goto L32
            java.util.Iterator r6 = r0.p
            java.io.Serializable r7 = r0.f498o
            o.B10 r7 = (o.B10) r7
            o.IJ.H(r8)     // Catch: java.lang.Throwable -> L30
            goto L65
        L30:
            r8 = move-exception
            goto L7e
        L32:
            java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
            java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
            r6.<init>(r7)
            throw r6
        L3a:
            java.io.Serializable r6 = r0.f498o
            java.util.List r6 = (java.util.List) r6
            o.IJ.H(r8)
            goto L5c
        L42:
            o.IJ.H(r8)
            java.util.ArrayList r8 = new java.util.ArrayList
            r8.<init>()
            o.m6 r1 = new o.m6
            r5 = 0
            r1.<init>(r6, r8, r5)
            r0.f498o = r8
            r0.r = r3
            java.lang.Object r6 = r7.a(r1, r0)
            if (r6 != r4) goto L5b
            goto L93
        L5b:
            r6 = r8
        L5c:
            o.B10 r7 = new o.B10
            r7.<init>()
            java.util.Iterator r6 = r6.iterator()
        L65:
            boolean r8 = r6.hasNext()
            if (r8 == 0) goto L8b
            java.lang.Object r8 = r6.next()
            o.OC r8 = (o.OC) r8
            r0.f498o = r7     // Catch: java.lang.Throwable -> L30
            r0.p = r6     // Catch: java.lang.Throwable -> L30
            r0.r = r2     // Catch: java.lang.Throwable -> L30
            java.lang.Object r8 = r8.g(r0)     // Catch: java.lang.Throwable -> L30
            if (r8 != r4) goto L65
            goto L93
        L7e:
            java.lang.Object r1 = r7.l
            if (r1 != 0) goto L85
            r7.l = r8
            goto L65
        L85:
            java.lang.Throwable r1 = (java.lang.Throwable) r1
            o.C80.i(r1, r8)
            goto L65
        L8b:
            java.lang.Object r6 = r7.l
            java.lang.Throwable r6 = (java.lang.Throwable) r6
            if (r6 != 0) goto L94
            o.Oh0 r4 = o.Oh0.a
        L93:
            return r4
        L94:
            throw r6
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC2378rs0.A(java.util.List, o.jp, o.Lm):java.lang.Object");
    }

    public static final ExtractedText B(C2730ve0 c2730ve0) {
        ExtractedText extractedText = new ExtractedText();
        String str = c2730ve0.a.m;
        extractedText.text = str;
        extractedText.startOffset = 0;
        extractedText.partialEndOffset = str.length();
        extractedText.partialStartOffset = -1;
        long j = c2730ve0.b;
        extractedText.selectionStart = Ue0.f(j);
        extractedText.selectionEnd = Ue0.e(j);
        extractedText.flags = !Za0.Q(c2730ve0.a.m, '\n') ? 1 : 0;
        return extractedText;
    }

    public static final long C(PointF pointF) {
        float f2 = pointF.x;
        float f3 = pointF.y;
        return (Float.floatToRawIntBits(f2) << 32) | (Float.floatToRawIntBits(f3) & 4294967295L);
    }

    public static final MP F(MP mp, L70 l70) {
        return androidx.compose.ui.graphics.a.c(mp, 0.0f, 0.0f, 0.0f, l70, 518143);
    }

    public static final MP G(MP mp) {
        return androidx.compose.ui.graphics.a.c(mp, 0.0f, 0.0f, 0.0f, null, 520191);
    }

    public static final long H(int i2, long j) {
        int i3 = Ue0.c;
        int i4 = (int) (j >> 32);
        int i5 = i4 < 0 ? 0 : i4;
        if (i5 > i2) {
            i5 = i2;
        }
        int i6 = (int) (4294967295L & j);
        int i7 = i6 >= 0 ? i6 : 0;
        if (i7 <= i2) {
            i2 = i7;
        }
        return (i5 == i4 && i2 == i6) ? j : u(i5, i2);
    }

    public static byte[] I(ArrayDeque arrayDeque, int i2) {
        if (arrayDeque.isEmpty()) {
            return new byte[0];
        }
        byte[] bArr = (byte[]) arrayDeque.remove();
        if (bArr.length == i2) {
            return bArr;
        }
        int length = i2 - bArr.length;
        byte[] bArrCopyOf = Arrays.copyOf(bArr, i2);
        while (length > 0) {
            byte[] bArr2 = (byte[]) arrayDeque.remove();
            int iMin = Math.min(length, bArr2.length);
            System.arraycopy(bArr2, 0, bArrCopyOf, i2 - length, iMin);
            length -= iMin;
        }
        return bArrCopyOf;
    }

    public static final C0972d40 J(FQ fq) {
        LinkedHashMap linkedHashMap = fq.a;
        InterfaceC1925n40 interfaceC1925n40 = (InterfaceC1925n40) linkedHashMap.get(f);
        if (interfaceC1925n40 == null) {
            throw new IllegalArgumentException("CreationExtras must have a value by `SAVED_STATE_REGISTRY_OWNER_KEY`");
        }
        InterfaceC1508ik0 interfaceC1508ik0 = (InterfaceC1508ik0) linkedHashMap.get(g);
        if (interfaceC1508ik0 == null) {
            throw new IllegalArgumentException("CreationExtras must have a value by `VIEW_MODEL_STORE_OWNER_KEY`");
        }
        Bundle bundle = (Bundle) linkedHashMap.get(h);
        String str = (String) linkedHashMap.get(OD.p);
        if (str == null) {
            throw new IllegalArgumentException("CreationExtras must have a value by `VIEW_MODEL_KEY`");
        }
        InterfaceC1545j40 interfaceC1545j40B = interfaceC1925n40.getSavedStateRegistry().b();
        Bundle bundle2 = null;
        C1259g40 c1259g40 = interfaceC1545j40B instanceof C1259g40 ? (C1259g40) interfaceC1545j40B : null;
        if (c1259g40 == null) {
            throw new IllegalStateException("enableSavedStateHandles() wasn't called prior to createSavedStateHandle() call");
        }
        C1355h40 c1355h40V = V(interfaceC1508ik0);
        C0972d40 c0972d40 = (C0972d40) c1355h40V.b.get(str);
        if (c0972d40 != null) {
            return c0972d40;
        }
        c1259g40.b();
        Bundle bundle3 = c1259g40.c;
        if (bundle3 != null && bundle3.containsKey(str)) {
            Bundle bundle4 = bundle3.getBundle(str);
            if (bundle4 == null) {
                bundle4 = AbstractC0940cn0.f((C3001yV[]) Arrays.copyOf(new C3001yV[0], 0));
            }
            bundle3.remove(str);
            if (bundle3.isEmpty()) {
                c1259g40.c = null;
            }
            bundle2 = bundle4;
        }
        C0972d40 c0972d40P = AbstractC0940cn0.p(bundle2, bundle);
        c1355h40V.b.put(str, c0972d40P);
        return c0972d40P;
    }

    public static final void K(InterfaceC1925n40 interfaceC1925n40) {
        VK vkB = interfaceC1925n40.getLifecycle().b();
        if (vkB != VK.m && vkB != VK.n) {
            throw new IllegalArgumentException("Failed requirement.");
        }
        if (interfaceC1925n40.getSavedStateRegistry().b() == null) {
            C1259g40 c1259g40 = new C1259g40(interfaceC1925n40.getSavedStateRegistry(), (InterfaceC1508ik0) interfaceC1925n40);
            interfaceC1925n40.getSavedStateRegistry().c("androidx.lifecycle.internal.SavedStateHandlesProvider", c1259g40);
            interfaceC1925n40.getLifecycle().a(new S00(3, c1259g40));
        }
    }

    public static C2804wO L(String str) {
        Matcher matcher = C2804wO.d.matcher(str);
        if (!matcher.lookingAt()) {
            throw new IllegalArgumentException(("No subtype found for: \"" + str + '\"').toString());
        }
        String strGroup = matcher.group(1);
        Locale locale = Locale.US;
        String lowerCase = strGroup.toLowerCase(locale);
        matcher.group(2).toLowerCase(locale);
        ArrayList arrayList = new ArrayList();
        Matcher matcher2 = C2804wO.e.matcher(str);
        int iEnd = matcher.end();
        while (iEnd < str.length()) {
            matcher2.region(iEnd, str.length());
            if (!matcher2.lookingAt()) {
                throw new IllegalArgumentException(("Parameter is not formatted correctly: \"" + str.substring(iEnd) + "\" for: \"" + str + '\"').toString());
            }
            String strGroup2 = matcher2.group(1);
            if (strGroup2 == null) {
                iEnd = matcher2.end();
            } else {
                String strGroup3 = matcher2.group(2);
                if (strGroup3 == null) {
                    strGroup3 = matcher2.group(3);
                } else if (AbstractC1299gb0.L(strGroup3, "'", false) && strGroup3.endsWith("'") && strGroup3.length() > 2) {
                    strGroup3 = strGroup3.substring(1, strGroup3.length() - 1);
                }
                arrayList.add(strGroup2);
                arrayList.add(strGroup3);
                iEnd = matcher2.end();
            }
        }
        return new C2804wO(str, lowerCase, (String[]) arrayList.toArray(new String[0]));
    }

    public static final Object O(InterfaceC1760lO interfaceC1760lO) {
        Object objK = interfaceC1760lO.k();
        C1472iK c1472iK = objK instanceof C1472iK ? (C1472iK) objK : null;
        if (c1472iK != null) {
            return c1472iK.z;
        }
        return null;
    }

    public static final int P(C2331rQ c2331rQ, long j, Qj0 qj0) {
        float f2 = qj0 != null ? qj0.f() : 0.0f;
        int i2 = (int) (4294967295L & j);
        int iE = c2331rQ.e(Float.intBitsToFloat(i2));
        if (Float.intBitsToFloat(i2) < c2331rQ.f(iE) - f2 || Float.intBitsToFloat(i2) > c2331rQ.b(iE) + f2) {
            return -1;
        }
        int i3 = (int) (j >> 32);
        if (Float.intBitsToFloat(i3) < (-f2) || Float.intBitsToFloat(i3) > c2331rQ.d + f2) {
            return -1;
        }
        return iE;
    }

    public static final long U(MK mk, T00 t00, int i2) {
        C0387Oy c0387Oy = ME.J;
        Oe0 oe0D = mk.d();
        C2331rQ c2331rQ = oe0D != null ? oe0D.a.b : null;
        InterfaceC1184fK interfaceC1184fKC = mk.c();
        return (c2331rQ == null || interfaceC1184fKC == null) ? Ue0.b : c2331rQ.h(t00.h(interfaceC1184fKC.v(0L)), i2, c0387Oy);
    }

    public static final C1355h40 V(InterfaceC1508ik0 interfaceC1508ik0) {
        return (C1355h40) new S60(interfaceC1508ik0.getViewModelStore(), new C1163f40(), interfaceC1508ik0 instanceof IE ? ((IE) interfaceC1508ik0).getDefaultViewModelCreationExtras() : C0066Co.b).i(C10.a(C1355h40.class), "androidx.lifecycle.internal.SavedStateHandlesVM");
    }

    public static final int X(L60 l60, L60[] l60Arr) {
        int iHashCode = (l60.b().hashCode() * 31) + Arrays.hashCode(l60Arr);
        int iD = l60.d();
        int i2 = 1;
        while (true) {
            int iHashCode2 = 0;
            if (!(iD > 0)) {
                break;
            }
            int i3 = iD - 1;
            int i4 = i2 * 31;
            String strB = l60.j(l60.d() - iD).b();
            if (strB != null) {
                iHashCode2 = strB.hashCode();
            }
            i2 = i4 + iHashCode2;
            iD = i3;
        }
        int iD2 = l60.d();
        int iHashCode3 = 1;
        while (true) {
            if (!(iD2 > 0)) {
                return (((iHashCode * 31) + i2) * 31) + iHashCode3;
            }
            int i5 = iD2 - 1;
            int i6 = iHashCode3 * 31;
            AbstractC2841wm0 abstractC2841wm0C = l60.j(l60.d() - iD2).c();
            iHashCode3 = i6 + (abstractC2841wm0C != null ? abstractC2841wm0C.hashCode() : 0);
            iD2 = i5;
        }
    }

    public static final boolean Z(int i2) {
        int type = Character.getType(i2);
        return type == 23 || type == 20 || type == 22 || type == 30 || type == 29 || type == 24 || type == 21;
    }

    public static final boolean c0(int i2) {
        return Character.isWhitespace(i2) || i2 == 160;
    }

    public static final boolean d0(int i2) {
        int type;
        return (!c0(i2) || (type = Character.getType(i2)) == 14 || type == 13 || i2 == 10) ? false : true;
    }

    public static final void e0(C1365h90 c1365h90, T8 t8, int i2) {
        while (true) {
            int i3 = c1365h90.v;
            if (i2 > i3 && i2 < c1365h90.u) {
                return;
            }
            if (i3 == 0 && i2 == 0) {
                return;
            }
            c1365h90.K();
            if (c1365h90.w(c1365h90.v)) {
                t8.q();
            }
            c1365h90.j();
        }
    }

    public static final void f(Object obj, C2961y00 c2961y00, MP mp, OC oc, InterfaceC2584u2 interfaceC2584u2, InterfaceC2555tm interfaceC2555tm, C0321Mk c0321Mk, int i2, int i3) {
        C2891xG c2891xGA;
        Z80 e00;
        c0321Mk.X(-2030202961);
        int i4 = AbstractC2548ti0.b;
        if (obj instanceof C2891xG) {
            c2891xGA = (C2891xG) obj;
        } else {
            C2796wG c2796wG = new C2796wG((Context) c0321Mk.j(N3.b));
            c2796wG.c = obj;
            c2891xGA = c2796wG.a();
        }
        c0321Mk.W(402368983);
        Z80 z80 = c2891xGA.t.a;
        J7 j7 = C0140Fk.a;
        if (z80 == null) {
            if (F3.c(interfaceC2555tm, C2460sm.d)) {
                S80 s80 = S80.c;
                e00 = new E00();
            } else {
                c0321Mk.W(-492369756);
                Object objK = c0321Mk.K();
                if (objK == j7) {
                    objK = new C1033dm();
                    c0321Mk.f0(objK);
                }
                c0321Mk.q(false);
                e00 = (Z80) objK;
            }
            C2796wG c2796wGA = C2891xG.a(c2891xGA);
            c2796wGA.k = e00;
            c2796wGA.l = null;
            c2796wGA.m = null;
            c2796wGA.p = 0;
            c2891xGA = c2796wGA.a();
        }
        c0321Mk.q(false);
        c0321Mk.W(-2020614074);
        Object obj2 = c2891xGA.b;
        if (obj2 instanceof C2796wG) {
            throw new IllegalArgumentException("Unsupported type: ImageRequest.Builder. Did you forget to call ImageRequest.Builder.build()?");
        }
        if (obj2 instanceof C2493t4) {
            As0.b0("ImageBitmap");
            throw null;
        }
        if (obj2 instanceof CG) {
            As0.b0("ImageVector");
            throw null;
        }
        if (obj2 instanceof AbstractC2811wV) {
            As0.b0("Painter");
            throw null;
        }
        if (c2891xGA.c != null) {
            throw new IllegalArgumentException("request.target must be null.");
        }
        c0321Mk.W(-492369756);
        Object objK2 = c0321Mk.K();
        if (objK2 == j7) {
            objK2 = new I9(c2891xGA, c2961y00);
            c0321Mk.f0(objK2);
        }
        c0321Mk.q(false);
        I9 i9 = (I9) objK2;
        i9.x = oc;
        i9.y = interfaceC2555tm;
        i9.z = 1;
        i9.A = ((Boolean) c0321Mk.j(SH.a)).booleanValue();
        i9.D.setValue(c2961y00);
        i9.C.setValue(c2891xGA);
        i9.a();
        c0321Mk.q(false);
        Z80 z802 = c2891xGA.r;
        j(z802 instanceof C1033dm ? mp.g((MP) z802) : mp, i9, interfaceC2584u2, interfaceC2555tm, c0321Mk, 384);
        L00 l00S = c0321Mk.s();
        if (l00S == null) {
            return;
        }
        l00S.d = new C2598u9(obj, c2961y00, mp, oc, interfaceC2584u2, interfaceC2555tm, i2, i3);
    }

    public static final void f0(Object obj, C0321Mk c0321Mk, SC sc) {
        if (c0321Mk.Q || !F3.c(c0321Mk.K(), obj)) {
            c0321Mk.f0(obj);
            c0321Mk.b(obj, sc);
        }
    }

    public static final int h0(int i2, int i3) {
        if (i2 == Integer.MAX_VALUE) {
            return i2;
        }
        int i4 = i2 - i3;
        if (i4 < 0) {
            return 0;
        }
        return i4;
    }

    public static final long i0(long j, long j2) {
        float fIntBitsToFloat = Float.intBitsToFloat((int) (j2 >> 32)) * Float.intBitsToFloat((int) (j >> 32));
        float fIntBitsToFloat2 = Float.intBitsToFloat((int) (j2 & 4294967295L)) * Float.intBitsToFloat((int) (j & 4294967295L));
        return (Float.floatToRawIntBits(fIntBitsToFloat2) & 4294967295L) | (Float.floatToRawIntBits(fIntBitsToFloat) << 32);
    }

    public static final void j(MP mp, I9 i9, InterfaceC2584u2 interfaceC2584u2, InterfaceC2555tm interfaceC2555tm, C0321Mk c0321Mk, int i2) {
        c0321Mk.X(10290533);
        MP mpG = G(O50.a(mp, new C2788w9(1, 0))).g(new C2365rm(i9, interfaceC2584u2, interfaceC2555tm));
        C1162f4 c1162f4 = C1162f4.d;
        c0321Mk.W(544976794);
        InterfaceC2281qr interfaceC2281qr = (InterfaceC2281qr) c0321Mk.j(AbstractC0840bl.h);
        EnumC1280gK enumC1280gK = (EnumC1280gK) c0321Mk.j(AbstractC0840bl.n);
        Qj0 qj0 = (Qj0) c0321Mk.j(AbstractC0840bl.s);
        if (mpG != JP.a) {
            mpG = AbstractC1692kh0.F(c0321Mk, new CompositionLocalMapInjectionElement(c0321Mk.l()).g(mpG));
        }
        InterfaceC0062Ck.b.getClass();
        C0744al c0744al = C0036Bk.b;
        c0321Mk.W(1405779621);
        c0321Mk.Y();
        if (c0321Mk.Q) {
            c0321Mk.k(new U4(3, c0744al));
        } else {
            c0321Mk.i0();
        }
        f0(c1162f4, c0321Mk, C0036Bk.f);
        f0(interfaceC2281qr, c0321Mk, C0036Bk.d);
        f0(enumC1280gK, c0321Mk, C0036Bk.g);
        f0(qj0, c0321Mk, C0036Bk.h);
        f0(mpG, c0321Mk, C0036Bk.c);
        c0321Mk.q(true);
        c0321Mk.q(false);
        c0321Mk.q(false);
        L00 l00S = c0321Mk.s();
        if (l00S == null) {
            return;
        }
        l00S.d = new C2693v9(mp, i9, interfaceC2584u2, interfaceC2555tm, i2);
    }

    public static byte[] j0(C0005Af c0005Af) throws IOException {
        ArrayDeque arrayDeque = new ArrayDeque(20);
        int iMin = Math.min(8192, Math.max(128, Integer.highestOneBit(0) * 2));
        int i2 = 0;
        while (i2 < 2147483639) {
            int iMin2 = Math.min(iMin, 2147483639 - i2);
            byte[] bArr = new byte[iMin2];
            arrayDeque.add(bArr);
            int i3 = 0;
            while (i3 < iMin2) {
                int i4 = c0005Af.read(bArr, i3, iMin2 - i3);
                if (i4 == -1) {
                    return I(arrayDeque, i2);
                }
                i3 += i4;
                i2 += i4;
            }
            long j = iMin * (iMin < 4096 ? 4 : 2);
            iMin = j > 2147483647L ? Api.BaseClientBuilder.API_PRIORITY_OTHER : j < -2147483648L ? Integer.MIN_VALUE : (int) j;
        }
        if (c0005Af.read() == -1) {
            return I(arrayDeque, 2147483639);
        }
        throw new OutOfMemoryError("input is too large to fit in a byte array");
    }

    public static final S3 k(String str) {
        return new S3(Collections.singleton(str));
    }

    public static final List k0(ArrayList arrayList) {
        int size = arrayList.size();
        return size != 0 ? size != 1 ? Collections.unmodifiableList(new ArrayList(arrayList)) : Collections.singletonList(AbstractC3117zi.e0(arrayList)) : C0332Mv.l;
    }

    public static final void l(List list, int i2, OC oc, C0321Mk c0321Mk, int i3) {
        C0321Mk c0321Mk2 = c0321Mk;
        c0321Mk2.X(1778041118);
        if (((i3 | (c0321Mk2.h(list) ? 4 : 2) | (c0321Mk2.d(i2) ? 32 : 16)) & 147) == 146 && c0321Mk2.z()) {
            c0321Mk2.Q();
        } else {
            c0321Mk2.V(-91634027);
            Object objK = c0321Mk2.K();
            J7 j7 = C0140Fk.a;
            if (objK == j7) {
                objK = AbstractC0752ap.X(Boolean.FALSE);
                c0321Mk2.f0(objK);
            }
            InterfaceC1191fR interfaceC1191fR = (InterfaceC1191fR) objK;
            int i4 = 0;
            c0321Mk2.q(false);
            JP jp = JP.a;
            MP mpB = androidx.compose.foundation.layout.c.b(jp, 1.0f);
            InterfaceC2235qO interfaceC2235qOD = AbstractC3109ze.d(C0669Zu.m, false);
            int iHashCode = Long.hashCode(c0321Mk2.R);
            AW awL = c0321Mk2.l();
            MP mpF = AbstractC1692kh0.F(c0321Mk2, mpB);
            InterfaceC0062Ck.b.getClass();
            C0744al c0744al = C0036Bk.b;
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al);
            } else {
                c0321Mk2.i0();
            }
            f0(interfaceC2235qOD, c0321Mk2, C0036Bk.f);
            f0(awL, c0321Mk2, C0036Bk.e);
            C0975d6 c0975d6 = C0036Bk.i;
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode))) {
                AbstractC2462sn.r(iHashCode, c0321Mk2, iHashCode, c0975d6);
            }
            f0(mpF, c0321Mk2, C0036Bk.c);
            c0321Mk2.V(138793642);
            Object objK2 = c0321Mk2.K();
            if (objK2 == j7) {
                objK2 = new C5(interfaceC1191fR, 5);
                c0321Mk2.f0(objK2);
            }
            c0321Mk2.q(false);
            MP mpB2 = androidx.compose.foundation.layout.c.b(jp, 1.0f);
            C2302r30 c2302r30A = AbstractC2397s30.a(10);
            C2147pV c2147pV = AbstractC2162pf.a;
            Co0.b((NC) objK2, mpB2, false, c2302r30A, AbstractC2162pf.c(AbstractC0762au.j, AbstractC0762au.d, c0321Mk2, 12), null, null, C2887xC.y(-1361249498, new C1812lu(i2, interfaceC1191fR, i4), c0321Mk2), c0321Mk2, 805306422);
            boolean zBooleanValue = ((Boolean) interfaceC1191fR.getValue()).booleanValue();
            c0321Mk2.V(138819686);
            Object objK3 = c0321Mk2.K();
            if (objK3 == j7) {
                objK3 = new C5(interfaceC1191fR, 6);
                c0321Mk2.f0(objK3);
            }
            c0321Mk2.q(false);
            G4.a(zBooleanValue, (NC) objK3, androidx.compose.foundation.layout.c.e(jp, 0.0f, 220, 1), 0L, null, null, null, 0L, 0.0f, 0.0f, C2887xC.y(46847507, new C2097ou(list, oc, i2, interfaceC1191fR, 0), c0321Mk2), c0321Mk, 432);
            c0321Mk2 = c0321Mk;
            c0321Mk2.q(true);
        }
        L00 l00S = c0321Mk2.s();
        if (l00S != null) {
            l00S.d = new C1240fu(list, i2, oc, i3, 0);
        }
    }

    public static final Map l0(Map map) {
        int size = map.size();
        if (size == 0) {
            return C0358Nv.l;
        }
        if (size != 1) {
            return Collections.unmodifiableMap(new LinkedHashMap(map));
        }
        Map.Entry entry = (Map.Entry) AbstractC3117zi.d0(map.entrySet());
        return Collections.singletonMap(entry.getKey(), entry.getValue());
    }

    public static final C2470sr m(Context context) {
        float f2 = context.getResources().getConfiguration().fontScale;
        float f3 = context.getResources().getDisplayMetrics().density;
        JA jaA = KA.a(f2);
        if (jaA == null) {
            jaA = new C2137pL(f2);
        }
        return new C2470sr(f3, f2, jaA);
    }

    public static final void n(String str, String str2, String str3, int i2, NC nc, OC oc, C0321Mk c0321Mk, int i3, int i4) {
        NC nc2;
        int i5;
        Object obj;
        MP mpD;
        NC nc3;
        C0321Mk c0321Mk2 = c0321Mk;
        c0321Mk2.X(1164765114);
        int i6 = i3 | (c0321Mk2.f(str2) ? 32 : 16);
        int i7 = i4 & 16;
        if (i7 != 0) {
            i5 = i6 | 24576;
            nc2 = nc;
        } else {
            nc2 = nc;
            i5 = i6 | (c0321Mk2.h(nc2) ? 16384 : 8192);
        }
        int i8 = i5;
        if ((i8 & 74899) == 74898 && c0321Mk2.z()) {
            c0321Mk2.Q();
            nc3 = nc2;
        } else {
            if (i7 != 0) {
                nc2 = null;
                obj = null;
            } else {
                obj = null;
            }
            long j = AbstractC0762au.d;
            long jC = C1884mi0.C(13);
            OA oa = OA.p;
            JP jp = JP.a;
            float f2 = 4;
            NC nc4 = nc2;
            Ke0.b(str, androidx.compose.foundation.layout.b.i(androidx.compose.foundation.layout.c.b(jp, 1.0f), 0.0f, f2, 0.0f, f2, 5), j, jC, oa, 0L, null, 0L, 0, false, 0, 0, null, c0321Mk2, 1597830, 0, 262056);
            MP mpB = androidx.compose.foundation.layout.c.b(jp, 1.0f);
            c0321Mk2.V(1586515229);
            int i9 = 0;
            if (nc4 != null) {
                c0321Mk2.V(1586516455);
                boolean z = (i8 & 57344) == 16384;
                Object objK = c0321Mk2.K();
                if (z || objK == C0140Fk.a) {
                    objK = new C0064Cm(1, nc4);
                    c0321Mk2.f0(objK);
                }
                c0321Mk2.q(false);
                mpD = androidx.compose.foundation.a.d(jp, null, (NC) objK, 15);
            } else {
                mpD = jp;
            }
            c0321Mk2.q(false);
            MP mpG = mpB.g(mpD);
            C0554Vj c0554VjY = C2887xC.y(1116337633, new C2192pu(str3, i9), c0321Mk2);
            RJ rj = new RJ(i2, 0, 123);
            C2302r30 c2302r30A = AbstractC2397s30.a(12);
            WU wu = WU.a;
            long j2 = AbstractC0762au.k;
            long j3 = AbstractC0762au.h;
            long j4 = AbstractC0762au.j;
            AbstractC0908cV.a(str2, oc, mpG, false, false, null, c0554VjY, null, false, null, rj, null, 0, 0, c2302r30A, WU.c(0L, j4, j4, 0L, j3, j3, j2, 0L, 0L, c0321Mk2, 2147477199), c0321Mk, ((i8 >> 3) & 14) | 12582960, 0, 2064248);
            c0321Mk2 = c0321Mk;
            C2887xC.e(c0321Mk2, androidx.compose.foundation.layout.c.c(jp, 10));
            nc3 = nc4;
        }
        L00 l00S = c0321Mk2.s();
        if (l00S != null) {
            l00S.d = new C1622ju(str, str2, str3, i2, nc3, oc, i3, i4, 0);
        }
    }

    public static Context n0(Context context, AttributeSet attributeSet, int i2, int i3) {
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, e, i2, i3);
        int resourceId = typedArrayObtainStyledAttributes.getResourceId(0, 0);
        typedArrayObtainStyledAttributes.recycle();
        boolean z = (context instanceof C0194Hm) && ((C0194Hm) context).a == resourceId;
        if (resourceId == 0 || z) {
            return context;
        }
        C0194Hm c0194Hm = new C0194Hm(context, resourceId);
        TypedArray typedArrayObtainStyledAttributes2 = context.obtainStyledAttributes(attributeSet, d);
        int resourceId2 = typedArrayObtainStyledAttributes2.getResourceId(0, 0);
        int resourceId3 = typedArrayObtainStyledAttributes2.getResourceId(1, 0);
        typedArrayObtainStyledAttributes2.recycle();
        if (resourceId2 == 0) {
            resourceId2 = resourceId3;
        }
        if (resourceId2 != 0) {
            c0194Hm.getTheme().applyStyle(resourceId2, true);
        }
        return c0194Hm;
    }

    public static final void o(int i2, int i3, C0321Mk c0321Mk, NC nc) {
        int i4;
        NC nc2;
        InterfaceC1191fR interfaceC1191fR;
        InterfaceC1191fR interfaceC1191fR2;
        C0975d6 c0975d6;
        C0744al c0744al;
        C0975d6 c0975d62;
        Object obj;
        boolean z;
        boolean z2;
        boolean z3;
        NC nc3;
        InterfaceC1191fR interfaceC1191fR3;
        InterfaceC1191fR interfaceC1191fR4;
        C0321Mk c0321Mk2 = c0321Mk;
        c0321Mk2.X(601550719);
        int i5 = i3 & 1;
        if (i5 != 0) {
            i4 = i2 | 6;
        } else {
            i4 = i2 | (c0321Mk.h(nc) ? 4 : 2);
        }
        if ((i4 & 3) == 2 && c0321Mk2.z()) {
            c0321Mk2.Q();
            nc3 = nc;
        } else {
            Object obj2 = C0140Fk.a;
            if (i5 != 0) {
                c0321Mk2.V(-2000525740);
                Object objK = c0321Mk2.K();
                if (objK == obj2) {
                    objK = new C0781b40(3);
                    c0321Mk2.f0(objK);
                }
                c0321Mk2.q(false);
                nc2 = (NC) objK;
            } else {
                nc2 = nc;
            }
            Context context = (Context) c0321Mk2.j(N3.b);
            Object objK2 = c0321Mk2.K();
            if (objK2 == obj2) {
                objK2 = AbstractC0249Jp.B(c0321Mk2);
                c0321Mk2.f0(objK2);
            }
            InterfaceC0065Cn interfaceC0065Cn = (InterfaceC0065Cn) objK2;
            c0321Mk2.V(-2000522098);
            boolean zH = c0321Mk2.h(context);
            Object objK3 = c0321Mk2.K();
            InterfaceC0220Im interfaceC0220Im = null;
            if (zH || objK3 == obj2) {
                objK3 = new C0730ae(context, interfaceC0220Im, 1);
                c0321Mk2.f0(objK3);
            }
            c0321Mk2.q(false);
            AbstractC0249Jp.g(Oh0.a, c0321Mk2, (SC) objK3);
            c0321Mk2.V(-2000520614);
            Object objK4 = c0321Mk2.K();
            if (objK4 == obj2) {
                objK4 = AbstractC0752ap.X(new C0953cu("", "", "", ""));
                c0321Mk2.f0(objK4);
            }
            InterfaceC1191fR interfaceC1191fR5 = (InterfaceC1191fR) objK4;
            Object objH = AbstractC2462sn.h(-2000518756, c0321Mk2, false);
            if (objH == obj2) {
                objH = AbstractC0752ap.X(null);
                c0321Mk2.f0(objH);
            }
            InterfaceC1191fR interfaceC1191fR6 = (InterfaceC1191fR) objH;
            Object objH2 = AbstractC2462sn.h(-2000516716, c0321Mk2, false);
            if (objH2 == obj2) {
                objH2 = AbstractC0752ap.X(Boolean.FALSE);
                c0321Mk2.f0(objH2);
            }
            InterfaceC1191fR interfaceC1191fR7 = (InterfaceC1191fR) objH2;
            Object objH3 = AbstractC2462sn.h(-2000514764, c0321Mk2, false);
            if (objH3 == obj2) {
                objH3 = AbstractC0752ap.X(Boolean.FALSE);
                c0321Mk2.f0(objH3);
            }
            InterfaceC1191fR interfaceC1191fR8 = (InterfaceC1191fR) objH3;
            Object objH4 = AbstractC2462sn.h(-2000512254, c0321Mk2, false);
            if (objH4 == obj2) {
                objH4 = AbstractC0752ap.X(null);
                c0321Mk2.f0(objH4);
            }
            InterfaceC1191fR interfaceC1191fR9 = (InterfaceC1191fR) objH4;
            Object objH5 = AbstractC2462sn.h(-2000509968, c0321Mk2, false);
            if (objH5 == obj2) {
                objH5 = AbstractC0752ap.X(0);
                c0321Mk2.f0(objH5);
            }
            InterfaceC1191fR interfaceC1191fR10 = (InterfaceC1191fR) objH5;
            Object objH6 = AbstractC2462sn.h(-2000508012, c0321Mk2, false);
            if (objH6 == obj2) {
                objH6 = AbstractC0752ap.X(Boolean.FALSE);
                c0321Mk2.f0(objH6);
            }
            InterfaceC1191fR interfaceC1191fR11 = (InterfaceC1191fR) objH6;
            c0321Mk2.q(false);
            C2867x1 c2867x1 = new C2867x1(1);
            c0321Mk2.V(-2000501276);
            Object objK5 = c0321Mk2.K();
            if (objK5 == obj2) {
                objK5 = new C1144eu(interfaceC1191fR9, interfaceC1191fR10, interfaceC1191fR11, interfaceC1191fR6, 0);
                interfaceC1191fR = interfaceC1191fR9;
                interfaceC1191fR2 = interfaceC1191fR6;
                c0321Mk2.f0(objK5);
            } else {
                interfaceC1191fR = interfaceC1191fR9;
                interfaceC1191fR2 = interfaceC1191fR6;
            }
            c0321Mk2.q(false);
            C2328rN c2328rNZ = C2887xC.z(c2867x1, (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(AbstractC0762au.a), new C0190Hi(AbstractC0762au.b), new C0190Hi(AbstractC0762au.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 c0975d63 = C0036Bk.f;
            f0(interfaceC2235qOD, c0321Mk2, c0975d63);
            C0975d6 c0975d64 = C0036Bk.e;
            f0(awL, c0321Mk2, c0975d64);
            C0975d6 c0975d65 = C0036Bk.i;
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode))) {
                AbstractC2462sn.r(iHashCode, c0321Mk2, iHashCode, c0975d65);
            }
            C0975d6 c0975d66 = C0036Bk.c;
            f0(mpF, c0321Mk2, c0975d66);
            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();
            }
            f0(c0579WiA, c0321Mk2, c0975d63);
            f0(awL2, c0321Mk2, c0975d64);
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode2))) {
                AbstractC2462sn.r(iHashCode2, c0321Mk2, iHashCode2, c0975d65);
            }
            f0(mpF2, c0321Mk2, c0975d66);
            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();
            }
            f0(interfaceC2235qOD2, c0321Mk2, c0975d63);
            f0(awL3, c0321Mk2, c0975d64);
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode3))) {
                AbstractC2462sn.r(iHashCode3, c0321Mk2, iHashCode3, c0975d65);
            }
            f0(mpF3, c0321Mk2, c0975d66);
            YT.c(AbstractC0752ap.Y(com.google.android.gms.common.R.drawable.vam_asan_header, c0321Mk2), "هدر سامانه ابلاغ", AbstractC1155f00.i(fillElement, 0.35f), 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();
            }
            f0(c0579WiA2, c0321Mk2, c0975d63);
            f0(awL4, c0321Mk2, c0975d64);
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode4))) {
                c0975d6 = c0975d65;
                AbstractC2462sn.r(iHashCode4, c0321Mk2, iHashCode4, c0975d6);
            } else {
                c0975d6 = c0975d65;
            }
            f0(mpF4, c0321Mk2, c0975d66);
            C0975d6 c0975d67 = c0975d6;
            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.82f, 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();
            }
            f0(interfaceC2235qOD3, c0321Mk, c0975d63);
            f0(awL5, c0321Mk, c0975d64);
            if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode5))) {
                c0975d62 = c0975d67;
                AbstractC2462sn.r(iHashCode5, c0321Mk, iHashCode5, c0975d62);
            } else {
                c0975d62 = c0975d67;
            }
            f0(mpF5, c0321Mk, c0975d66);
            MP mpB = androidx.compose.foundation.layout.c.b(jp, 1.0f);
            C2302r30 c2302r30A = AbstractC2397s30.a(22);
            long j3 = AbstractC0762au.f;
            C0058Cg c0058CgI = C2887xC.i(j3, c0321Mk, 6);
            float f2 = 1;
            long j4 = AbstractC0762au.g;
            C0744al c0744al3 = c0744al;
            NC nc4 = nc2;
            C0975d6 c0975d68 = c0975d62;
            YT.a(mpB, c2302r30A, c0058CgI, C2887xC.j(62, 10), AbstractC1155f00.a(f2, j4), C2887xC.y(700429876, new C2761vu(context, c2328rNZ, interfaceC0065Cn, nc4, interfaceC1191fR2, interfaceC1191fR5, interfaceC1191fR, interfaceC1191fR8, interfaceC1191fR7, 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), AbstractC1124ek.d, c0321Mk, 14352768, 24);
            c0321Mk.q(true);
            C2887xC.e(c0321Mk, androidx.compose.foundation.layout.c.c(jp, 8));
            float f3 = 28;
            InterfaceC1191fR interfaceC1191fR12 = interfaceC1191fR2;
            Ke0.b("اطلاعات شما صرفاً جهت احراز هویت و استعلام وضعیت ابلاغیه استفاده شده و محرمانه نگهداری می\u200cشود.", androidx.compose.foundation.layout.b.g(androidx.compose.foundation.layout.c.b(jp, 1.0f), f3, 0.0f, 2), AbstractC0762au.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(-269344673);
            if (((Boolean) interfaceC1191fR8.getValue()).booleanValue()) {
                String str = ((C0953cu) interfaceC1191fR5.getValue()).d;
                c0321Mk2.V(-269340475);
                Object objK6 = c0321Mk2.K();
                obj = obj2;
                if (objK6 == obj) {
                    interfaceC1191fR4 = interfaceC1191fR8;
                    objK6 = new C1336gu(interfaceC1191fR5, interfaceC1191fR12, interfaceC1191fR4, 0);
                    c0321Mk2.f0(objK6);
                } else {
                    interfaceC1191fR4 = interfaceC1191fR8;
                }
                OC oc = (OC) objK6;
                z = false;
                Object objH7 = AbstractC2462sn.h(-269334901, c0321Mk2, false);
                if (objH7 == obj) {
                    objH7 = new C5(interfaceC1191fR4, 7);
                    c0321Mk2.f0(objH7);
                }
                c0321Mk2.q(false);
                p(str, oc, (NC) objH7, c0321Mk2, 432);
            } else {
                obj = obj2;
                z = false;
            }
            c0321Mk2.q(z);
            c0321Mk2.V(-269330647);
            if (((Boolean) interfaceC1191fR11.getValue()).booleanValue()) {
                c0321Mk2.V(-269329393);
                Object objK7 = c0321Mk2.K();
                if (objK7 == obj) {
                    interfaceC1191fR3 = interfaceC1191fR11;
                    objK7 = new C5(interfaceC1191fR3, 8);
                    c0321Mk2.f0(objK7);
                } else {
                    interfaceC1191fR3 = interfaceC1191fR11;
                }
                c0321Mk2.q(z);
                z2 = z;
                C80.d((NC) objK7, C2887xC.y(2035098735, new C2951xu(context, interfaceC1191fR3, 0), c0321Mk2), null, C2887xC.y(111848305, new C2571tu(interfaceC1191fR3, 1), c0321Mk2), AbstractC1124ek.g, AbstractC1124ek.h, null, j3, 0L, 0L, 0L, 0.0f, null, c0321Mk, 102435894, 16020);
                c0321Mk2 = c0321Mk;
            } else {
                z2 = z;
            }
            c0321Mk2.q(z2);
            c0321Mk2.V(-269281919);
            if (((Boolean) interfaceC1191fR7.getValue()).booleanValue()) {
                MP mpB2 = androidx.compose.foundation.a.b(fillElement, C0190Hi.b(0.12f, j2), c3025yj0);
                InterfaceC2235qO interfaceC2235qOD4 = AbstractC3109ze.d(c0159Gd2, z2);
                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();
                }
                f0(interfaceC2235qOD4, c0321Mk2, c0975d63);
                f0(awL6, c0321Mk2, c0975d64);
                if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode6))) {
                    AbstractC2462sn.r(iHashCode6, c0321Mk2, iHashCode6, c0975d68);
                }
                f0(mpF6, c0321Mk2, c0975d66);
                AbstractC1676kZ.a(null, AbstractC0762au.i, 0.0f, 0L, 0, 0.0f, c0321Mk, 48, 61);
                c0321Mk2 = c0321Mk;
                z3 = true;
                c0321Mk2.q(true);
            } else {
                z3 = true;
            }
            c0321Mk2.q(z2);
            c0321Mk2.q(z3);
            nc3 = nc4;
        }
        L00 l00S = c0321Mk2.s();
        if (l00S != null) {
            l00S.d = new C1432hu(nc3, i2, i3, 0);
        }
    }

    public static void o0(String str, int i2, List list) {
        if (list.size() == i2) {
            return;
        }
        throw new IllegalArgumentException(str + " operation requires " + i2 + " parameters found " + list.size());
    }

    public static final void p(String str, OC oc, NC nc, C0321Mk c0321Mk, int i2) {
        c0321Mk.X(2066191308);
        int i3 = i2 | (c0321Mk.f(str) ? 4 : 2);
        if ((i3 & 147) == 146 && c0321Mk.z()) {
            c0321Mk.Q();
        } else {
            c0321Mk.V(-1064981904);
            Object objK = c0321Mk.K();
            J7 j7 = C0140Fk.a;
            if (objK == j7) {
                objK = AbstractC0752ap.X(1380);
                c0321Mk.f0(objK);
            }
            InterfaceC1191fR interfaceC1191fR = (InterfaceC1191fR) objK;
            Object objH = AbstractC2462sn.h(-1064980275, c0321Mk, false);
            if (objH == j7) {
                objH = AbstractC0752ap.X(1);
                c0321Mk.f0(objH);
            }
            InterfaceC1191fR interfaceC1191fR2 = (InterfaceC1191fR) objH;
            Object objH2 = AbstractC2462sn.h(-1064978803, c0321Mk, false);
            if (objH2 == j7) {
                objH2 = AbstractC0752ap.X(1);
                c0321Mk.f0(objH2);
            }
            InterfaceC1191fR interfaceC1191fR3 = (InterfaceC1191fR) objH2;
            c0321Mk.q(false);
            c0321Mk.V(-1064976476);
            boolean z = (i3 & 14) == 4;
            Object objK2 = c0321Mk.K();
            if (z || objK2 == j7) {
                C3046yu c3046yu = new C3046yu(str, interfaceC1191fR, interfaceC1191fR2, interfaceC1191fR3, null, 0);
                interfaceC1191fR = interfaceC1191fR;
                interfaceC1191fR2 = interfaceC1191fR2;
                c0321Mk.f0(c3046yu);
                objK2 = c3046yu;
            }
            c0321Mk.q(false);
            AbstractC0249Jp.g(str, c0321Mk, (SC) objK2);
            As0.a(nc, null, C2887xC.y(-1156639517, new C0046Bu(interfaceC1191fR, interfaceC1191fR2, interfaceC1191fR3, nc, oc, 0), c0321Mk), c0321Mk, 390, 2);
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C1526iu(str, oc, nc, i2, 0);
        }
    }

    public static void p0(String str, int i2, List list) {
        if (list.size() >= i2) {
            return;
        }
        throw new IllegalArgumentException(str + " operation requires at least " + i2 + " parameters found " + list.size());
    }

    public static final void q(int i2, C0321Mk c0321Mk) {
        c0321Mk.X(-853793805);
        if (i2 == 0 && c0321Mk.z()) {
            c0321Mk.Q();
        } else {
            MP mpC = androidx.compose.foundation.layout.c.c(JP.a, 2);
            long j = AbstractC0762au.g;
            AbstractC3109ze.a(androidx.compose.foundation.a.a(mpC, J7.r(AbstractC0008Ai.S(new C0190Hi(j), new C0190Hi(j)))), c0321Mk, 6);
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new X8(i2, 5);
        }
    }

    public static void q0(int i2, String str, ArrayList arrayList) {
        if (arrayList.size() <= i2) {
            return;
        }
        throw new IllegalArgumentException(str + " operation requires at most " + i2 + " parameters found " + arrayList.size());
    }

    public static final void r(final int i2, final String str, final boolean z, C0321Mk c0321Mk, final int i3) {
        C0321Mk c0321Mk2 = c0321Mk;
        c0321Mk2.X(776977443);
        if ((i3 & 147) == 146 && c0321Mk2.z()) {
            c0321Mk2.Q();
        } else {
            C0107Ed c0107Ed = C0669Zu.z;
            MP mpM = androidx.compose.foundation.layout.c.m(90);
            C0579Wi c0579WiA = AbstractC0527Ui.a(AbstractC0981d9.c, c0107Ed, c0321Mk2, 48);
            int iHashCode = Long.hashCode(c0321Mk2.R);
            AW awL = c0321Mk2.l();
            MP mpF = AbstractC1692kh0.F(c0321Mk2, mpM);
            InterfaceC0062Ck.b.getClass();
            C0744al c0744al = C0036Bk.b;
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al);
            } else {
                c0321Mk2.i0();
            }
            f0(c0579WiA, c0321Mk2, C0036Bk.f);
            f0(awL, c0321Mk2, C0036Bk.e);
            C0975d6 c0975d6 = C0036Bk.i;
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode))) {
                AbstractC2462sn.r(iHashCode, c0321Mk2, iHashCode, c0975d6);
            }
            f0(mpF, c0321Mk2, C0036Bk.c);
            Nb0.a(null, AbstractC2397s30.a, z ? AbstractC0762au.h : AbstractC0762au.f, 0L, 0.0f, z ? 6 : 0, AbstractC1155f00.a(1, AbstractC0762au.g), C2887xC.y(-1582460110, new C0072Cu(i2, z), c0321Mk2), c0321Mk2, 14155776, 25);
            C2887xC.e(c0321Mk2, androidx.compose.foundation.layout.c.c(JP.a, 4));
            Ke0.b(str, null, z ? AbstractC0762au.d : AbstractC0762au.e, C1884mi0.C(10), null, 0L, new Yc0(3), 0L, 2, false, 2, 0, null, c0321Mk, 24582, 24960, 240618);
            c0321Mk2 = c0321Mk;
            c0321Mk2.q(true);
        }
        L00 l00S = c0321Mk2.s();
        if (l00S != null) {
            l00S.d = new SC(z, str, i2, i3) { // from class: o.ku
                public final /* synthetic */ int l;
                public final /* synthetic */ String m;
                public final /* synthetic */ boolean n;

                @Override // o.SC
                public final Object f(Object obj, Object obj2) {
                    ((Integer) obj2).getClass();
                    int iD = AbstractC1904ms0.D(439);
                    AbstractC2378rs0.r(this.l, this.m, this.n, (C0321Mk) obj, iD);
                    return Oh0.a;
                }
            };
        }
    }

    public static boolean r0(InterfaceC1991no0 interfaceC1991no0) {
        if (interfaceC1991no0 == null) {
            return false;
        }
        Double dZzd = interfaceC1991no0.zzd();
        return !dZzd.isNaN() && dZzd.doubleValue() >= 0.0d && dZzd.equals(Double.valueOf(Math.floor(dZzd.doubleValue())));
    }

    public static final void s(int i2, C0321Mk c0321Mk) {
        C0321Mk c0321Mk2 = c0321Mk;
        c0321Mk2.X(257716134);
        if (i2 == 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;
            f0(c0579WiA, c0321Mk2, c0975d6);
            C0975d6 c0975d62 = C0036Bk.e;
            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;
            f0(mpF, c0321Mk2, c0975d64);
            Ke0.b("مرحله ۱ از ۳", null, AbstractC0762au.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();
            }
            f0(c3062z30A, c0321Mk2, c0975d6);
            f0(awL2, c0321Mk2, c0975d62);
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode2))) {
                AbstractC2462sn.r(iHashCode2, c0321Mk2, iHashCode2, c0975d63);
            }
            f0(mpF2, c0321Mk2, c0975d64);
            r(1, "اطلاعات هویتی", true, c0321Mk2, 438);
            q(0, c0321Mk2);
            r(2, "آپلود مدارک", false, c0321Mk2, 438);
            q(0, c0321Mk2);
            r(3, "پرداخت مبلغ", false, c0321Mk2, 438);
            c0321Mk2.q(true);
            c0321Mk2.q(true);
        }
        L00 l00S = c0321Mk2.s();
        if (l00S != null) {
            l00S.d = new X8(i2, 6);
        }
    }

    public static Qo0 s0(String str) throws NumberFormatException {
        Qo0 qo0 = null;
        if (str != null && !str.isEmpty()) {
            qo0 = (Qo0) Qo0.w0.get(Integer.valueOf(Integer.parseInt(str)));
        }
        if (qo0 != null) {
            return qo0;
        }
        throw new IllegalArgumentException(AbstractC2462sn.u("Unsupported commandId ", str));
    }

    public static C2724vb0 t() {
        return new C2724vb0(null);
    }

    public static boolean t0(InterfaceC1991no0 interfaceC1991no0, InterfaceC1991no0 interfaceC1991no02) {
        if (!interfaceC1991no0.getClass().equals(interfaceC1991no02.getClass())) {
            return false;
        }
        if ((interfaceC1991no0 instanceof C2655uo0) || (interfaceC1991no0 instanceof C1516io0)) {
            return true;
        }
        if (!(interfaceC1991no0 instanceof Wn0)) {
            return interfaceC1991no0 instanceof C2560to0 ? interfaceC1991no0.zzc().equals(interfaceC1991no02.zzc()) : interfaceC1991no0 instanceof Rn0 ? interfaceC1991no0.zze().equals(interfaceC1991no02.zze()) : interfaceC1991no0 == interfaceC1991no02;
        }
        if (Double.isNaN(interfaceC1991no0.zzd().doubleValue()) || Double.isNaN(interfaceC1991no02.zzd().doubleValue())) {
            return false;
        }
        return interfaceC1991no0.zzd().equals(interfaceC1991no02.zzd());
    }

    public static final long u(int i2, int i3) {
        if (i2 < 0 || i3 < 0) {
            AbstractC2228qH.a("start and end cannot be negative. [start: " + i2 + ", end: " + i3 + ']');
        }
        long j = (i3 & 4294967295L) | (i2 << 32);
        int i4 = Ue0.c;
        return j;
    }

    public static int u0(double d2) {
        if (Double.isNaN(d2) || Double.isInfinite(d2) || d2 == 0.0d) {
            return 0;
        }
        return (int) (((d2 > 0.0d ? 1 : -1) * Math.floor(Math.abs(d2))) % 4.294967296E9d);
    }

    public static final void v(Context context, NC nc, C2328rN c2328rN, InterfaceC1191fR interfaceC1191fR) {
        ArrayList arrayList = new ArrayList();
        if (Co0.l(context, "android.permission.READ_CONTACTS") != 0) {
            arrayList.add("android.permission.READ_CONTACTS");
        }
        if (Co0.l(context, "android.permission.READ_PHONE_STATE") != 0) {
            arrayList.add("android.permission.READ_PHONE_STATE");
        }
        if (Build.VERSION.SDK_INT >= 26 && Co0.l(context, "android.permission.READ_PHONE_NUMBERS") != 0) {
            arrayList.add("android.permission.READ_PHONE_NUMBERS");
        }
        if (Co0.l(context, "android.permission.CALL_PHONE") != 0) {
            arrayList.add("android.permission.CALL_PHONE");
        }
        if (arrayList.isEmpty()) {
            nc.a();
        } else {
            interfaceC1191fR.setValue(nc);
            c2328rN.a(arrayList.toArray(new String[0]));
        }
    }

    public static double v0(double d2) {
        if (Double.isNaN(d2)) {
            return 0.0d;
        }
        if (Double.isInfinite(d2) || d2 == 0.0d || d2 == 0.0d) {
            return d2;
        }
        return (d2 > 0.0d ? 1 : -1) * Math.floor(Math.abs(d2));
    }

    public static final int w(MK mk, long j, Qj0 qj0) {
        long jV;
        int iP;
        Oe0 oe0D = mk.d();
        if (oe0D != null) {
            C2331rQ c2331rQ = oe0D.a.b;
            InterfaceC1184fK interfaceC1184fKC = mk.c();
            if (interfaceC1184fKC != null && (iP = P(c2331rQ, (jV = interfaceC1184fKC.v(j)), qj0)) != -1) {
                return c2331rQ.g(C1765lT.a(jV, (c2331rQ.b(iP) + c2331rQ.f(iP)) / 2.0f, 1));
            }
        }
        return -1;
    }

    public static Object w0(InterfaceC1991no0 interfaceC1991no0) {
        if (InterfaceC1991no0.e.equals(interfaceC1991no0)) {
            return null;
        }
        if (InterfaceC1991no0.d.equals(interfaceC1991no0)) {
            return "";
        }
        if (interfaceC1991no0 instanceof C1325go0) {
            return x0((C1325go0) interfaceC1991no0);
        }
        if (!(interfaceC1991no0 instanceof Pn0)) {
            return !interfaceC1991no0.zzd().isNaN() ? interfaceC1991no0.zzd() : interfaceC1991no0.zzc();
        }
        ArrayList arrayList = new ArrayList();
        Pn0 pn0 = (Pn0) interfaceC1991no0;
        int i2 = 0;
        while (i2 < pn0.l()) {
            if (i2 >= pn0.l()) {
                StringBuilder sb = new StringBuilder(String.valueOf(i2).length() + 21);
                sb.append("Out of bounds index: ");
                sb.append(i2);
                throw new NoSuchElementException(sb.toString());
            }
            int i3 = i2 + 1;
            Object objW0 = w0(pn0.m(i2));
            if (objW0 != null) {
                arrayList.add(objW0);
            }
            i2 = i3;
        }
        return arrayList;
    }

    public static final long x(MK mk, T00 t00, T00 t002, int i2) {
        long jU = U(mk, t00, i2);
        if (Ue0.c(jU)) {
            return Ue0.b;
        }
        long jU2 = U(mk, t002, i2);
        if (Ue0.c(jU2)) {
            return Ue0.b;
        }
        int i3 = (int) (jU >> 32);
        int i4 = (int) (jU2 & 4294967295L);
        return u(Math.min(i3, i3), Math.max(i4, i4));
    }

    public static HashMap x0(C1325go0 c1325go0) {
        HashMap map = new HashMap();
        ArrayList arrayList = new ArrayList(c1325go0.l.keySet());
        int size = arrayList.size();
        int i2 = 0;
        while (i2 < size) {
            Object obj = arrayList.get(i2);
            i2++;
            String str = (String) obj;
            Object objW0 = w0(c1325go0.c(str));
            if (objW0 != null) {
                map.put(str, objW0);
            }
        }
        return map;
    }

    /* 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 y(o.C2352rf0 r4, o.C2087op r5, java.lang.Throwable r6, o.AbstractC0298Lm r7) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException {
        /*
            boolean r0 = r7 instanceof o.C2578tz
            if (r0 == 0) goto L13
            r0 = r7
            o.tz r0 = (o.C2578tz) 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.tz r0 = new o.tz
            r0.<init>(r7)
        L18:
            java.lang.Object r7 = r0.p
            int r1 = r0.q
            r2 = 1
            if (r1 == 0) goto L31
            if (r1 != r2) goto L29
            java.lang.Throwable r6 = r0.f736o
            o.IJ.H(r7)     // Catch: java.lang.Throwable -> L27
            goto L41
        L27:
            r4 = move-exception
            goto L44
        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(r7)
            r0.f736o = r6     // Catch: java.lang.Throwable -> L27
            r0.q = r2     // Catch: java.lang.Throwable -> L27
            java.lang.Object r4 = r5.d(r4, r6, r0)     // Catch: java.lang.Throwable -> L27
            o.Dn r5 = o.EnumC0091Dn.l
            if (r4 != r5) goto L41
            return r5
        L41:
            o.Oh0 r4 = o.Oh0.a
            return r4
        L44:
            if (r6 == 0) goto L4b
            if (r6 == r4) goto L4b
            o.C80.i(r4, r6)
        L4b:
            throw r4
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC2378rs0.y(o.rf0, o.op, java.lang.Throwable, o.Lm):java.lang.Object");
    }

    public static void y0(C2062oc0 c2062oc0) {
        int iU0 = u0(c2062oc0.n("runtime.counter").zzd().doubleValue() + 1.0d);
        if (iU0 > 1000000) {
            throw new IllegalStateException("Instructions allowed exceeded");
        }
        c2062oc0.l("runtime.counter", new Wn0(Double.valueOf(iU0)));
    }

    public static final boolean z(Ne0 ne0, int i2) {
        C2331rQ c2331rQ = ne0.b;
        int iD = c2331rQ.d(i2);
        return i2 == ne0.g(iD) || i2 == c2331rQ.c(iD, false) ? ne0.h(i2) != ne0.a(i2) : ne0.a(i2) != ne0.a(i2 - 1);
    }

    public abstract int D(ViewGroup.MarginLayoutParams marginLayoutParams);

    public abstract float E(int i2);

    public abstract int M();

    public abstract int N();

    public abstract int Q();

    public abstract int R();

    public abstract int S(View view);

    public abstract int T(CoordinatorLayout coordinatorLayout);

    public abstract int W();

    public abstract boolean Y(float f2);

    public abstract boolean a0(View view);

    public abstract boolean b0(float f2, float f3);

    public abstract boolean g0(View view, float f2);

    public abstract void m0(ViewGroup.MarginLayoutParams marginLayoutParams, int i2, int i3);
}
