package h3;

import androidx.compose.runtime.MutableState;
import m3.AbstractC2467b;
import m3.AbstractC2476k;
import w4.C3137A;

/* JADX INFO: renamed from: h3.y1, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2223y1 extends C4.j implements J4.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f18714a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ MutableState f18715b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ boolean f18716c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ boolean f18717d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ String f18718e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ String f18719f;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ int f18720j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ boolean f18721k;
    public final /* synthetic */ X2.f l;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2223y1(MutableState mutableState, boolean z6, boolean z7, String str, String str2, int i6, boolean z8, X2.f fVar, A4.d dVar) {
        super(2, dVar);
        this.f18715b = mutableState;
        this.f18716c = z6;
        this.f18717d = z7;
        this.f18718e = str;
        this.f18719f = str2;
        this.f18720j = i6;
        this.f18721k = z8;
        this.l = fVar;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C2223y1(this.f18715b, this.f18716c, this.f18717d, this.f18718e, this.f18719f, this.f18720j, this.f18721k, this.l, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((C2223y1) create((V4.C) obj, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
    }

    /* JADX WARN: Code restructure failed: missing block: B:28:0x0067, code lost:
    
        if (r12 == r0) goto L29;
     */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        String str;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f18714a;
        C3137A c3137a = C3137A.f25453a;
        int i7 = this.f18720j;
        String str2 = this.f18719f;
        boolean z6 = this.f18721k;
        MutableState mutableState = this.f18715b;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            mutableState.setValue(null);
            if (this.f18716c && this.f18717d && (str = this.f18718e) != null && !S4.p.Q0(str) && str2 != null && i7 > 0) {
                this.f18714a = 1;
                if (V4.E.l(1200L, this) != aVar) {
                }
                return aVar;
            }
            return c3137a;
        }
        if (i6 != 1) {
            if (i6 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            String str3 = (String) obj;
            if (!z6 && str3 != null) {
                S4.m mVar = AbstractC2476k.f20513a;
                if (AbstractC2476k.f20513a.d(str3)) {
                    mutableState.setValue(str3);
                }
            }
            return c3137a;
        }
        AbstractC2467b.l(obj);
        if (!z6) {
            this.f18714a = 2;
            X2.f fVar = this.l;
            fVar.getClass();
            c5.e eVar = V4.N.f8259a;
            obj = V4.E.H(c5.d.f13466b, new X2.d(i7, str2, fVar, null), this);
        }
        return c3137a;
    }
}
