package J0;

import android.view.View;
import i0.C2258v;
import java.util.concurrent.atomic.AtomicReference;
import m3.AbstractC2467b;

/* JADX INFO: loaded from: classes.dex */
public final class X implements V4.C {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final View f2964a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Z0.z f2965b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final V4.C f2966c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final AtomicReference f2967d = new AtomicReference(null);

    public X(View view, Z0.z zVar, V4.C c6) {
        this.f2964a = view;
        this.f2965b = zVar;
        this.f2966c = c6;
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void a(T.x xVar, C4.c cVar) {
        V v3;
        if (cVar instanceof V) {
            v3 = (V) cVar;
            int i6 = v3.f2957c;
            if ((i6 & Integer.MIN_VALUE) != 0) {
                v3.f2957c = i6 - Integer.MIN_VALUE;
            } else {
                v3 = new V(this, cVar);
            }
        }
        Object obj = v3.f2955a;
        B4.a aVar = B4.a.f492a;
        int i7 = v3.f2957c;
        if (i7 == 0) {
            AbstractC2467b.l(obj);
            AtomicReference atomicReference = this.f2967d;
            C0.H h5 = new C0.H(3, xVar, this);
            W w6 = new W(this, null);
            v3.f2957c = 1;
            if (V4.E.k(new C2258v(h5, atomicReference, w6, null), v3) == aVar) {
                return;
            }
        } else {
            if (i7 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        throw new E3.v();
    }

    @Override // V4.C
    public final A4.j getCoroutineContext() {
        return this.f2966c.getCoroutineContext();
    }
}
