package x;

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

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

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ C4.j f25545d;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public D1(InterfaceC0765i0 interfaceC0765i0, J4.e eVar, A4.d dVar) {
        super(2, dVar);
        this.f25544c = interfaceC0765i0;
        this.f25545d = (C4.j) eVar;
    }

    /* JADX WARN: Type inference failed for: r1v0, types: [C4.j, J4.e] */
    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        D1 d1 = new D1(this.f25544c, this.f25545d, dVar);
        d1.f25543b = obj;
        return d1;
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:14:0x0040, code lost:
    
        if (r4.f25545d.invoke(r1, r4) == r0) goto L15;
     */
    /* JADX WARN: Type inference failed for: r5v5, types: [C4.j, J4.e] */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        V4.C c6;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f25542a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            c6 = (V4.C) this.f25543b;
            this.f25543b = c6;
            this.f25542a = 1;
            if (this.f25544c.join(this) != aVar) {
            }
            return aVar;
        }
        if (i6 != 1) {
            if (i6 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return C3137A.f25453a;
        }
        c6 = (V4.C) this.f25543b;
        AbstractC2467b.l(obj);
        this.f25543b = null;
        this.f25542a = 2;
    }
}
