package v0;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import y0.h2;
import y0.i2;
import y0.l2;
import y0.x2;

/* loaded from: classes.dex */
public abstract class i0 {

    /* renamed from: a, reason: collision with root package name */
    private static final h2 f38103a = y0.x.f(a.f38104p);

    /* loaded from: classes.dex */
    static final class a extends kotlin.jvm.internal.v implements dn.a {

        /* renamed from: p, reason: collision with root package name */
        public static final a f38104p = new a();

        a() {
            super(0);
        }

        @Override // dn.a
        public final Boolean invoke() {
            return Boolean.FALSE;
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class b extends kotlin.jvm.internal.v implements dn.p {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ e2 f38105p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ dn.p f38106q;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(e2 e2Var, dn.p pVar) {
            super(2);
            this.f38105p = e2Var;
            this.f38106q = pVar;
        }

        public final void a(y0.m mVar, int i10) {
            if ((i10 & 3) == 2 && mVar.v()) {
                mVar.A();
                return;
            }
            if (y0.p.H()) {
                y0.p.Q(-1066563262, i10, -1, "androidx.compose.material3.MaterialTheme.<anonymous> (MaterialTheme.kt:68)");
            }
            z1.a(this.f38105p.c(), this.f38106q, mVar, 0);
            if (y0.p.H()) {
                y0.p.P();
            }
        }

        @Override // dn.p
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            a((y0.m) obj, ((Number) obj2).intValue());
            return rm.n0.f34904a;
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class c extends kotlin.jvm.internal.v implements dn.p {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ m f38107p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ p1 f38108q;

        /* renamed from: r, reason: collision with root package name */
        final /* synthetic */ e2 f38109r;

        /* renamed from: s, reason: collision with root package name */
        final /* synthetic */ dn.p f38110s;

        /* renamed from: t, reason: collision with root package name */
        final /* synthetic */ int f38111t;

        /* renamed from: u, reason: collision with root package name */
        final /* synthetic */ int f38112u;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(m mVar, p1 p1Var, e2 e2Var, dn.p pVar, int i10, int i11) {
            super(2);
            this.f38107p = mVar;
            this.f38108q = p1Var;
            this.f38109r = e2Var;
            this.f38110s = pVar;
            this.f38111t = i10;
            this.f38112u = i11;
        }

        public final void a(y0.m mVar, int i10) {
            i0.a(this.f38107p, this.f38108q, this.f38109r, this.f38110s, mVar, l2.a(this.f38111t | 1), this.f38112u);
        }

        @Override // dn.p
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            a((y0.m) obj, ((Number) obj2).intValue());
            return rm.n0.f34904a;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:53:0x008e, code lost:
    
        if ((r15 & 4) != 0) goto L70;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void a(m mVar, p1 p1Var, e2 e2Var, dn.p pVar, y0.m mVar2, int i10, int i11) {
        int i12;
        y0.m r10 = mVar2.r(-2127166334);
        if ((i10 & 6) == 0) {
            i12 = (((i11 & 1) == 0 && r10.R(mVar)) ? 4 : 2) | i10;
        } else {
            i12 = i10;
        }
        if ((i10 & 48) == 0) {
            i12 |= ((i11 & 2) == 0 && r10.R(p1Var)) ? 32 : 16;
        }
        if ((i10 & 384) == 0) {
            i12 |= ((i11 & 4) == 0 && r10.R(e2Var)) ? 256 : 128;
        }
        if ((i11 & 8) != 0) {
            i12 |= 3072;
        } else if ((i10 & 3072) == 0) {
            i12 |= r10.m(pVar) ? 2048 : UserMetadata.MAX_ATTRIBUTE_SIZE;
        }
        if ((i12 & 1171) == 1170 && r10.v()) {
            r10.A();
        } else {
            r10.q();
            if ((i10 & 1) == 0 || r10.E()) {
                if ((i11 & 1) != 0) {
                    mVar = h0.f38095a.a(r10, 6);
                    i12 &= -15;
                }
                if ((i11 & 2) != 0) {
                    p1Var = h0.f38095a.b(r10, 6);
                    i12 &= -113;
                }
                if ((i11 & 4) != 0) {
                    e2Var = h0.f38095a.c(r10, 6);
                    i12 &= -897;
                }
                int i13 = i12;
                r10.P();
                if (y0.p.H()) {
                    y0.p.Q(-2127166334, i13, -1, "androidx.compose.material3.MaterialTheme (MaterialTheme.kt:55)");
                }
                y0.x.b(new i2[]{n.g().d(mVar), androidx.compose.foundation.j.a().d(i1.c(false, BitmapDescriptorFactory.HUE_RED, 0L, r10, 0, 7)), u0.s.d().d(o.f38305b), q1.c().d(p1Var), r0.k0.b().d(b(mVar, r10, i13 & 14)), f2.b().d(e2Var)}, g1.c.e(-1066563262, true, new b(e2Var, pVar), r10, 54), r10, i2.f51577i | 48);
                if (y0.p.H()) {
                    y0.p.P();
                }
            } else {
                r10.A();
                if ((i11 & 1) != 0) {
                    i12 &= -15;
                }
                if ((i11 & 2) != 0) {
                    i12 &= -113;
                }
            }
        }
        m mVar3 = mVar;
        p1 p1Var2 = p1Var;
        e2 e2Var2 = e2Var;
        x2 y10 = r10.y();
        if (y10 != null) {
            y10.a(new c(mVar3, p1Var2, e2Var2, pVar, i10, i11));
        }
    }

    public static final r0.j0 b(m mVar, y0.m mVar2, int i10) {
        if (y0.p.H()) {
            y0.p.Q(1866455512, i10, -1, "androidx.compose.material3.rememberTextSelectionColors (MaterialTheme.kt:159)");
        }
        long E = mVar.E();
        boolean j10 = mVar2.j(E);
        Object f10 = mVar2.f();
        if (j10 || f10 == y0.m.f51621a.a()) {
            f10 = new r0.j0(E, s1.g0.l(E, 0.4f, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 14, null), null);
            mVar2.I(f10);
        }
        r0.j0 j0Var = (r0.j0) f10;
        if (y0.p.H()) {
            y0.p.P();
        }
        return j0Var;
    }
}
