package C0;

import V4.C0772m;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public W(long j4, Y y6, A4.d dVar) {
        super(2, dVar);
        this.f559b = j4;
        this.f560c = y6;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new W(this.f559b, this.f560c, dVar);
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:14:0x0034, code lost:
    
        if (V4.E.l(8, r10) == r0) goto L15;
     */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f558a;
        long j4 = this.f559b;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            this.f558a = 1;
            if (V4.E.l(j4 - 8, this) != aVar) {
            }
            return aVar;
        }
        if (i6 != 1) {
            if (i6 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            C0772m c0772m = this.f560c.f566c;
            if (c0772m != null) {
                c0772m.resumeWith(AbstractC2467b.d(new C0117s(j4)));
            }
            return C3137A.f25453a;
        }
        AbstractC2467b.l(obj);
        this.f558a = 2;
    }
}
