package l7;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import e0.b;
import e0.e0;
import j2.g;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import l1.i;
import rm.n0;
import v0.z1;
import y0.d4;
import y0.l2;
import y0.x2;
import y0.y;

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

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

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

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

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(String str, dn.a aVar, String str2, dn.a aVar2, int i10, int i11) {
            super(2);
            this.f27760p = str;
            this.f27761q = aVar;
            this.f27762r = str2;
            this.f27763s = aVar2;
            this.f27764t = i10;
            this.f27765u = i11;
        }

        public final void a(y0.m mVar, int i10) {
            r.a(this.f27760p, this.f27761q, this.f27762r, this.f27763s, mVar, l2.a(this.f27764t | 1), this.f27765u);
        }

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(String str) {
            super(3);
            this.f27766p = str;
        }

        public final void a(e0 CpcPrimaryButton, y0.m mVar, int i10) {
            t.g(CpcPrimaryButton, "$this$CpcPrimaryButton");
            if ((i10 & 81) == 16 && mVar.v()) {
                mVar.A();
                return;
            }
            if (y0.p.H()) {
                y0.p.Q(133451376, i10, -1, "ca.canadapost.core.common.compose.components.CpcTwoButtonsArrangementMobile.<anonymous>.<anonymous> (CpcTwoButtonsArrangement.kt:40)");
            }
            z1.b(this.f27766p, null, 0L, 0L, null, null, null, 0L, null, b3.j.h(b3.j.f6691b.a()), 0L, 0, false, 0, 0, null, null, mVar, 0, 0, 130558);
            if (y0.p.H()) {
                y0.p.P();
            }
        }

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(String str) {
            super(3);
            this.f27767p = str;
        }

        public final void a(e0 CpcSecondaryButton, y0.m mVar, int i10) {
            t.g(CpcSecondaryButton, "$this$CpcSecondaryButton");
            if ((i10 & 81) == 16 && mVar.v()) {
                mVar.A();
                return;
            }
            if (y0.p.H()) {
                y0.p.Q(-707618726, i10, -1, "ca.canadapost.core.common.compose.components.CpcTwoButtonsArrangementMobile.<anonymous>.<anonymous> (CpcTwoButtonsArrangement.kt:49)");
            }
            z1.b(this.f27767p, null, 0L, 0L, null, null, null, 0L, null, b3.j.h(b3.j.f6691b.a()), 0L, 0, false, 0, 0, null, null, mVar, 0, 0, 130558);
            if (y0.p.H()) {
                y0.p.P();
            }
        }

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

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

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

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

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        d(String str, dn.a aVar, String str2, dn.a aVar2, int i10, int i11) {
            super(2);
            this.f27768p = str;
            this.f27769q = aVar;
            this.f27770r = str2;
            this.f27771s = aVar2;
            this.f27772t = i10;
            this.f27773u = i11;
        }

        public final void a(y0.m mVar, int i10) {
            r.b(this.f27768p, this.f27769q, this.f27770r, this.f27771s, mVar, l2.a(this.f27772t | 1), this.f27773u);
        }

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

    public static final void a(String primaryBtnStr, dn.a primaryBtnClickEvent, String str, dn.a aVar, y0.m mVar, int i10, int i11) {
        int i12;
        t.g(primaryBtnStr, "primaryBtnStr");
        t.g(primaryBtnClickEvent, "primaryBtnClickEvent");
        y0.m r10 = mVar.r(-1286470324);
        if ((i11 & 1) != 0) {
            i12 = i10 | 6;
        } else if ((i10 & 14) == 0) {
            i12 = (r10.R(primaryBtnStr) ? 4 : 2) | i10;
        } else {
            i12 = i10;
        }
        if ((i11 & 2) != 0) {
            i12 |= 48;
        } else if ((i10 & 112) == 0) {
            i12 |= r10.m(primaryBtnClickEvent) ? 32 : 16;
        }
        int i13 = i11 & 4;
        if (i13 != 0) {
            i12 |= 384;
        } else if ((i10 & 896) == 0) {
            i12 |= r10.R(str) ? 256 : 128;
        }
        int i14 = i11 & 8;
        if (i14 != 0) {
            i12 |= 3072;
        } else if ((i10 & 7168) == 0) {
            i12 |= r10.m(aVar) ? 2048 : UserMetadata.MAX_ATTRIBUTE_SIZE;
        }
        if ((i12 & 5851) == 1170 && r10.v()) {
            r10.A();
        } else {
            if (i13 != 0) {
                str = null;
            }
            if (i14 != 0) {
                aVar = null;
            }
            if (y0.p.H()) {
                y0.p.Q(-1286470324, i12, -1, "ca.canadapost.core.common.compose.components.CpcTwoButtonsArrangement (CpcTwoButtonsArrangement.kt:21)");
            }
            b(primaryBtnStr, primaryBtnClickEvent, str, aVar, r10, (i12 & 14) | (i12 & 112) | (i12 & 896) | (i12 & 7168), 0);
            if (y0.p.H()) {
                y0.p.P();
            }
        }
        String str2 = str;
        dn.a aVar2 = aVar;
        x2 y10 = r10.y();
        if (y10 != null) {
            y10.a(new a(primaryBtnStr, primaryBtnClickEvent, str2, aVar2, i10, i11));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:10:0x0044  */
    /* JADX WARN: Removed duplicated region for block: B:14:0x0060  */
    /* JADX WARN: Removed duplicated region for block: B:18:0x007e  */
    /* JADX WARN: Removed duplicated region for block: B:23:0x01b2  */
    /* JADX WARN: Removed duplicated region for block: B:26:? A[RETURN, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:29:0x008e  */
    /* JADX WARN: Removed duplicated region for block: B:31:0x0093  */
    /* JADX WARN: Removed duplicated region for block: B:34:0x009c  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x00d7  */
    /* JADX WARN: Removed duplicated region for block: B:40:0x00e3  */
    /* JADX WARN: Removed duplicated region for block: B:43:0x0106  */
    /* JADX WARN: Removed duplicated region for block: B:47:0x013a  */
    /* JADX WARN: Removed duplicated region for block: B:50:0x016d  */
    /* JADX WARN: Removed duplicated region for block: B:54:0x017a A[ADDED_TO_REGION] */
    /* JADX WARN: Removed duplicated region for block: B:58:0x01a7  */
    /* JADX WARN: Removed duplicated region for block: B:61:0x015e  */
    /* JADX WARN: Removed duplicated region for block: B:63:0x00e7  */
    /* JADX WARN: Removed duplicated region for block: B:64:0x0095  */
    /* JADX WARN: Removed duplicated region for block: B:65:0x0090  */
    /* JADX WARN: Removed duplicated region for block: B:66:0x0063  */
    /* JADX WARN: Removed duplicated region for block: B:73:0x0047  */
    /* JADX WARN: Type inference failed for: r0v11 */
    /* JADX WARN: Type inference failed for: r0v12, types: [boolean, int] */
    /* JADX WARN: Type inference failed for: r0v20 */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void b(String str, dn.a aVar, String str2, dn.a aVar2, y0.m mVar, int i10, int i11) {
        int i12;
        int i13;
        String str3;
        int i14;
        dn.a aVar3;
        String str4;
        int a10;
        y0.m a11;
        boolean C;
        float f10;
        ?? r02;
        boolean z10;
        boolean z11;
        String str5;
        boolean C2;
        x2 y10;
        y0.m r10 = mVar.r(-1223111542);
        if ((i11 & 1) != 0) {
            i12 = i10 | 6;
        } else if ((i10 & 14) == 0) {
            i12 = (r10.R(str) ? 4 : 2) | i10;
        } else {
            i12 = i10;
        }
        if ((i11 & 2) != 0) {
            i12 |= 48;
        } else if ((i10 & 112) == 0) {
            i12 |= r10.m(aVar) ? 32 : 16;
            i13 = i11 & 4;
            if (i13 == 0) {
                i12 |= 384;
            } else if ((i10 & 896) == 0) {
                str3 = str2;
                i12 |= r10.R(str3) ? 256 : 128;
                i14 = i11 & 8;
                if (i14 != 0) {
                    i12 |= 3072;
                } else if ((i10 & 7168) == 0) {
                    aVar3 = aVar2;
                    i12 |= r10.m(aVar3) ? 2048 : UserMetadata.MAX_ATTRIBUTE_SIZE;
                    if ((i12 & 5851) == 1170 || !r10.v()) {
                        str4 = i13 == 0 ? null : str3;
                        dn.a aVar4 = i14 == 0 ? null : aVar3;
                        if (y0.p.H()) {
                            y0.p.Q(-1223111542, i12, -1, "ca.canadapost.core.common.compose.components.CpcTwoButtonsArrangementMobile (CpcTwoButtonsArrangement.kt:34)");
                        }
                        b.f o10 = e0.b.f16607a.o(c3.h.t(8));
                        i.a aVar5 = l1.i.f27362a;
                        h2.e0 a12 = e0.d.a(o10, l1.c.f27332a.k(), r10, 6);
                        a10 = y0.j.a(r10, 0);
                        y D = r10.D();
                        l1.i e10 = l1.h.e(r10, aVar5);
                        g.a aVar6 = j2.g.f23616d;
                        dn.a a13 = aVar6.a();
                        if (!(r10.w() instanceof y0.f)) {
                            y0.j.c();
                        }
                        r10.u();
                        if (r10.n()) {
                            r10.F();
                        } else {
                            r10.o(a13);
                        }
                        a11 = d4.a(r10);
                        d4.b(a11, a12, aVar6.c());
                        d4.b(a11, D, aVar6.e());
                        dn.p b10 = aVar6.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, aVar6.d());
                        e0.g gVar = e0.g.f16653a;
                        r10.e(-1341535934);
                        C = kotlin.text.y.C(str);
                        if (!C) {
                            f10 = 0.0f;
                            r02 = 1;
                            z10 = false;
                        } else {
                            f10 = 0.0f;
                            z10 = false;
                            r02 = 1;
                            f.b(androidx.compose.foundation.layout.o.h(aVar5, BitmapDescriptorFactory.HUE_RED, 1, null), aVar, g1.c.b(r10, 133451376, true, new b(str)), r10, (i12 & 112) | 390, 0);
                        }
                        r10.N();
                        r10.e(903371422);
                        if (str4 != null) {
                            C2 = kotlin.text.y.C(str4);
                            if (((C2 ? 1 : 0) ^ r02) == r02) {
                                z11 = r02;
                                if (z11 && aVar4 != null) {
                                    f.c(androidx.compose.foundation.layout.o.h(aVar5, f10, r02, null), aVar4, 0L, g1.c.b(r10, -707618726, r02, new c(str4)), r10, ((i12 >> 6) & 112) | 3078, 4);
                                }
                                r10.N();
                                r10.O();
                                if (y0.p.H()) {
                                    y0.p.P();
                                }
                                str5 = str4;
                                aVar3 = aVar4;
                            }
                        }
                        z11 = z10;
                        if (z11) {
                            f.c(androidx.compose.foundation.layout.o.h(aVar5, f10, r02, null), aVar4, 0L, g1.c.b(r10, -707618726, r02, new c(str4)), r10, ((i12 >> 6) & 112) | 3078, 4);
                        }
                        r10.N();
                        r10.O();
                        if (y0.p.H()) {
                        }
                        str5 = str4;
                        aVar3 = aVar4;
                    } else {
                        r10.A();
                        str5 = str3;
                    }
                    y10 = r10.y();
                    if (y10 == null) {
                        y10.a(new d(str, aVar, str5, aVar3, i10, i11));
                        return;
                    }
                    return;
                }
                aVar3 = aVar2;
                if ((i12 & 5851) == 1170) {
                }
                if (i13 == 0) {
                }
                if (i14 == 0) {
                }
                if (y0.p.H()) {
                }
                b.f o102 = e0.b.f16607a.o(c3.h.t(8));
                i.a aVar52 = l1.i.f27362a;
                h2.e0 a122 = e0.d.a(o102, l1.c.f27332a.k(), r10, 6);
                a10 = y0.j.a(r10, 0);
                y D2 = r10.D();
                l1.i e102 = l1.h.e(r10, aVar52);
                g.a aVar62 = j2.g.f23616d;
                dn.a a132 = aVar62.a();
                if (!(r10.w() instanceof y0.f)) {
                }
                r10.u();
                if (r10.n()) {
                }
                a11 = d4.a(r10);
                d4.b(a11, a122, aVar62.c());
                d4.b(a11, D2, aVar62.e());
                dn.p b102 = aVar62.b();
                if (!a11.n()) {
                }
                a11.I(Integer.valueOf(a10));
                a11.l(Integer.valueOf(a10), b102);
                d4.b(a11, e102, aVar62.d());
                e0.g gVar2 = e0.g.f16653a;
                r10.e(-1341535934);
                C = kotlin.text.y.C(str);
                if (!C) {
                }
                r10.N();
                r10.e(903371422);
                if (str4 != null) {
                }
                z11 = z10;
                if (z11) {
                }
                r10.N();
                r10.O();
                if (y0.p.H()) {
                }
                str5 = str4;
                aVar3 = aVar4;
                y10 = r10.y();
                if (y10 == null) {
                }
            }
            str3 = str2;
            i14 = i11 & 8;
            if (i14 != 0) {
            }
            aVar3 = aVar2;
            if ((i12 & 5851) == 1170) {
            }
            if (i13 == 0) {
            }
            if (i14 == 0) {
            }
            if (y0.p.H()) {
            }
            b.f o1022 = e0.b.f16607a.o(c3.h.t(8));
            i.a aVar522 = l1.i.f27362a;
            h2.e0 a1222 = e0.d.a(o1022, l1.c.f27332a.k(), r10, 6);
            a10 = y0.j.a(r10, 0);
            y D22 = r10.D();
            l1.i e1022 = l1.h.e(r10, aVar522);
            g.a aVar622 = j2.g.f23616d;
            dn.a a1322 = aVar622.a();
            if (!(r10.w() instanceof y0.f)) {
            }
            r10.u();
            if (r10.n()) {
            }
            a11 = d4.a(r10);
            d4.b(a11, a1222, aVar622.c());
            d4.b(a11, D22, aVar622.e());
            dn.p b1022 = aVar622.b();
            if (!a11.n()) {
            }
            a11.I(Integer.valueOf(a10));
            a11.l(Integer.valueOf(a10), b1022);
            d4.b(a11, e1022, aVar622.d());
            e0.g gVar22 = e0.g.f16653a;
            r10.e(-1341535934);
            C = kotlin.text.y.C(str);
            if (!C) {
            }
            r10.N();
            r10.e(903371422);
            if (str4 != null) {
            }
            z11 = z10;
            if (z11) {
            }
            r10.N();
            r10.O();
            if (y0.p.H()) {
            }
            str5 = str4;
            aVar3 = aVar4;
            y10 = r10.y();
            if (y10 == null) {
            }
        }
        i13 = i11 & 4;
        if (i13 == 0) {
        }
        str3 = str2;
        i14 = i11 & 8;
        if (i14 != 0) {
        }
        aVar3 = aVar2;
        if ((i12 & 5851) == 1170) {
        }
        if (i13 == 0) {
        }
        if (i14 == 0) {
        }
        if (y0.p.H()) {
        }
        b.f o10222 = e0.b.f16607a.o(c3.h.t(8));
        i.a aVar5222 = l1.i.f27362a;
        h2.e0 a12222 = e0.d.a(o10222, l1.c.f27332a.k(), r10, 6);
        a10 = y0.j.a(r10, 0);
        y D222 = r10.D();
        l1.i e10222 = l1.h.e(r10, aVar5222);
        g.a aVar6222 = j2.g.f23616d;
        dn.a a13222 = aVar6222.a();
        if (!(r10.w() instanceof y0.f)) {
        }
        r10.u();
        if (r10.n()) {
        }
        a11 = d4.a(r10);
        d4.b(a11, a12222, aVar6222.c());
        d4.b(a11, D222, aVar6222.e());
        dn.p b10222 = aVar6222.b();
        if (!a11.n()) {
        }
        a11.I(Integer.valueOf(a10));
        a11.l(Integer.valueOf(a10), b10222);
        d4.b(a11, e10222, aVar6222.d());
        e0.g gVar222 = e0.g.f16653a;
        r10.e(-1341535934);
        C = kotlin.text.y.C(str);
        if (!C) {
        }
        r10.N();
        r10.e(903371422);
        if (str4 != null) {
        }
        z11 = z10;
        if (z11) {
        }
        r10.N();
        r10.O();
        if (y0.p.H()) {
        }
        str5 = str4;
        aVar3 = aVar4;
        y10 = r10.y();
        if (y10 == null) {
        }
    }
}
