package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.q90, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC2220q90 {
    public C2599u90 a;
    public long b;
    public boolean c;
    public int d;

    public AbstractC2220q90(long j, C2599u90 c2599u90) {
        int iA;
        int iNumberOfTrailingZeros;
        this.a = c2599u90;
        this.b = j;
        C2694v90 c2694v90 = AbstractC2884x90.a;
        if (j != 0) {
            C2599u90 c2599u90D = d();
            long j2 = c2599u90D.n;
            long[] jArr = c2599u90D.f741o;
            if (jArr != null) {
                j = jArr[0];
            } else {
                long j3 = c2599u90D.m;
                if (j3 != 0) {
                    iNumberOfTrailingZeros = Long.numberOfTrailingZeros(j3);
                } else {
                    long j4 = c2599u90D.l;
                    if (j4 != 0) {
                        j2 += 64;
                        iNumberOfTrailingZeros = Long.numberOfTrailingZeros(j4);
                    }
                }
                j = iNumberOfTrailingZeros + j2;
            }
            synchronized (AbstractC2884x90.c) {
                iA = AbstractC2884x90.f.a(j);
            }
        } else {
            iA = -1;
        }
        this.d = iA;
    }

    public static void q(AbstractC2220q90 abstractC2220q90) {
        AbstractC2884x90.b.u(abstractC2220q90);
    }

    public final void a() {
        synchronized (AbstractC2884x90.c) {
            b();
            p();
        }
    }

    public void b() {
        AbstractC2884x90.d = AbstractC2884x90.d.b(g());
    }

    public abstract void c();

    public C2599u90 d() {
        return this.a;
    }

    public abstract OC e();

    public abstract boolean f();

    public long g() {
        return this.b;
    }

    public int h() {
        return 0;
    }

    public abstract OC i();

    public final AbstractC2220q90 j() {
        C70 c70 = AbstractC2884x90.b;
        AbstractC2220q90 abstractC2220q90 = (AbstractC2220q90) c70.get();
        c70.u(this);
        return abstractC2220q90;
    }

    public abstract void k();

    public abstract void l();

    public abstract void m();

    public abstract void n(Ga0 ga0);

    public final void o() {
        int i = this.d;
        if (i >= 0) {
            AbstractC2884x90.u(i);
            this.d = -1;
        }
    }

    public void p() {
        o();
    }

    public void r(C2599u90 c2599u90) {
        this.a = c2599u90;
    }

    public void s(long j) {
        this.b = j;
    }

    public void t(int i) {
        throw new IllegalStateException("Updating write count is not supported for this snapshot");
    }

    public abstract AbstractC2220q90 u(OC oc);
}
