package Z6;

import e7.AbstractC0892a;
import java.lang.reflect.InvocationTargetException;
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;

/* JADX INFO: renamed from: Z6.k, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0371k extends g0 {

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final /* synthetic */ int f7527u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final C0369i f7528v;

    public /* synthetic */ C0371k(C0369i c0369i, int i) {
        this.f7527u = i;
        this.f7528v = c0369i;
    }

    @Override // Z6.g0
    public final boolean k() {
        switch (this.f7527u) {
            case n4.u0.f15495q /* 0 */:
                return true;
            default:
                return false;
        }
    }

    @Override // Z6.g0
    public final void l(Throwable th) throws IllegalAccessException, F, InvocationTargetException {
        switch (this.f7527u) {
            case n4.u0.f15495q /* 0 */:
                k0 k0VarJ = j();
                C0369i c0369i = this.f7528v;
                Throwable thT = c0369i.t(k0VarJ);
                if (c0369i.z()) {
                    e7.f fVar = (e7.f) c0369i.f7516t;
                    while (true) {
                        AtomicReferenceFieldUpdater atomicReferenceFieldUpdater = e7.f.f12545x;
                        Object obj = atomicReferenceFieldUpdater.get(fVar);
                        B3.f fVar2 = AbstractC0892a.f12535c;
                        if (P6.g.a(obj, fVar2)) {
                            while (!atomicReferenceFieldUpdater.compareAndSet(fVar, fVar2, thT)) {
                                if (atomicReferenceFieldUpdater.get(fVar) != fVar2) {
                                }
                                break;
                            }
                        } else if (!(obj instanceof Throwable)) {
                            while (!atomicReferenceFieldUpdater.compareAndSet(fVar, obj, null)) {
                                if (atomicReferenceFieldUpdater.get(fVar) != obj) {
                                }
                            }
                        }
                    }
                }
                c0369i.q(thT);
                if (!c0369i.z()) {
                    c0369i.r();
                }
                break;
            default:
                this.f7528v.i(A6.n.f457a);
                break;
        }
    }
}
