package Z6;

import e7.AbstractC0892a;
import java.lang.reflect.InvocationTargetException;

/* JADX INFO: loaded from: classes.dex */
public abstract class U extends AbstractC0378s {

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public static final /* synthetic */ int f7488v = 0;

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

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public boolean f7490t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public B6.i f7491u;

    @Override // Z6.AbstractC0378s
    public final AbstractC0378s l0(int i) {
        AbstractC0892a.a(1);
        return this;
    }

    public final void m0(boolean z8) {
        long j8 = this.f7489s - (z8 ? 4294967296L : 1L);
        this.f7489s = j8;
        if (j8 <= 0 && this.f7490t) {
            shutdown();
        }
    }

    public abstract Thread n0();

    public final void o0(boolean z8) {
        this.f7489s = (z8 ? 4294967296L : 1L) + this.f7489s;
        if (z8) {
            return;
        }
        this.f7490t = true;
    }

    public abstract long p0();

    public final boolean q0() throws IllegalAccessException, InvocationTargetException {
        B6.i iVar = this.f7491u;
        if (iVar == null) {
            return false;
        }
        H h8 = (H) (iVar.isEmpty() ? null : iVar.removeFirst());
        if (h8 == null) {
            return false;
        }
        h8.run();
        return true;
    }

    public void r0(long j8, Q q8) {
        A.f7467z.w0(j8, q8);
    }

    public abstract void shutdown();
}
