package mb;

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

/* loaded from: classes4.dex */
public abstract class h {

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

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

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

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

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(int i10, int i11, long j10, long j11, float f10, int i12, int i13) {
            super(2);
            this.f28837p = i10;
            this.f28838q = i11;
            this.f28839r = j10;
            this.f28840s = j11;
            this.f28841t = f10;
            this.f28842u = i12;
            this.f28843v = i13;
        }

        public final void a(y0.m mVar, int i10) {
            h.a(this.f28837p, this.f28838q, this.f28839r, this.f28840s, this.f28841t, mVar, l2.a(this.f28842u | 1), this.f28843v);
        }

        @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: classes4.dex */
    public static final class b extends v implements dn.p {

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(int i10, int i11, int i12) {
            super(2);
            this.f28844p = i10;
            this.f28845q = i11;
            this.f28846r = i12;
        }

        public final void a(y0.m mVar, int i10) {
            h.b(this.f28844p, this.f28845q, mVar, l2.a(this.f28846r | 1));
        }

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

    /* JADX WARN: Code restructure failed: missing block: B:38:0x00bb, code lost:
    
        if ((r43 & 16) != 0) goto L72;
     */
    /* JADX WARN: Removed duplicated region for block: B:13:0x005d  */
    /* JADX WARN: Removed duplicated region for block: B:16:0x007a  */
    /* JADX WARN: Removed duplicated region for block: B:29:0x029a  */
    /* JADX WARN: Removed duplicated region for block: B:32:? A[RETURN, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:41:0x00d8  */
    /* JADX WARN: Removed duplicated region for block: B:44:0x0115  */
    /* JADX WARN: Removed duplicated region for block: B:47:0x0121  */
    /* JADX WARN: Removed duplicated region for block: B:54:0x01af  */
    /* JADX WARN: Removed duplicated region for block: B:57:0x01bb  */
    /* JADX WARN: Removed duplicated region for block: B:64:0x0291  */
    /* JADX WARN: Removed duplicated region for block: B:66:0x01bf  */
    /* JADX WARN: Removed duplicated region for block: B:68:0x0125  */
    /* JADX WARN: Removed duplicated region for block: B:72:0x00c2  */
    /* JADX WARN: Removed duplicated region for block: B:75:0x008f  */
    /* JADX WARN: Removed duplicated region for block: B:76:0x0062  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void a(int i10, int i11, long j10, long j11, float f10, y0.m mVar, int i12, int i13) {
        int i14;
        float f11;
        int a10;
        y0.m a11;
        int a12;
        y0.m a13;
        float j12;
        x2 y10;
        int i15;
        y0.m r10 = mVar.r(-1070570183);
        if ((i13 & 1) != 0) {
            i14 = i12 | 6;
        } else if ((i12 & 14) == 0) {
            i14 = (r10.i(i10) ? 4 : 2) | i12;
        } else {
            i14 = i12;
        }
        if ((i13 & 2) != 0) {
            i14 |= 48;
        } else if ((i12 & 112) == 0) {
            i14 |= r10.i(i11) ? 32 : 16;
        }
        if ((i13 & 4) != 0) {
            i14 |= 384;
        } else if ((i12 & 896) == 0) {
            i14 |= r10.j(j10) ? 256 : 128;
            if ((i13 & 8) == 0) {
                i14 |= 3072;
            } else if ((i12 & 7168) == 0) {
                i14 |= r10.j(j11) ? 2048 : UserMetadata.MAX_ATTRIBUTE_SIZE;
            }
            if ((57344 & i12) != 0) {
                if ((i13 & 16) == 0) {
                    f11 = f10;
                    if (r10.h(f11)) {
                        i15 = 16384;
                        i14 |= i15;
                    }
                } else {
                    f11 = f10;
                }
                i15 = UserMetadata.MAX_INTERNAL_KEY_SIZE;
                i14 |= i15;
            } else {
                f11 = f10;
            }
            if ((46811 & i14) == 9362 || !r10.v()) {
                r10.q();
                if ((i12 & 1) != 0 || r10.E()) {
                    if ((i13 & 16) != 0) {
                        f11 = n7.a.f29827a.b(r10, n7.a.f29828b).r();
                        i14 &= -57345;
                    }
                    r10.P();
                    if (y0.p.H()) {
                        y0.p.Q(-1070570183, i14, -1, "ca.canadapost.module.customsform.enhancement.ui.CpcNoGapProgressIndicator (CpcStepCounter.kt:45)");
                    }
                    float f12 = i10 / i11;
                    i.a aVar = l1.i.f27362a;
                    l1.i h10 = androidx.compose.foundation.layout.o.h(aVar, BitmapDescriptorFactory.HUE_RED, 1, null);
                    b.m h11 = e0.b.f16607a.h();
                    c.a aVar2 = l1.c.f27332a;
                    e0 a14 = e0.d.a(h11, aVar2.k(), r10, 0);
                    a10 = y0.j.a(r10, 0);
                    y D = r10.D();
                    l1.i e10 = l1.h.e(r10, h10);
                    g.a aVar3 = j2.g.f23616d;
                    dn.a a15 = aVar3.a();
                    if (!(r10.w() instanceof y0.f)) {
                        y0.j.c();
                    }
                    r10.u();
                    if (r10.n()) {
                        r10.F();
                    } else {
                        r10.o(a15);
                    }
                    a11 = d4.a(r10);
                    d4.b(a11, a14, 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());
                    e0.g gVar = e0.g.f16653a;
                    l1.i d10 = androidx.compose.foundation.b.d(p1.e.a(androidx.compose.foundation.layout.o.i(androidx.compose.foundation.layout.o.h(aVar, BitmapDescriptorFactory.HUE_RED, 1, null), f11), k0.g.c(f11)), j11, null, 2, null);
                    e0 h12 = androidx.compose.foundation.layout.b.h(aVar2.o(), false);
                    a12 = y0.j.a(r10, 0);
                    y D2 = r10.D();
                    l1.i e11 = l1.h.e(r10, d10);
                    dn.a a16 = aVar3.a();
                    if (!(r10.w() instanceof y0.f)) {
                        y0.j.c();
                    }
                    r10.u();
                    if (r10.n()) {
                        r10.F();
                    } else {
                        r10.o(a16);
                    }
                    a13 = d4.a(r10);
                    d4.b(a13, h12, aVar3.c());
                    d4.b(a13, D2, aVar3.e());
                    dn.p b11 = aVar3.b();
                    if (!a13.n() || !t.b(a13.f(), Integer.valueOf(a12))) {
                        a13.I(Integer.valueOf(a12));
                        a13.l(Integer.valueOf(a12), b11);
                    }
                    d4.b(a13, e11, aVar3.d());
                    androidx.compose.foundation.layout.d dVar = androidx.compose.foundation.layout.d.f1828a;
                    l1.i d11 = androidx.compose.foundation.layout.o.d(aVar, BitmapDescriptorFactory.HUE_RED, 1, null);
                    j12 = jn.o.j(f12, BitmapDescriptorFactory.HUE_RED, 1.0f);
                    androidx.compose.foundation.layout.b.a(androidx.compose.foundation.b.d(p1.e.a(androidx.compose.foundation.layout.o.g(d11, j12), k0.g.c(f11)), j10, null, 2, null), r10, 0);
                    r10.O();
                    n7.a aVar4 = n7.a.f29827a;
                    int i16 = n7.a.f29828b;
                    l7.n.a(aVar4.b(r10, i16).Q(), l7.o.Vertical, r10, 48);
                    z1.b(m2.j.c(b1.f22622x0, new Object[]{Integer.valueOf(i10), Integer.valueOf(i11)}, r10, 64), gVar.b(aVar, aVar2.k()), 0L, 0L, null, null, null, 0L, null, null, 0L, 0, false, 0, 0, null, aVar4.c(r10, i16).i(), r10, 0, 0, 65532);
                    r10.O();
                    if (y0.p.H()) {
                        y0.p.P();
                    }
                } else {
                    r10.A();
                }
            } else {
                r10.A();
            }
            y10 = r10.y();
            if (y10 == null) {
                y10.a(new a(i10, i11, j10, j11, f11, i12, i13));
                return;
            }
            return;
        }
        if ((i13 & 8) == 0) {
        }
        if ((57344 & i12) != 0) {
        }
        if ((46811 & i14) == 9362) {
        }
        r10.q();
        if ((i12 & 1) != 0) {
        }
        if ((i13 & 16) != 0) {
        }
        r10.P();
        if (y0.p.H()) {
        }
        float f122 = i10 / i11;
        i.a aVar5 = l1.i.f27362a;
        l1.i h102 = androidx.compose.foundation.layout.o.h(aVar5, BitmapDescriptorFactory.HUE_RED, 1, null);
        b.m h112 = e0.b.f16607a.h();
        c.a aVar22 = l1.c.f27332a;
        e0 a142 = e0.d.a(h112, aVar22.k(), r10, 0);
        a10 = y0.j.a(r10, 0);
        y D3 = r10.D();
        l1.i e102 = l1.h.e(r10, h102);
        g.a aVar32 = j2.g.f23616d;
        dn.a a152 = aVar32.a();
        if (!(r10.w() instanceof y0.f)) {
        }
        r10.u();
        if (r10.n()) {
        }
        a11 = d4.a(r10);
        d4.b(a11, a142, aVar32.c());
        d4.b(a11, D3, 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());
        e0.g gVar2 = e0.g.f16653a;
        l1.i d102 = androidx.compose.foundation.b.d(p1.e.a(androidx.compose.foundation.layout.o.i(androidx.compose.foundation.layout.o.h(aVar5, BitmapDescriptorFactory.HUE_RED, 1, null), f11), k0.g.c(f11)), j11, null, 2, null);
        e0 h122 = androidx.compose.foundation.layout.b.h(aVar22.o(), false);
        a12 = y0.j.a(r10, 0);
        y D22 = r10.D();
        l1.i e112 = l1.h.e(r10, d102);
        dn.a a162 = aVar32.a();
        if (!(r10.w() instanceof y0.f)) {
        }
        r10.u();
        if (r10.n()) {
        }
        a13 = d4.a(r10);
        d4.b(a13, h122, aVar32.c());
        d4.b(a13, D22, aVar32.e());
        dn.p b112 = aVar32.b();
        if (!a13.n()) {
        }
        a13.I(Integer.valueOf(a12));
        a13.l(Integer.valueOf(a12), b112);
        d4.b(a13, e112, aVar32.d());
        androidx.compose.foundation.layout.d dVar2 = androidx.compose.foundation.layout.d.f1828a;
        l1.i d112 = androidx.compose.foundation.layout.o.d(aVar5, BitmapDescriptorFactory.HUE_RED, 1, null);
        j12 = jn.o.j(f122, BitmapDescriptorFactory.HUE_RED, 1.0f);
        androidx.compose.foundation.layout.b.a(androidx.compose.foundation.b.d(p1.e.a(androidx.compose.foundation.layout.o.g(d112, j12), k0.g.c(f11)), j10, null, 2, null), r10, 0);
        r10.O();
        n7.a aVar42 = n7.a.f29827a;
        int i162 = n7.a.f29828b;
        l7.n.a(aVar42.b(r10, i162).Q(), l7.o.Vertical, r10, 48);
        z1.b(m2.j.c(b1.f22622x0, new Object[]{Integer.valueOf(i10), Integer.valueOf(i11)}, r10, 64), gVar2.b(aVar5, aVar22.k()), 0L, 0L, null, null, null, 0L, null, null, 0L, 0, false, 0, 0, null, aVar42.c(r10, i162).i(), r10, 0, 0, 65532);
        r10.O();
        if (y0.p.H()) {
        }
        y10 = r10.y();
        if (y10 == null) {
        }
    }

    public static final void b(int i10, int i11, y0.m mVar, int i12) {
        int i13;
        y0.m r10 = mVar.r(1277687712);
        if ((i12 & 14) == 0) {
            i13 = (r10.i(i10) ? 4 : 2) | i12;
        } else {
            i13 = i12;
        }
        if ((i12 & 112) == 0) {
            i13 |= r10.i(i11) ? 32 : 16;
        }
        if ((i13 & 91) == 18 && r10.v()) {
            r10.A();
        } else {
            if (y0.p.H()) {
                y0.p.Q(1277687712, i13, -1, "ca.canadapost.module.customsform.enhancement.ui.CpcStepCounter (CpcStepCounter.kt:28)");
            }
            n7.a aVar = n7.a.f29827a;
            int i14 = n7.a.f29828b;
            a(i10, i11, aVar.a(r10, i14).a().a(), aVar.a(r10, i14).b().e(), aVar.b(r10, i14).r(), r10, (i13 & 14) | (i13 & 112), 0);
            if (y0.p.H()) {
                y0.p.P();
            }
        }
        x2 y10 = r10.y();
        if (y10 != null) {
            y10.a(new b(i10, i11, i12));
        }
    }
}
