package o;

import java.util.ArrayList;
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.zc, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C3105zc extends AbstractC0992dJ {
    public static final /* synthetic */ AtomicReferenceFieldUpdater s = AtomicReferenceFieldUpdater.newUpdater(C3105zc.class, Object.class, "_disposer$volatile");
    private volatile /* synthetic */ Object _disposer$volatile;
    public final C2448sg p;
    public InterfaceC2567ts q;
    public final /* synthetic */ C0028Bc r;

    public C3105zc(C0028Bc c0028Bc, C2448sg c2448sg) {
        this.r = c0028Bc;
        this.p = c2448sg;
    }

    @Override // o.AbstractC0992dJ
    public final boolean j() {
        return false;
    }

    @Override // o.AbstractC0992dJ
    public final void k(Throwable th) {
        C2448sg c2448sg = this.p;
        if (th != null) {
            c2448sg.getClass();
            C2943xq c2943xqF = c2448sg.F(new C2075oj(th, false), null);
            if (c2943xqF != null) {
                c2448sg.v(c2943xqF);
                C0002Ac c0002Ac = (C0002Ac) s.get(this);
                if (c0002Ac != null) {
                    c0002Ac.b();
                    return;
                }
                return;
            }
            return;
        }
        AtomicIntegerFieldUpdater atomicIntegerFieldUpdater = C0028Bc.b;
        C0028Bc c0028Bc = this.r;
        if (atomicIntegerFieldUpdater.decrementAndGet(c0028Bc) == 0) {
            InterfaceC0276Kq[] interfaceC0276KqArr = c0028Bc.a;
            ArrayList arrayList = new ArrayList(interfaceC0276KqArr.length);
            for (InterfaceC0276Kq interfaceC0276Kq : interfaceC0276KqArr) {
                arrayList.add(interfaceC0276Kq.f());
            }
            c2448sg.resumeWith(arrayList);
        }
    }
}
