package h3;

import androidx.compose.runtime.MutableState;
import java.util.concurrent.ConcurrentHashMap;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ n0.x f17046b;

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public M0(n0.x xVar, MutableState mutableState, MutableState mutableState2, A4.d dVar) {
        super(2, dVar);
        this.f17046b = xVar;
        this.f17047c = mutableState;
        this.f17048d = mutableState2;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new M0(this.f17046b, this.f17047c, this.f17048d, dVar);
    }

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

    /* JADX WARN: Multi-variable type inference failed */
    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f17045a;
        MutableState mutableState = this.f17048d;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            MutableState mutableState2 = this.f17047c;
            ConcurrentHashMap concurrentHashMap = Q0.f17204a;
            if (!((Boolean) mutableState2.getValue()).booleanValue() && ((Boolean) mutableState.getValue()).booleanValue()) {
                this.f17045a = 1;
                if (V4.E.l(16L, this) == aVar) {
                    return aVar;
                }
            }
            return C3137A.f25453a;
        }
        if (i6 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        AbstractC2467b.l(obj);
        n0.x.a(this.f17046b);
        ConcurrentHashMap concurrentHashMap2 = Q0.f17204a;
        mutableState.setValue(Boolean.FALSE);
        return C3137A.f25453a;
    }
}
