package l7;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import h2.e0;
import j2.g;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import l1.c;
import o2.u;
import rm.n0;
import y0.d4;
import y0.l2;
import y0.x2;
import y0.y;
import y0.y3;
import z.a0;

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class a extends v implements dn.l {

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

        a() {
            super(1);
        }

        public final void a(u clearAndSetSemantics) {
            t.g(clearAndSetSemantics, "$this$clearAndSetSemantics");
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((u) obj);
            return n0.f34904a;
        }
    }

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

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

        b() {
            super(1);
        }

        public final void a(u clearAndSetSemantics) {
            t.g(clearAndSetSemantics, "$this$clearAndSetSemantics");
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((u) obj);
            return n0.f34904a;
        }
    }

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

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ l1.i f27729p;

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(l1.i iVar, boolean z10, int i10, int i11) {
            super(2);
            this.f27729p = iVar;
            this.f27730q = z10;
            this.f27731r = i10;
            this.f27732s = i11;
        }

        public final void a(y0.m mVar, int i10) {
            m.a(this.f27729p, this.f27730q, mVar, l2.a(this.f27731r | 1), this.f27732s);
        }

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

    /* JADX WARN: Removed duplicated region for block: B:15:0x01bf  */
    /* JADX WARN: Removed duplicated region for block: B:18:? A[RETURN, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:20:0x005d  */
    /* JADX WARN: Removed duplicated region for block: B:23:0x0065  */
    /* JADX WARN: Removed duplicated region for block: B:26:0x006e  */
    /* JADX WARN: Removed duplicated region for block: B:29:0x0077  */
    /* JADX WARN: Removed duplicated region for block: B:32:0x00e3  */
    /* JADX WARN: Removed duplicated region for block: B:35:0x00ef  */
    /* JADX WARN: Removed duplicated region for block: B:42:0x0139  */
    /* JADX WARN: Removed duplicated region for block: B:45:0x01b6  */
    /* JADX WARN: Removed duplicated region for block: B:46:0x0174  */
    /* JADX WARN: Removed duplicated region for block: B:48:0x00f3  */
    /* JADX WARN: Removed duplicated region for block: B:49:0x008b  */
    /* JADX WARN: Removed duplicated region for block: B:50:0x0067  */
    /* JADX WARN: Removed duplicated region for block: B:51:0x0061  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void a(l1.i iVar, boolean z10, y0.m mVar, int i10, int i11) {
        l1.i iVar2;
        int i12;
        boolean z11;
        l1.i iVar3;
        boolean z12;
        float f10;
        int a10;
        y0.m a11;
        x2 y10;
        y0.m r10 = mVar.r(577919247);
        int i13 = i11 & 1;
        if (i13 != 0) {
            i12 = i10 | 6;
            iVar2 = iVar;
        } else if ((i10 & 14) == 0) {
            iVar2 = iVar;
            i12 = (r10.R(iVar2) ? 4 : 2) | i10;
        } else {
            iVar2 = iVar;
            i12 = i10;
        }
        int i14 = i11 & 2;
        if (i14 != 0) {
            i12 |= 48;
        } else if ((i10 & 112) == 0) {
            z11 = z10;
            i12 |= r10.c(z11) ? 32 : 16;
            if ((i12 & 91) == 18 || !r10.v()) {
                iVar3 = i13 == 0 ? l1.i.f27362a : iVar2;
                z12 = i14 == 0 ? false : z11;
                if (y0.p.H()) {
                    y0.p.Q(577919247, i12, -1, "ca.canadapost.core.common.compose.components.CpcRadioButton (CpcRadioButton.kt:21)");
                }
                if (z12) {
                    r10.e(-596036284);
                    f10 = n7.a.f29827a.b(r10, 6).f();
                    r10.N();
                } else {
                    r10.e(-596036347);
                    f10 = n7.a.f29827a.b(r10, 6).j();
                    r10.N();
                }
                y3 c10 = y.c.c(f10, null, "selected", null, r10, 384, 10);
                n7.a aVar = n7.a.f29827a;
                l1.i y11 = androidx.compose.foundation.layout.o.y(androidx.compose.foundation.layout.o.o(iVar3, aVar.b(r10, 6).b()), null, false, 3, null);
                c.a aVar2 = l1.c.f27332a;
                e0 h10 = androidx.compose.foundation.layout.b.h(aVar2.o(), false);
                a10 = y0.j.a(r10, 0);
                y D = r10.D();
                l1.i e10 = l1.h.e(r10, y11);
                g.a aVar3 = j2.g.f23616d;
                dn.a a12 = aVar3.a();
                if (!(r10.w() instanceof y0.f)) {
                    y0.j.c();
                }
                r10.u();
                if (r10.n()) {
                    r10.F();
                } else {
                    r10.o(a12);
                }
                a11 = d4.a(r10);
                d4.b(a11, h10, aVar3.c());
                d4.b(a11, D, aVar3.e());
                dn.p b10 = aVar3.b();
                if (!a11.n() || !t.b(a11.f(), Integer.valueOf(a10))) {
                    a11.I(Integer.valueOf(a10));
                    a11.l(Integer.valueOf(a10), b10);
                }
                d4.b(a11, e10, aVar3.d());
                androidx.compose.foundation.layout.d dVar = androidx.compose.foundation.layout.d.f1828a;
                if (z12) {
                    r10.e(67409966);
                    a0.a(m2.e.c(h7.h.f21002j0, r10, 0), null, o2.l.a(androidx.compose.foundation.layout.o.o(dVar.a(l1.i.f27362a, aVar2.e()), aVar.b(r10, 6).j()), b.f27728p), null, null, BitmapDescriptorFactory.HUE_RED, null, r10, 56, 120);
                    r10.N();
                } else {
                    r10.e(67409623);
                    a0.a(m2.e.c(h7.h.f21004k0, r10, 0), null, o2.l.a(androidx.compose.foundation.layout.o.o(dVar.a(l1.i.f27362a, aVar2.e()), ((c3.h) c10.getValue()).y()), a.f27727p), null, null, BitmapDescriptorFactory.HUE_RED, null, r10, 56, 120);
                    r10.N();
                }
                r10.O();
                if (y0.p.H()) {
                    y0.p.P();
                }
            } else {
                r10.A();
                iVar3 = iVar2;
                z12 = z11;
            }
            y10 = r10.y();
            if (y10 == null) {
                y10.a(new c(iVar3, z12, i10, i11));
                return;
            }
            return;
        }
        z11 = z10;
        if ((i12 & 91) == 18) {
        }
        if (i13 == 0) {
        }
        if (i14 == 0) {
        }
        if (y0.p.H()) {
        }
        if (z12) {
        }
        y3 c102 = y.c.c(f10, null, "selected", null, r10, 384, 10);
        n7.a aVar4 = n7.a.f29827a;
        l1.i y112 = androidx.compose.foundation.layout.o.y(androidx.compose.foundation.layout.o.o(iVar3, aVar4.b(r10, 6).b()), null, false, 3, null);
        c.a aVar22 = l1.c.f27332a;
        e0 h102 = androidx.compose.foundation.layout.b.h(aVar22.o(), false);
        a10 = y0.j.a(r10, 0);
        y D2 = r10.D();
        l1.i e102 = l1.h.e(r10, y112);
        g.a aVar32 = j2.g.f23616d;
        dn.a a122 = aVar32.a();
        if (!(r10.w() instanceof y0.f)) {
        }
        r10.u();
        if (r10.n()) {
        }
        a11 = d4.a(r10);
        d4.b(a11, h102, aVar32.c());
        d4.b(a11, D2, aVar32.e());
        dn.p b102 = aVar32.b();
        if (!a11.n()) {
        }
        a11.I(Integer.valueOf(a10));
        a11.l(Integer.valueOf(a10), b102);
        d4.b(a11, e102, aVar32.d());
        androidx.compose.foundation.layout.d dVar2 = androidx.compose.foundation.layout.d.f1828a;
        if (z12) {
        }
        r10.O();
        if (y0.p.H()) {
        }
        y10 = r10.y();
        if (y10 == null) {
        }
    }
}
