package Z4;

import Y4.InterfaceC0844j;
import Y4.O;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public e(InterfaceC0844j interfaceC0844j, g gVar, A4.d dVar) {
        super(2, dVar);
        this.f9167c = interfaceC0844j;
        this.f9168d = gVar;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        e eVar = new e(this.f9167c, this.f9168d, dVar);
        eVar.f9166b = obj;
        return eVar;
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) throws Throwable {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f9165a;
        C3137A c3137a = C3137A.f25453a;
        if (i6 != 0) {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return c3137a;
        }
        AbstractC2467b.l(obj);
        X4.v vVarH = this.f9168d.h((V4.C) this.f9166b);
        this.f9165a = 1;
        Object objK = O.k(this.f9167c, vVarH, true, this);
        if (objK != aVar) {
            objK = c3137a;
        }
        return objK == aVar ? aVar : c3137a;
    }
}
