package S1;

import m3.AbstractC2467b;
import w4.C3137A;
import x4.AbstractC3229F;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public /* synthetic */ Object f6143b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ C4.j f6144c;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public h(J4.e eVar, A4.d dVar) {
        super(2, dVar);
        this.f6144c = (C4.j) eVar;
    }

    /* JADX WARN: Type inference failed for: r1v0, types: [C4.j, J4.e] */
    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        h hVar = new h(this.f6144c, dVar);
        hVar.f6143b = obj;
        return hVar;
    }

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

    /* JADX WARN: Type inference failed for: r5v5, types: [C4.j, J4.e] */
    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f6142a;
        if (i6 != 0) {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            b bVar = (b) this.f6143b;
            AbstractC2467b.l(obj);
            return bVar;
        }
        AbstractC2467b.l(obj);
        b bVar2 = new b(AbstractC3229F.I(((g) this.f6143b).a()), false);
        this.f6143b = bVar2;
        this.f6142a = 1;
        return this.f6144c.invoke(bVar2, this) == aVar ? aVar : bVar2;
    }
}
