package x;

import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

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

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C3161f1 c3161f1 = new C3161f1(this.f25783d, dVar);
        c3161f1.f25782c = ((h1.q) obj).f16636a;
        return c3161f1;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        long j4 = ((h1.q) obj).f16636a;
        C3161f1 c3161f1 = new C3161f1(this.f25783d, (A4.d) obj2);
        c3161f1.f25782c = j4;
        return c3161f1.invokeSuspend(C3137A.f25453a);
    }

    /* JADX WARN: Removed duplicated region for block: B:22:0x006f  */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        long j4;
        long j6;
        long j7;
        long j8;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f25781b;
        C3167h1 c3167h1 = this.f25783d;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            j4 = this.f25782c;
            B0.e eVar = c3167h1.f25814f;
            this.f25782c = j4;
            this.f25781b = 1;
            obj = eVar.b(j4, this);
            if (obj != aVar) {
            }
            return aVar;
        }
        if (i6 != 1) {
            if (i6 != 2) {
                if (i6 != 3) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                j8 = this.f25780a;
                j7 = this.f25782c;
                AbstractC2467b.l(obj);
                return new h1.q(h1.q.d(j7, h1.q.d(j8, ((h1.q) obj).f16636a)));
            }
            j6 = this.f25780a;
            j4 = this.f25782c;
            AbstractC2467b.l(obj);
            long j9 = ((h1.q) obj).f16636a;
            B0.e eVar2 = c3167h1.f25814f;
            long jD = h1.q.d(j6, j9);
            this.f25782c = j4;
            this.f25780a = j9;
            this.f25781b = 3;
            obj = eVar2.a(jD, j9, this);
            if (obj != aVar) {
                j7 = j4;
                j8 = j9;
                return new h1.q(h1.q.d(j7, h1.q.d(j8, ((h1.q) obj).f16636a)));
            }
            return aVar;
        }
        j4 = this.f25782c;
        AbstractC2467b.l(obj);
        long jD2 = h1.q.d(j4, ((h1.q) obj).f16636a);
        this.f25782c = j4;
        this.f25780a = jD2;
        this.f25781b = 2;
        obj = c3167h1.a(jD2, this);
        if (obj != aVar) {
            j6 = jD2;
            long j92 = ((h1.q) obj).f16636a;
            B0.e eVar22 = c3167h1.f25814f;
            long jD3 = h1.q.d(j6, j92);
            this.f25782c = j4;
            this.f25780a = j92;
            this.f25781b = 3;
            obj = eVar22.a(jD3, j92, this);
            if (obj != aVar) {
            }
        }
        return aVar;
    }
}
