package rb;

import androidx.compose.foundation.FocusableKt;
import androidx.compose.foundation.layout.o;
import androidx.compose.ui.focus.m;
import androidx.compose.ui.focus.n;
import ca.canadapost.core.common.customView.k;
import ca.canadapost.core.common.customView.q;
import ca.canadapost.core.data.model.CoreConstants;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import dn.l;
import dn.p;
import e0.b;
import e0.c0;
import e0.f0;
import h2.e0;
import j2.g;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import l1.c;
import l1.h;
import l1.i;
import q2.b0;
import q2.d;
import q2.o0;
import rm.n0;
import tp.m0;
import tp.w0;
import v0.z1;
import y0.d4;
import y0.j;
import y0.l2;
import y0.p0;
import y0.x2;
import y0.y;
import z.a0;

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* renamed from: rb.a$a, reason: collision with other inner class name */
    /* loaded from: classes4.dex */
    public static final class C0808a extends v implements p {

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

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

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

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

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

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

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

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

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

        /* JADX INFO: Access modifiers changed from: package-private */
        /* renamed from: rb.a$a$a, reason: collision with other inner class name */
        /* loaded from: classes4.dex */
        public static final class C0809a extends v implements dn.a {

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

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

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

            /* renamed from: invoke, reason: collision with other method in class */
            public final void m412invoke() {
                this.f34521p.invoke();
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        C0808a(String str, String str2, String str3, l lVar, String str4, dn.a aVar, dn.a aVar2, boolean z10, m mVar) {
            super(2);
            this.f34512p = str;
            this.f34513q = str2;
            this.f34514r = str3;
            this.f34515s = lVar;
            this.f34516t = str4;
            this.f34517u = aVar;
            this.f34518v = aVar2;
            this.f34519w = z10;
            this.f34520x = mVar;
        }

        public final void a(y0.m mVar, int i10) {
            i.a aVar;
            boolean z10;
            dn.a aVar2;
            String str;
            l lVar;
            String str2;
            String str3;
            String str4;
            int i11;
            n7.a aVar3;
            m mVar2;
            dn.a aVar4;
            String b10;
            int i12;
            n7.a aVar5;
            String b11;
            if ((i10 & 11) == 2 && mVar.v()) {
                mVar.A();
                return;
            }
            if (y0.p.H()) {
                y0.p.Q(-939421068, i10, -1, "ca.canadapost.module.epostprofile.account.changepassword.ChangePasswordAccessCodeScreen.<anonymous> (ChangePasswordAccessCodeFragment.kt:157)");
            }
            i.a aVar6 = i.f27362a;
            n7.a aVar7 = n7.a.f29827a;
            int i13 = n7.a.f29828b;
            i j10 = androidx.compose.foundation.layout.l.j(aVar6, aVar7.b(mVar, i13).H(), aVar7.b(mVar, i13).O());
            String str5 = this.f34512p;
            String str6 = this.f34513q;
            String str7 = this.f34514r;
            l lVar2 = this.f34515s;
            String str8 = this.f34516t;
            dn.a aVar8 = this.f34517u;
            dn.a aVar9 = this.f34518v;
            boolean z11 = this.f34519w;
            m mVar3 = this.f34520x;
            e0.b bVar = e0.b.f16607a;
            b.m h10 = bVar.h();
            c.a aVar10 = l1.c.f27332a;
            e0 a10 = e0.d.a(h10, aVar10.k(), mVar, 0);
            int a11 = j.a(mVar, 0);
            y D = mVar.D();
            i e10 = h.e(mVar, j10);
            g.a aVar11 = g.f23616d;
            dn.a a12 = aVar11.a();
            if (!(mVar.w() instanceof y0.f)) {
                j.c();
            }
            mVar.u();
            if (mVar.n()) {
                mVar.o(a12);
            } else {
                mVar.F();
            }
            y0.m a13 = d4.a(mVar);
            d4.b(a13, a10, aVar11.c());
            d4.b(a13, D, aVar11.e());
            p b12 = aVar11.b();
            if (a13.n() || !t.b(a13.f(), Integer.valueOf(a11))) {
                a13.I(Integer.valueOf(a11));
                a13.l(Integer.valueOf(a11), b12);
            }
            d4.b(a13, e10, aVar11.d());
            e0.g gVar = e0.g.f16653a;
            mVar.e(160834965);
            ub.h hVar = ub.h.SECURITY_QUESTIONS;
            if (t.b(str5, hVar.getVerificationMethod())) {
                aVar = aVar6;
                z10 = z11;
                aVar2 = aVar8;
                str = str8;
                lVar = lVar2;
                str2 = str6;
                str3 = str7;
                str4 = str5;
                i11 = i13;
                aVar3 = aVar7;
                mVar2 = mVar3;
                aVar4 = aVar9;
            } else {
                mVar2 = mVar3;
                z10 = z11;
                aVar4 = aVar9;
                aVar2 = aVar8;
                str = str8;
                lVar = lVar2;
                str2 = str6;
                str3 = str7;
                str4 = str5;
                aVar = aVar6;
                i11 = i13;
                aVar3 = aVar7;
                z1.b(m2.j.b(ob.l.W0, mVar, 0), null, 0L, 0L, null, null, null, 0L, null, null, 0L, 0, false, 0, 0, null, aVar7.c(mVar, i13).v(), mVar, 0, 0, 65534);
            }
            mVar.N();
            n7.a aVar12 = aVar3;
            int i14 = i11;
            i.a aVar13 = aVar;
            String str9 = str2;
            String str10 = str4;
            z1.c(a.b(str10, str9, mVar, 0), androidx.compose.foundation.layout.l.k(aVar13, BitmapDescriptorFactory.HUE_RED, aVar12.b(mVar, i14).H(), 1, null), 0L, 0L, null, null, null, 0L, null, null, 0L, 0, false, 0, 0, null, null, aVar12.c(mVar, i14).b(), mVar, 0, 0, 131068);
            i m10 = androidx.compose.foundation.layout.l.m(o.h(aVar13, BitmapDescriptorFactory.HUE_RED, 1, null), BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, aVar12.b(mVar, i14).H(), 7, null);
            if (t.b(str10, hVar.getVerificationMethod())) {
                mVar.e(160835826);
                b10 = m2.j.b(ob.l.f31335s1, mVar, 0);
                mVar.N();
            } else {
                mVar.e(160835933);
                b10 = m2.j.b(ob.l.V0, mVar, 0);
                mVar.N();
            }
            q.a(str3, lVar, m10, b10, false, 0, null, 0L, null, 0L, null, null, false, false, null, t.b(str10, hVar.getVerificationMethod()) ? null : 6, null, str, t.b(str10, hVar.getVerificationMethod()) ? k.TEXT : k.PHONE_DIGITS_ONLY, null, mVar, 0, 0, 622576);
            mVar.e(-1481821154);
            dn.a aVar14 = aVar2;
            boolean m11 = mVar.m(aVar14);
            Object f10 = mVar.f();
            if (m11 || f10 == y0.m.f51621a.a()) {
                f10 = new C0809a(aVar14);
                mVar.I(f10);
            }
            mVar.N();
            d dVar = d.f34575a;
            l7.f.b(null, (dn.a) f10, dVar.a(), mVar, 384, 1);
            mVar.e(160837033);
            if (t.b(str10, hVar.getVerificationMethod())) {
                i12 = i14;
                aVar5 = aVar12;
            } else {
                aVar5 = aVar12;
                i m12 = androidx.compose.foundation.layout.l.m(aVar13, BitmapDescriptorFactory.HUE_RED, aVar5.b(mVar, i14).H(), BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 13, null);
                dn.q b13 = dVar.b();
                i12 = i14;
                l7.f.c(m12, aVar4, 0L, b13, mVar, 3072, 4);
            }
            mVar.N();
            mVar.e(605949140);
            if (!t.b(str10, hVar.getVerificationMethod()) && z10) {
                i m13 = androidx.compose.foundation.layout.l.m(aVar13, BitmapDescriptorFactory.HUE_RED, aVar5.b(mVar, i12).J(), BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 13, null);
                e0 b14 = c0.b(bVar.g(), aVar10.l(), mVar, 0);
                int a14 = j.a(mVar, 0);
                y D2 = mVar.D();
                i e11 = h.e(mVar, m13);
                dn.a a15 = aVar11.a();
                if (!(mVar.w() instanceof y0.f)) {
                    j.c();
                }
                mVar.u();
                if (mVar.n()) {
                    mVar.o(a15);
                } else {
                    mVar.F();
                }
                y0.m a16 = d4.a(mVar);
                d4.b(a16, b14, aVar11.c());
                d4.b(a16, D2, aVar11.e());
                p b15 = aVar11.b();
                if (a16.n() || !t.b(a16.f(), Integer.valueOf(a14))) {
                    a16.I(Integer.valueOf(a14));
                    a16.l(Integer.valueOf(a14), b15);
                }
                d4.b(a16, e11, aVar11.d());
                f0 f0Var = f0.f16652a;
                a0.a(m2.e.c(ob.h.F, mVar, 0), null, o.o(aVar13, aVar5.b(mVar, i12).x()), null, null, BitmapDescriptorFactory.HUE_RED, null, mVar, 56, 120);
                i m14 = androidx.compose.foundation.layout.l.m(FocusableKt.c(n.a(aVar13, mVar2), false, null, 3, null), aVar5.b(mVar, i12).Q(), BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 14, null);
                o0 b16 = aVar5.c(mVar, i12).b();
                if (t.b(str9, ub.h.PHONE_NUMBER.getVerificationMethod())) {
                    mVar.e(1700327116);
                    b11 = m2.j.b(ob.l.Z0, mVar, 0);
                    mVar.N();
                } else {
                    mVar.e(1700327251);
                    b11 = m2.j.b(ob.l.Y0, mVar, 0);
                    mVar.N();
                }
                z1.b(b11, m14, 0L, 0L, null, null, null, 0L, null, null, 0L, 0, false, 0, 0, null, b16, mVar, 0, 0, 65532);
                mVar.O();
            }
            mVar.N();
            mVar.O();
            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 n0.f34904a;
        }
    }

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

        /* renamed from: p, reason: collision with root package name */
        int f34522p;

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(boolean z10, m mVar, vm.d dVar) {
            super(2, dVar);
            this.f34523q = z10;
            this.f34524r = mVar;
        }

        @Override // kotlin.coroutines.jvm.internal.a
        public final vm.d create(Object obj, vm.d dVar) {
            return new b(this.f34523q, this.f34524r, dVar);
        }

        @Override // kotlin.coroutines.jvm.internal.a
        public final Object invokeSuspend(Object obj) {
            Object f10;
            f10 = wm.d.f();
            int i10 = this.f34522p;
            if (i10 == 0) {
                rm.y.b(obj);
                this.f34522p = 1;
                if (w0.a(600L, this) == f10) {
                    return f10;
                }
            } else {
                if (i10 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                rm.y.b(obj);
            }
            if (this.f34523q) {
                this.f34524r.f();
            }
            return n0.f34904a;
        }

        @Override // dn.p
        public final Object invoke(m0 m0Var, vm.d dVar) {
            return ((b) create(m0Var, dVar)).invokeSuspend(n0.f34904a);
        }
    }

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

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

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

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

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

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

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

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

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(boolean z10, String str, String str2, String str3, String str4, l lVar, dn.a aVar, boolean z11, dn.a aVar2, int i10, int i11) {
            super(2);
            this.f34525p = z10;
            this.f34526q = str;
            this.f34527r = str2;
            this.f34528s = str3;
            this.f34529t = str4;
            this.f34530u = lVar;
            this.f34531v = aVar;
            this.f34532w = z11;
            this.f34533x = aVar2;
            this.f34534y = i10;
            this.f34535z = i11;
        }

        public final void a(y0.m mVar, int i10) {
            a.a(this.f34525p, this.f34526q, this.f34527r, this.f34528s, this.f34529t, this.f34530u, this.f34531v, this.f34532w, this.f34533x, mVar, l2.a(this.f34534y | 1), this.f34535z);
        }

        @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:22:0x00ce  */
    /* JADX WARN: Removed duplicated region for block: B:26:0x00e7  */
    /* JADX WARN: Removed duplicated region for block: B:30:0x0105  */
    /* JADX WARN: Removed duplicated region for block: B:34:0x0124  */
    /* JADX WARN: Removed duplicated region for block: B:40:0x01d4  */
    /* JADX WARN: Removed duplicated region for block: B:43:? A[RETURN, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:45:0x0134  */
    /* JADX WARN: Removed duplicated region for block: B:48:0x013c  */
    /* JADX WARN: Removed duplicated region for block: B:51:0x01a4  */
    /* JADX WARN: Removed duplicated region for block: B:55:0x01c9  */
    /* JADX WARN: Removed duplicated region for block: B:57:0x0109  */
    /* JADX WARN: Removed duplicated region for block: B:63:0x00eb  */
    /* JADX WARN: Removed duplicated region for block: B:70:0x00d2  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void a(boolean z10, String str, String communicationMethodValue, String textFieldValue, String str2, l onValueChanged, dn.a resendCode, boolean z11, dn.a submitCodeOrAnswer, y0.m mVar, int i10, int i11) {
        int i12;
        int i13;
        boolean z12;
        int i14;
        y0.m mVar2;
        boolean c10;
        Object f10;
        x2 y10;
        int i15;
        int i16;
        int i17;
        t.g(communicationMethodValue, "communicationMethodValue");
        t.g(textFieldValue, "textFieldValue");
        t.g(onValueChanged, "onValueChanged");
        t.g(resendCode, "resendCode");
        t.g(submitCodeOrAnswer, "submitCodeOrAnswer");
        y0.m r10 = mVar.r(803468907);
        if ((i11 & 1) != 0) {
            i12 = i10 | 6;
        } else if ((i10 & 14) == 0) {
            i12 = (r10.c(z10) ? 4 : 2) | i10;
        } else {
            i12 = i10;
        }
        if ((i11 & 2) != 0) {
            i12 |= 48;
        } else if ((i10 & 112) == 0) {
            i12 |= r10.R(str) ? 32 : 16;
        }
        if ((i11 & 4) != 0) {
            i12 |= 384;
        } else if ((i10 & 896) == 0) {
            i12 |= r10.R(communicationMethodValue) ? 256 : 128;
        }
        if ((i11 & 8) != 0) {
            i12 |= 3072;
        } else if ((i10 & 7168) == 0) {
            i12 |= r10.R(textFieldValue) ? 2048 : UserMetadata.MAX_ATTRIBUTE_SIZE;
        }
        if ((i11 & 16) != 0) {
            i12 |= 24576;
        } else if ((57344 & i10) == 0) {
            i12 |= r10.R(str2) ? 16384 : UserMetadata.MAX_INTERNAL_KEY_SIZE;
        }
        if ((i11 & 32) == 0) {
            i17 = (458752 & i10) == 0 ? r10.m(onValueChanged) ? 131072 : 65536 : 196608;
            if ((i11 & 64) != 0) {
                i16 = (3670016 & i10) == 0 ? r10.m(resendCode) ? 1048576 : 524288 : 1572864;
                i13 = i11 & 128;
                if (i13 != 0) {
                    i12 |= 12582912;
                } else if ((29360128 & i10) == 0) {
                    z12 = z11;
                    i12 |= r10.c(z12) ? 8388608 : 4194304;
                    if ((i11 & 256) != 0) {
                        i15 = (234881024 & i10) == 0 ? r10.m(submitCodeOrAnswer) ? 67108864 : 33554432 : 100663296;
                        i14 = i12;
                        if ((191739611 & i14) == 38347922 || !r10.v()) {
                            if (i13 != 0) {
                                z12 = false;
                            }
                            if (y0.p.H()) {
                                y0.p.Q(803468907, i14, -1, "ca.canadapost.module.epostprofile.account.changepassword.ChangePasswordAccessCodeScreen (ChangePasswordAccessCodeFragment.kt:154)");
                            }
                            m mVar3 = new m();
                            boolean z13 = z12;
                            mVar2 = r10;
                            l7.l.a(null, z10, null, g1.c.b(mVar2, -939421068, true, new C0808a(str, communicationMethodValue, textFieldValue, onValueChanged, str2, submitCodeOrAnswer, resendCode, z13, mVar3)), mVar2, ((i14 << 3) & 112) | 3072, 5);
                            Boolean valueOf = Boolean.valueOf(z13);
                            mVar2.e(-1481818688);
                            z12 = z13;
                            c10 = mVar2.c(z12) | mVar2.R(mVar3);
                            f10 = mVar2.f();
                            if (!c10 || f10 == y0.m.f51621a.a()) {
                                f10 = new b(z12, mVar3, null);
                                mVar2.I(f10);
                            }
                            mVar2.N();
                            p0.d(valueOf, (p) f10, mVar2, ((i14 >> 21) & 14) | 64);
                            if (y0.p.H()) {
                                y0.p.P();
                            }
                        } else {
                            r10.A();
                            mVar2 = r10;
                        }
                        boolean z14 = z12;
                        y10 = mVar2.y();
                        if (y10 != null) {
                            y10.a(new c(z10, str, communicationMethodValue, textFieldValue, str2, onValueChanged, resendCode, z14, submitCodeOrAnswer, i10, i11));
                            return;
                        }
                        return;
                    }
                    i12 |= i15;
                    i14 = i12;
                    if ((191739611 & i14) == 38347922) {
                    }
                    if (i13 != 0) {
                    }
                    if (y0.p.H()) {
                    }
                    m mVar32 = new m();
                    boolean z132 = z12;
                    mVar2 = r10;
                    l7.l.a(null, z10, null, g1.c.b(mVar2, -939421068, true, new C0808a(str, communicationMethodValue, textFieldValue, onValueChanged, str2, submitCodeOrAnswer, resendCode, z132, mVar32)), mVar2, ((i14 << 3) & 112) | 3072, 5);
                    Boolean valueOf2 = Boolean.valueOf(z132);
                    mVar2.e(-1481818688);
                    z12 = z132;
                    c10 = mVar2.c(z12) | mVar2.R(mVar32);
                    f10 = mVar2.f();
                    if (!c10) {
                    }
                    f10 = new b(z12, mVar32, null);
                    mVar2.I(f10);
                    mVar2.N();
                    p0.d(valueOf2, (p) f10, mVar2, ((i14 >> 21) & 14) | 64);
                    if (y0.p.H()) {
                    }
                    boolean z142 = z12;
                    y10 = mVar2.y();
                    if (y10 != null) {
                    }
                }
                z12 = z11;
                if ((i11 & 256) != 0) {
                }
                i12 |= i15;
                i14 = i12;
                if ((191739611 & i14) == 38347922) {
                }
                if (i13 != 0) {
                }
                if (y0.p.H()) {
                }
                m mVar322 = new m();
                boolean z1322 = z12;
                mVar2 = r10;
                l7.l.a(null, z10, null, g1.c.b(mVar2, -939421068, true, new C0808a(str, communicationMethodValue, textFieldValue, onValueChanged, str2, submitCodeOrAnswer, resendCode, z1322, mVar322)), mVar2, ((i14 << 3) & 112) | 3072, 5);
                Boolean valueOf22 = Boolean.valueOf(z1322);
                mVar2.e(-1481818688);
                z12 = z1322;
                c10 = mVar2.c(z12) | mVar2.R(mVar322);
                f10 = mVar2.f();
                if (!c10) {
                }
                f10 = new b(z12, mVar322, null);
                mVar2.I(f10);
                mVar2.N();
                p0.d(valueOf22, (p) f10, mVar2, ((i14 >> 21) & 14) | 64);
                if (y0.p.H()) {
                }
                boolean z1422 = z12;
                y10 = mVar2.y();
                if (y10 != null) {
                }
            }
            i12 |= i16;
            i13 = i11 & 128;
            if (i13 != 0) {
            }
            z12 = z11;
            if ((i11 & 256) != 0) {
            }
            i12 |= i15;
            i14 = i12;
            if ((191739611 & i14) == 38347922) {
            }
            if (i13 != 0) {
            }
            if (y0.p.H()) {
            }
            m mVar3222 = new m();
            boolean z13222 = z12;
            mVar2 = r10;
            l7.l.a(null, z10, null, g1.c.b(mVar2, -939421068, true, new C0808a(str, communicationMethodValue, textFieldValue, onValueChanged, str2, submitCodeOrAnswer, resendCode, z13222, mVar3222)), mVar2, ((i14 << 3) & 112) | 3072, 5);
            Boolean valueOf222 = Boolean.valueOf(z13222);
            mVar2.e(-1481818688);
            z12 = z13222;
            c10 = mVar2.c(z12) | mVar2.R(mVar3222);
            f10 = mVar2.f();
            if (!c10) {
            }
            f10 = new b(z12, mVar3222, null);
            mVar2.I(f10);
            mVar2.N();
            p0.d(valueOf222, (p) f10, mVar2, ((i14 >> 21) & 14) | 64);
            if (y0.p.H()) {
            }
            boolean z14222 = z12;
            y10 = mVar2.y();
            if (y10 != null) {
            }
        }
        i12 |= i17;
        if ((i11 & 64) != 0) {
        }
        i12 |= i16;
        i13 = i11 & 128;
        if (i13 != 0) {
        }
        z12 = z11;
        if ((i11 & 256) != 0) {
        }
        i12 |= i15;
        i14 = i12;
        if ((191739611 & i14) == 38347922) {
        }
        if (i13 != 0) {
        }
        if (y0.p.H()) {
        }
        m mVar32222 = new m();
        boolean z132222 = z12;
        mVar2 = r10;
        l7.l.a(null, z10, null, g1.c.b(mVar2, -939421068, true, new C0808a(str, communicationMethodValue, textFieldValue, onValueChanged, str2, submitCodeOrAnswer, resendCode, z132222, mVar32222)), mVar2, ((i14 << 3) & 112) | 3072, 5);
        Boolean valueOf2222 = Boolean.valueOf(z132222);
        mVar2.e(-1481818688);
        z12 = z132222;
        c10 = mVar2.c(z12) | mVar2.R(mVar32222);
        f10 = mVar2.f();
        if (!c10) {
        }
        f10 = new b(z12, mVar32222, null);
        mVar2.I(f10);
        mVar2.N();
        p0.d(valueOf2222, (p) f10, mVar2, ((i14 >> 21) & 14) | 64);
        if (y0.p.H()) {
        }
        boolean z142222 = z12;
        y10 = mVar2.y();
        if (y10 != null) {
        }
    }

    public static final q2.d b(String str, String value, y0.m mVar, int i10) {
        String b10;
        t.g(value, "value");
        mVar.e(1604854765);
        int i11 = -1;
        if (y0.p.H()) {
            y0.p.Q(1604854765, i10, -1, "ca.canadapost.module.epostprofile.account.changepassword.getDescription (ChangePasswordAccessCodeFragment.kt:257)");
        }
        if (t.b(str, CoreConstants.VERIFICATION_METHOD_EMAIL)) {
            mVar.e(1520908581);
            b10 = m2.j.b(ob.l.T0, mVar, 0);
            mVar.N();
        } else {
            if (!t.b(str, CoreConstants.VERIFICATION_METHOD_PHONE)) {
                mVar.e(1520908795);
                d.a aVar = new d.a(0, 1, null);
                aVar.f(value);
                q2.d m10 = aVar.m();
                mVar.N();
                if (y0.p.H()) {
                    y0.p.P();
                }
                mVar.N();
                return m10;
            }
            mVar.e(1520908695);
            b10 = m2.j.b(ob.l.U0, mVar, 0);
            mVar.N();
        }
        int length = b10.length();
        int i12 = 0;
        while (true) {
            if (i12 >= length) {
                i12 = -1;
                break;
            }
            if (b10.charAt(i12) == '%') {
                break;
            }
            i12++;
        }
        String substring = b10.substring(0, i12);
        t.f(substring, "substring(...)");
        int length2 = b10.length();
        int i13 = 0;
        while (true) {
            if (i13 >= length2) {
                break;
            }
            if (b10.charAt(i13) == '%') {
                i11 = i13;
                break;
            }
            i13++;
        }
        String substring2 = b10.substring(i11 + 4, b10.length());
        t.f(substring2, "substring(...)");
        d.a aVar2 = new d.a(0, 1, null);
        aVar2.f(substring);
        n7.a aVar3 = n7.a.f29827a;
        int i14 = n7.a.f29828b;
        int l10 = aVar2.l(new b0(aVar3.c(mVar, i14).m().h(), aVar3.c(mVar, i14).m().l(), aVar3.c(mVar, i14).m().o(), aVar3.c(mVar, i14).m().m(), null, aVar3.c(mVar, i14).m().j(), null, 0L, null, null, null, 0L, null, null, null, null, 65488, null));
        try {
            aVar2.f(value);
            n0 n0Var = n0.f34904a;
            aVar2.j(l10);
            aVar2.f(substring2);
            q2.d m11 = aVar2.m();
            if (y0.p.H()) {
                y0.p.P();
            }
            mVar.N();
            return m11;
        } catch (Throwable th2) {
            aVar2.j(l10);
            throw th2;
        }
    }
}
