package K2;

import V4.C;
import V4.E;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.State;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public l(State state, MutableState mutableState, A4.d dVar) {
        super(2, dVar);
        this.f4104b = state;
        this.f4105c = mutableState;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new l(this.f4104b, this.f4105c, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f4103a;
        MutableState mutableState = this.f4105c;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            State state = this.f4104b;
            if (((q) state.getValue()) != null) {
                mutableState.setValue((q) state.getValue());
                return C3137A.f25453a;
            }
            this.f4103a = 1;
            if (E.l(280L, this) == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        mutableState.setValue(null);
        return C3137A.f25453a;
    }
}
