package h3;

import androidx.compose.runtime.MutableState;
import m3.AbstractC2467b;
import q.C2769d;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class j5 extends C4.j implements J4.e {

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public j5(String str, C2769d c2769d, MutableState mutableState, MutableState mutableState2, A4.d dVar) {
        super(2, dVar);
        this.f18097b = str;
        this.f18098c = c2769d;
        this.f18099d = mutableState;
        this.f18100e = mutableState2;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new j5(this.f18097b, this.f18098c, this.f18099d, this.f18100e, dVar);
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:22:0x0067, code lost:
    
        if (r0 == r6) goto L23;
     */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        Object objC;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f18096a;
        C3137A c3137a = C3137A.f25453a;
        MutableState mutableState = this.f18100e;
        MutableState mutableState2 = this.f18099d;
        String str = this.f18097b;
        try {
            if (i6 == 0) {
                AbstractC2467b.l(obj);
                if (str != null) {
                    float f6 = n5.f18281a;
                    if (!str.equals((String) mutableState2.getValue())) {
                        mutableState.setValue(str);
                        Float f7 = new Float(0.0f);
                        this.f18096a = 1;
                        if (this.f18098c.e(this, f7) != aVar) {
                        }
                        return aVar;
                    }
                }
                return c3137a;
            }
            if (i6 != 1) {
                if (i6 != 2) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                AbstractC2467b.l(obj);
                objC = obj;
                return c3137a;
            }
            AbstractC2467b.l(obj);
            C2769d c2769d = this.f18098c;
            Float f8 = new Float(1.0f);
            q.F0 f0 = n5.f18284b0;
            this.f18096a = 2;
            objC = C2769d.c(c2769d, f8, f0, null, this, 12);
        } finally {
            float f9 = n5.f18281a;
            mutableState2.setValue(str);
            mutableState.setValue(null);
        }
    }
}
