package h3;

import androidx.compose.runtime.MutableState;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import m3.AbstractC2467b;
import w4.C3137A;
import x4.AbstractC3251q;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public N0(Map map, List list, MutableState mutableState, A4.d dVar) {
        super(2, dVar);
        this.f17081b = map;
        this.f17082c = list;
        this.f17083d = mutableState;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new N0(this.f17081b, this.f17082c, this.f17083d, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((N0) 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.f17080a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            MutableState mutableState = this.f17083d;
            ConcurrentHashMap concurrentHashMap = Q0.f17204a;
            if (((Boolean) mutableState.getValue()).booleanValue()) {
                this.f17080a = 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);
        V2.R2 r22 = (V2.R2) AbstractC3251q.g0(this.f17082c);
        n0.x xVar = (n0.x) this.f17081b.get(r22 != null ? r22.f7513a : null);
        if (xVar != null) {
            n0.x.a(xVar);
        }
        return C3137A.f25453a;
    }
}
