package x;

import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: renamed from: x.g1, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C3164g1 extends C4.j implements J4.e {

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public C3164g1(C3167h1 c3167h1, J4.e eVar, A4.d dVar) {
        super(2, dVar);
        this.f25789c = c3167h1;
        this.f25790d = (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) {
        C3164g1 c3164g1 = new C3164g1(this.f25789c, this.f25790d, dVar);
        c3164g1.f25788b = obj;
        return c3164g1;
    }

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

    /* JADX WARN: Type inference failed for: r4v3, types: [C4.j, J4.e] */
    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f25787a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            G0 g0 = (G0) this.f25788b;
            C3167h1 c3167h1 = this.f25789c;
            c3167h1.f25819k = g0;
            this.f25787a = 1;
            if (this.f25790d.invoke(c3167h1.l, this) == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return C3137A.f25453a;
    }
}
