package Q;

import V.X;
import V4.C;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ R.f f5701d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ f f5702e;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public g(h hVar, long j4, R.f fVar, f fVar2, A4.d dVar) {
        super(2, dVar);
        this.f5699b = hVar;
        this.f5700c = j4;
        this.f5701d = fVar;
        this.f5702e = fVar2;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new g(this.f5699b, this.f5700c, this.f5701d, this.f5702e, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((g) create((C) 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.f5698a;
        C3137A c3137a = C3137A.f25453a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            X x6 = this.f5699b.f5703c;
            if (x6 != null) {
                this.f5698a = 1;
                if (new X(x6.f7017b, this).invokeSuspend(c3137a) != aVar) {
                }
            }
        } else {
            if (i6 != 1) {
                if (i6 == 2) {
                    AbstractC2467b.l(obj);
                }
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        this.f5698a = 2;
        return this.f5701d.a(this.f5702e, this) == aVar ? aVar : c3137a;
    }
}
