package k1;

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public e(boolean z6, i iVar, long j4, A4.d dVar) {
        super(2, dVar);
        this.f19659b = z6;
        this.f19660c = iVar;
        this.f19661d = j4;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new e(this.f19659b, this.f19660c, this.f19661d, dVar);
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:13:0x0034, code lost:
    
        if (r11 == r0) goto L18;
     */
    /* JADX WARN: Code restructure failed: missing block: B:17:0x004a, code lost:
    
        if (r11 == r0) goto L18;
     */
    @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.f19658a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            i iVar = this.f19660c;
            if (this.f19659b) {
                this.f19658a = 2;
                obj = iVar.f19674a.a(this.f19661d, 0L, this);
            } else {
                this.f19658a = 1;
                obj = iVar.f19674a.a(0L, this.f19661d, this);
            }
            return aVar;
        }
        if (i6 == 1) {
            AbstractC2467b.l(obj);
            ((h1.q) obj).getClass();
        } else {
            if (i6 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            ((h1.q) obj).getClass();
        }
        return C3137A.f25453a;
    }
}
