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.i;
import rm.n0;
import y0.d4;
import y0.l2;
import y0.x2;
import y0.y;

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(dn.a aVar) {
            super(0);
            this.f27605p = aVar;
        }

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

        /* renamed from: invoke, reason: collision with other method in class */
        public final void m321invoke() {
            dn.a aVar = this.f27605p;
            if (aVar != null) {
                aVar.invoke();
            }
        }
    }

    /* 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 */ dn.p f27606p;

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

        public final void a(e0.f Card, y0.m mVar, int i10) {
            t.g(Card, "$this$Card");
            if ((i10 & 81) == 16 && mVar.v()) {
                mVar.A();
                return;
            }
            if (y0.p.H()) {
                y0.p.Q(-585585522, i10, -1, "ca.canadapost.core.common.compose.components.CpcCard.<anonymous> (CpcCard.kt:30)");
            }
            l1.i i11 = androidx.compose.foundation.layout.l.i(l1.i.f27362a, n7.a.f29827a.b(mVar, 6).H());
            dn.p pVar = this.f27606p;
            e0 h10 = androidx.compose.foundation.layout.b.h(l1.c.f27332a.o(), false);
            int a10 = y0.j.a(mVar, 0);
            y D = mVar.D();
            l1.i e10 = l1.h.e(mVar, i11);
            g.a aVar = j2.g.f23616d;
            dn.a a11 = aVar.a();
            if (!(mVar.w() instanceof y0.f)) {
                y0.j.c();
            }
            mVar.u();
            if (mVar.n()) {
                mVar.o(a11);
            } else {
                mVar.F();
            }
            y0.m a12 = d4.a(mVar);
            d4.b(a12, h10, aVar.c());
            d4.b(a12, D, aVar.e());
            dn.p b10 = aVar.b();
            if (a12.n() || !t.b(a12.f(), Integer.valueOf(a10))) {
                a12.I(Integer.valueOf(a10));
                a12.l(Integer.valueOf(a10), b10);
            }
            d4.b(a12, e10, aVar.d());
            androidx.compose.foundation.layout.d dVar = androidx.compose.foundation.layout.d.f1828a;
            pVar.invoke(mVar, 0);
            mVar.O();
            if (y0.p.H()) {
                y0.p.P();
            }
        }

        @Override // dn.q
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2, Object obj3) {
            a((e0.f) 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.p {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ c3.h f27607p;

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(c3.h hVar, dn.p pVar, dn.a aVar, int i10, int i11) {
            super(2);
            this.f27607p = hVar;
            this.f27608q = pVar;
            this.f27609r = aVar;
            this.f27610s = i10;
            this.f27611t = i11;
        }

        public final void a(y0.m mVar, int i10) {
            g.a(this.f27607p, this.f27608q, this.f27609r, mVar, l2.a(this.f27610s | 1), this.f27611t);
        }

        @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:18:0x014d  */
    /* JADX WARN: Removed duplicated region for block: B:21:? A[RETURN, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:24:0x007b  */
    /* JADX WARN: Removed duplicated region for block: B:26:0x0080  */
    /* JADX WARN: Removed duplicated region for block: B:29:0x0089  */
    /* JADX WARN: Removed duplicated region for block: B:36:0x0110  */
    /* JADX WARN: Removed duplicated region for block: B:39:0x0144  */
    /* JADX WARN: Removed duplicated region for block: B:40:0x011a  */
    /* JADX WARN: Removed duplicated region for block: B:42:0x0082  */
    /* JADX WARN: Removed duplicated region for block: B:43:0x007d  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void a(c3.h hVar, dn.p content, dn.a aVar, y0.m mVar, int i10, int i11) {
        c3.h hVar2;
        int i12;
        dn.a aVar2;
        c3.h hVar3;
        dn.a aVar3;
        boolean m10;
        Object f10;
        dn.a aVar4;
        x2 y10;
        t.g(content, "content");
        y0.m r10 = mVar.r(-1834446272);
        int i13 = i11 & 1;
        if (i13 != 0) {
            i12 = i10 | 6;
            hVar2 = hVar;
        } else if ((i10 & 14) == 0) {
            hVar2 = hVar;
            i12 = (r10.R(hVar2) ? 4 : 2) | i10;
        } else {
            hVar2 = hVar;
            i12 = i10;
        }
        if ((i11 & 2) != 0) {
            i12 |= 48;
        } else if ((i10 & 112) == 0) {
            i12 |= r10.m(content) ? 32 : 16;
        }
        int i14 = i11 & 4;
        if (i14 != 0) {
            i12 |= 384;
        } else if ((i10 & 896) == 0) {
            aVar2 = aVar;
            i12 |= r10.m(aVar2) ? 256 : 128;
            if ((i12 & 731) == 146 || !r10.v()) {
                hVar3 = i13 == 0 ? null : hVar2;
                aVar3 = i14 == 0 ? null : aVar2;
                if (y0.p.H()) {
                    y0.p.Q(-1834446272, i12, -1, "ca.canadapost.core.common.compose.components.CpcCard (CpcCard.kt:20)");
                }
                i.a aVar5 = l1.i.f27362a;
                r10.e(-845703911);
                m10 = r10.m(aVar3);
                f10 = r10.f();
                if (!m10 || f10 == y0.m.f51621a.a()) {
                    f10 = new a(aVar3);
                    r10.I(f10);
                }
                r10.N();
                l1.i d10 = androidx.compose.foundation.d.d(aVar5, false, null, null, (dn.a) f10, 7, null);
                v0.j jVar = v0.j.f38119a;
                n7.a aVar6 = n7.a.f29827a;
                float e10 = aVar6.b(r10, 6).e();
                int i15 = v0.j.f38120b;
                v0.k c10 = jVar.c(e10, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, r10, i15 << 18, 62);
                aVar4 = aVar3;
                v0.i b10 = jVar.b(aVar6.a(r10, 6).a().d(), 0L, 0L, 0L, r10, i15 << 12, 14);
                r10.e(1572370946);
                float a10 = hVar3 != null ? aVar6.b(r10, 6).a() : hVar3.y();
                r10.N();
                v0.l.a(d10, k0.g.c(a10), b10, c10, null, g1.c.b(r10, -585585522, true, new b(content)), r10, 196608, 16);
                if (y0.p.H()) {
                    y0.p.P();
                }
            } else {
                r10.A();
                hVar3 = hVar2;
                aVar4 = aVar2;
            }
            y10 = r10.y();
            if (y10 == null) {
                y10.a(new c(hVar3, content, aVar4, i10, i11));
                return;
            }
            return;
        }
        aVar2 = aVar;
        if ((i12 & 731) == 146) {
        }
        if (i13 == 0) {
        }
        if (i14 == 0) {
        }
        if (y0.p.H()) {
        }
        i.a aVar52 = l1.i.f27362a;
        r10.e(-845703911);
        m10 = r10.m(aVar3);
        f10 = r10.f();
        if (!m10) {
        }
        f10 = new a(aVar3);
        r10.I(f10);
        r10.N();
        l1.i d102 = androidx.compose.foundation.d.d(aVar52, false, null, null, (dn.a) f10, 7, null);
        v0.j jVar2 = v0.j.f38119a;
        n7.a aVar62 = n7.a.f29827a;
        float e102 = aVar62.b(r10, 6).e();
        int i152 = v0.j.f38120b;
        v0.k c102 = jVar2.c(e102, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, r10, i152 << 18, 62);
        aVar4 = aVar3;
        v0.i b102 = jVar2.b(aVar62.a(r10, 6).a().d(), 0L, 0L, 0L, r10, i152 << 12, 14);
        r10.e(1572370946);
        if (hVar3 != null) {
        }
        r10.N();
        v0.l.a(d102, k0.g.c(a10), b102, c102, null, g1.c.b(r10, -585585522, true, new b(content)), r10, 196608, 16);
        if (y0.p.H()) {
        }
        y10 = r10.y();
        if (y10 == null) {
        }
    }
}
