package o;

import android.content.Context;
import android.os.Build;
import androidx.compose.foundation.layout.FillElement;
import com.google.android.gms.common.R;
import java.util.ArrayList;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class Gi0 {
    public static final long a = AbstractC0752ap.c(4279910449L);
    public static final long b = AbstractC0752ap.c(4281098056L);
    public static final long c = AbstractC0752ap.c(4283072611L);
    public static final long d = AbstractC0752ap.c(4292734693L);
    public static final long e = AbstractC0752ap.c(4292274141L);
    public static final long f = C0190Hi.b(0.95f, C0190Hi.c);
    public static final long g = AbstractC0752ap.c(4290787627L);
    public static final /* synthetic */ int h = 0;

    public static final void a(String str, String str2, CG cg, boolean z, NC nc, C0321Mk c0321Mk, int i) {
        c0321Mk.X(1242360102);
        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(457696804);
            boolean z2 = (i2 & 57344) == 16384;
            Object objK = c0321Mk.K();
            if (z2 || objK == C0140Fk.a) {
                objK = new C0064Cm(5, 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(848893720, new C0435Qu(cg, z, str, str2, 1), c0321Mk), c0321Mk, 196608, 16);
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C0176Gu(str, str2, cg, z, nc, i, 1);
        }
    }

    public static final void b(int i, int i2, C0321Mk c0321Mk, NC nc) {
        int i3;
        NC nc2;
        Context context;
        InterfaceC1191fR interfaceC1191fR;
        InterfaceC1191fR interfaceC1191fR2;
        InterfaceC1191fR interfaceC1191fR3;
        InterfaceC1191fR interfaceC1191fR4;
        C0744al c0744al;
        C0975d6 c0975d6;
        NC nc3;
        InterfaceC1191fR interfaceC1191fR5;
        C0321Mk c0321Mk2 = c0321Mk;
        c0321Mk2.X(1706455321);
        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();
            nc3 = nc;
        } else {
            Object obj = C0140Fk.a;
            if (i4 != 0) {
                c0321Mk2.V(1914456042);
                Object objK = c0321Mk2.K();
                if (objK == obj) {
                    objK = new C0781b40(13);
                    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 interfaceC0065Cn = (InterfaceC0065Cn) objK2;
            c0321Mk2.V(1914459567);
            Object objK3 = c0321Mk2.K();
            if (objK3 == obj) {
                objK3 = AbstractC0752ap.X(null);
                c0321Mk2.f0(objK3);
            }
            InterfaceC1191fR interfaceC1191fR6 = (InterfaceC1191fR) objK3;
            Object objH = AbstractC2462sn.h(1914461455, c0321Mk2, false);
            if (objH == obj) {
                objH = AbstractC0752ap.X(null);
                c0321Mk2.f0(objH);
            }
            InterfaceC1191fR interfaceC1191fR7 = (InterfaceC1191fR) objH;
            Object objH2 = AbstractC2462sn.h(1914463375, c0321Mk2, false);
            if (objH2 == obj) {
                objH2 = AbstractC0752ap.X(null);
                c0321Mk2.f0(objH2);
            }
            InterfaceC1191fR interfaceC1191fR8 = (InterfaceC1191fR) objH2;
            Object objH3 = AbstractC2462sn.h(1914465398, c0321Mk2, false);
            if (objH3 == obj) {
                objH3 = AbstractC0752ap.X(null);
                c0321Mk2.f0(objH3);
            }
            InterfaceC1191fR interfaceC1191fR9 = (InterfaceC1191fR) objH3;
            Object objH4 = AbstractC2462sn.h(1914467474, c0321Mk2, false);
            if (objH4 == obj) {
                objH4 = AbstractC0752ap.X(null);
                c0321Mk2.f0(objH4);
            }
            InterfaceC1191fR interfaceC1191fR10 = (InterfaceC1191fR) objH4;
            Object objH5 = AbstractC2462sn.h(1914469514, c0321Mk2, false);
            if (objH5 == obj) {
                objH5 = AbstractC0752ap.X(Boolean.FALSE);
                c0321Mk2.f0(objH5);
            }
            InterfaceC1191fR interfaceC1191fR11 = (InterfaceC1191fR) objH5;
            Object objH6 = AbstractC2462sn.h(1914473048, c0321Mk2, false);
            if (objH6 == obj) {
                objH6 = AbstractC0752ap.X(null);
                c0321Mk2.f0(objH6);
            }
            InterfaceC1191fR interfaceC1191fR12 = (InterfaceC1191fR) objH6;
            Object objH7 = AbstractC2462sn.h(1914476422, c0321Mk2, false);
            if (objH7 == obj) {
                objH7 = AbstractC0752ap.X(0);
                c0321Mk2.f0(objH7);
            }
            InterfaceC1191fR interfaceC1191fR13 = (InterfaceC1191fR) objH7;
            Object objH8 = AbstractC2462sn.h(1914479690, c0321Mk2, false);
            if (objH8 == obj) {
                objH8 = AbstractC0752ap.X(Boolean.FALSE);
                c0321Mk2.f0(objH8);
            }
            InterfaceC1191fR interfaceC1191fR14 = (InterfaceC1191fR) objH8;
            c0321Mk2.q(false);
            C2867x1 c2867x1 = new C2867x1(1);
            c0321Mk2.V(1914488071);
            boolean zH = c0321Mk2.h(context2);
            Object objK4 = c0321Mk2.K();
            if (zH || objK4 == obj) {
                C0124Eu c0124Eu = new C0124Eu(context2, interfaceC1191fR12, interfaceC1191fR13, interfaceC1191fR10, interfaceC1191fR14, 2);
                context = context2;
                interfaceC1191fR = interfaceC1191fR12;
                interfaceC1191fR2 = interfaceC1191fR13;
                interfaceC1191fR3 = interfaceC1191fR14;
                c0321Mk2.f0(c0124Eu);
                objK4 = c0124Eu;
            } else {
                context = context2;
                interfaceC1191fR = interfaceC1191fR12;
                interfaceC1191fR2 = interfaceC1191fR13;
                interfaceC1191fR3 = interfaceC1191fR14;
            }
            c0321Mk2.q(false);
            C2328rN c2328rNZ = C2887xC.z(c2867x1, (OC) objK4, c0321Mk2, 0);
            C2867x1 c2867x12 = new C2867x1(0);
            c0321Mk2.V(1914582969);
            Object objK5 = c0321Mk2.K();
            if (objK5 == obj) {
                interfaceC1191fR4 = interfaceC1191fR7;
                C0150Fu c0150Fu = new C0150Fu(interfaceC1191fR9, interfaceC1191fR6, interfaceC1191fR4, interfaceC1191fR8, interfaceC1191fR10, 1);
                interfaceC1191fR9 = interfaceC1191fR9;
                interfaceC1191fR6 = interfaceC1191fR6;
                objK5 = c0150Fu;
                interfaceC1191fR10 = interfaceC1191fR10;
                c0321Mk2.f0(objK5);
            } else {
                interfaceC1191fR4 = interfaceC1191fR7;
            }
            c0321Mk2.q(false);
            C2328rN c2328rNZ2 = C2887xC.z(c2867x12, (OC) objK5, c0321Mk2, 48);
            FillElement fillElement = androidx.compose.foundation.layout.c.b;
            long j = d;
            MP mpA = androidx.compose.foundation.a.a(fillElement, J7.t(AbstractC0008Ai.S(new C0190Hi(j), new C0190Hi(e))));
            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);
            JP jp = JP.a;
            MP mpC = androidx.compose.foundation.layout.c.c(androidx.compose.foundation.layout.c.b(jp, 1.0f), 260);
            C0159Gd c0159Gd2 = C0669Zu.n;
            androidx.compose.foundation.layout.a aVar = androidx.compose.foundation.layout.a.a;
            MP mpA2 = aVar.a(mpC, c0159Gd2);
            InterfaceC2235qO interfaceC2235qOD2 = AbstractC3109ze.d(c0159Gd, false);
            int iHashCode2 = Long.hashCode(c0321Mk2.R);
            AW awL2 = c0321Mk2.l();
            MP mpF2 = AbstractC1692kh0.F(c0321Mk2, mpA2);
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al2);
            } else {
                c0321Mk2.i0();
            }
            AbstractC2378rs0.f0(interfaceC2235qOD2, 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);
            long j2 = b;
            AbstractC3109ze.a(androidx.compose.foundation.a.a(fillElement, J7.r(AbstractC0008Ai.S(new C0190Hi(j2), new C0190Hi(a), new C0190Hi(AbstractC0752ap.c(4279052312L))))), c0321Mk2, 6);
            YT.c(AbstractC0752ap.Y(R.drawable.vam_asan_header, c0321Mk2), "وام آسان - هدر", fillElement, null, C2460sm.a, 0.28f, c0321Mk2, 221616, 72);
            long j3 = C0190Hi.b;
            AbstractC3109ze.a(androidx.compose.foundation.a.a(fillElement, J7.t(AbstractC0008Ai.S(new C0190Hi(C0190Hi.b(0.25f, j3)), new C0190Hi(C0190Hi.f)))), c0321Mk2, 6);
            float f2 = 40;
            Nb0.a(androidx.compose.foundation.layout.c.c(androidx.compose.foundation.layout.c.b(aVar.a(jp, C0669Zu.t), 1.0f), 50), AbstractC2397s30.b(f2, f2), j, 0L, 0.0f, 0, null, AbstractC2077ok.a, c0321Mk, 12779904, 88);
            c0321Mk.q(true);
            MP mpC2 = androidx.compose.foundation.layout.b.c(aVar.a(androidx.compose.foundation.layout.b.g(androidx.compose.foundation.layout.c.b(jp, 1.0f), 24, 0.0f, 2), c0159Gd2), 150);
            InterfaceC2235qO interfaceC2235qOD3 = AbstractC3109ze.d(c0159Gd, false);
            int iHashCode3 = Long.hashCode(c0321Mk.R);
            AW awL3 = c0321Mk.l();
            MP mpF3 = 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(awL3, c0321Mk, c0975d63);
            if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode3))) {
                c0975d6 = c0975d64;
                AbstractC2462sn.r(iHashCode3, c0321Mk, iHashCode3, c0975d6);
            } else {
                c0975d6 = c0975d64;
            }
            AbstractC2378rs0.f0(mpF3, c0321Mk, c0975d65);
            float f3 = 26;
            MP mpN = Co0.N(androidx.compose.foundation.layout.c.b(jp, 1.0f), 20, AbstractC2397s30.a(f3));
            C2302r30 c2302r30A = AbstractC2397s30.a(f3);
            C0058Cg c0058CgI = C2887xC.i(f, c0321Mk, 6);
            InterfaceC1191fR interfaceC1191fR15 = interfaceC1191fR3;
            C0383Ou c0383Ou = new C0383Ou(context, c2328rNZ, c2328rNZ2, interfaceC0065Cn, nc2, interfaceC1191fR10, interfaceC1191fR6, interfaceC1191fR9, interfaceC1191fR2, interfaceC1191fR15, interfaceC1191fR, interfaceC1191fR4, interfaceC1191fR8, interfaceC1191fR11, 1);
            NC nc4 = nc2;
            C0975d6 c0975d66 = c0975d6;
            C0744al c0744al3 = c0744al;
            YT.a(mpN, c2302r30A, c0058CgI, null, null, C2887xC.y(-2096712124, c0383Ou, c0321Mk), c0321Mk, 196608, 24);
            c0321Mk2 = c0321Mk;
            Nb0.a(androidx.compose.foundation.layout.b.c(aVar.a(androidx.compose.foundation.layout.c.h(jp, 96), c0159Gd2), -48), AbstractC2397s30.a, C0190Hi.c, 0L, 0.0f, 12, null, AbstractC2077ok.b, c0321Mk2, 12779904, 88);
            c0321Mk2.q(true);
            c0321Mk2.V(337392846);
            if (((Boolean) interfaceC1191fR11.getValue()).booleanValue()) {
                MP mpB = androidx.compose.foundation.a.b(fillElement, C0190Hi.b(0.1f, j3), AbstractC2841wm0.j);
                InterfaceC2235qO interfaceC2235qOD4 = AbstractC3109ze.d(C0669Zu.q, false);
                int iHashCode4 = Long.hashCode(c0321Mk2.R);
                AW awL4 = c0321Mk2.l();
                MP mpF4 = AbstractC1692kh0.F(c0321Mk2, mpB);
                c0321Mk2.Y();
                if (c0321Mk2.Q) {
                    c0321Mk2.k(c0744al3);
                } else {
                    c0321Mk2.i0();
                }
                AbstractC2378rs0.f0(interfaceC2235qOD4, c0321Mk2, c0975d62);
                AbstractC2378rs0.f0(awL4, c0321Mk2, c0975d63);
                if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode4))) {
                    AbstractC2462sn.r(iHashCode4, c0321Mk2, iHashCode4, c0975d66);
                }
                AbstractC2378rs0.f0(mpF4, c0321Mk2, c0975d65);
                AbstractC1676kZ.a(null, j2, 0.0f, 0L, 0, 0.0f, c0321Mk, 48, 61);
                c0321Mk2 = c0321Mk;
                c0321Mk2.q(true);
            }
            c0321Mk2.q(false);
            c0321Mk2.V(337406714);
            if (((Boolean) interfaceC1191fR15.getValue()).booleanValue()) {
                c0321Mk2.V(337408069);
                Object objK6 = c0321Mk2.K();
                if (objK6 == obj) {
                    interfaceC1191fR5 = interfaceC1191fR15;
                    objK6 = new D60(interfaceC1191fR5, 10);
                    c0321Mk2.f0(objK6);
                } else {
                    interfaceC1191fR5 = interfaceC1191fR15;
                }
                c0321Mk2.q(false);
                C80.d((NC) objK6, C2887xC.y(526334473, new C2951xu(context, interfaceC1191fR5, 6), c0321Mk2), null, C2887xC.y(545875595, new C2571tu(interfaceC1191fR5, 8), c0321Mk2), AbstractC2077ok.e, AbstractC2077ok.f, null, 0L, 0L, 0L, 0L, 0.0f, null, c0321Mk, 1772598, 16276);
                c0321Mk2 = c0321Mk;
            }
            c0321Mk2.q(false);
            c0321Mk2.q(true);
            nc3 = nc4;
        }
        L00 l00S = c0321Mk2.s();
        if (l00S != null) {
            l00S.d = new C1432hu(nc3, i, i2, 6);
        }
    }

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

    public static final void d(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]));
    }
}
