package x;

import c0.C1217r;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public R0(M m6, C3167h1 c3167h1, A4.d dVar) {
        super(2, dVar);
        this.f25686c = m6;
        this.f25687d = c3167h1;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        R0 r02 = new R0(this.f25686c, this.f25687d, dVar);
        r02.f25685b = obj;
        return r02;
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f25684a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            C1217r c1217r = new C1217r(29, (C3158e1) this.f25685b, this.f25687d);
            this.f25684a = 1;
            if (this.f25686c.invoke(c1217r, this) == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return C3137A.f25453a;
    }
}
