package B0;

import d3.R0;
import u0.C1578n;
import u0.C1579o;
import x0.AbstractC1709a;

/* JADX INFO: renamed from: B0.g, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC0020g implements l0 {

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

    /* JADX INFO: renamed from: B, reason: collision with root package name */
    public long f751B;
    public boolean D;

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

    /* JADX INFO: renamed from: G, reason: collision with root package name */
    public O0.q f755G;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final int f757r;

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

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

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public C0.l f761v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public x0.q f762w;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public int f763x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public L0.c0 f764y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public C1579o[] f765z;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final Object f756q = new Object();

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final R0 f758s = new R0(7, false);

    /* JADX INFO: renamed from: C, reason: collision with root package name */
    public long f752C = Long.MIN_VALUE;

    /* JADX INFO: renamed from: F, reason: collision with root package name */
    public u0.S f754F = u0.S.f17199a;

    public AbstractC0020g(int i) {
        this.f757r = i;
    }

    public final C0030q f(Exception exc, C1579o c1579o, boolean z8, int i) {
        int iY;
        if (c1579o == null || this.f753E) {
            iY = 4;
        } else {
            this.f753E = true;
            try {
                iY = y(c1579o) & 7;
            } catch (C0030q unused) {
                iY = 4;
            } finally {
                this.f753E = false;
            }
        }
        return new C0030q(1, exc, i, i(), this.f760u, c1579o, c1579o == null ? 4 : iY, z8);
    }

    public void g() {
    }

    public U h() {
        return null;
    }

    public abstract String i();

    public final boolean j() {
        return this.f752C == Long.MIN_VALUE;
    }

    public abstract boolean k();

    public abstract boolean l();

    public abstract void m();

    public abstract void o(long j8, boolean z8);

    public final int u(R0 r02, A0.h hVar, int i) {
        L0.c0 c0Var = this.f764y;
        c0Var.getClass();
        int i5 = c0Var.i(r02, hVar, i);
        if (i5 == -4) {
            if (hVar.d(4)) {
                this.f752C = Long.MIN_VALUE;
                return this.D ? -4 : -3;
            }
            long j8 = hVar.f20w + this.f750A;
            hVar.f20w = j8;
            this.f752C = Math.max(this.f752C, j8);
            return i5;
        }
        if (i5 == -5) {
            C1579o c1579o = (C1579o) r02.f11693s;
            c1579o.getClass();
            long j9 = c1579o.f17363s;
            if (j9 != Long.MAX_VALUE) {
                C1578n c1578nA = c1579o.a();
                c1578nA.f17325r = j9 + this.f750A;
                r02.f11693s = new C1579o(c1578nA);
            }
        }
        return i5;
    }

    public abstract void v(long j8, long j9);

    public final void w(C1579o[] c1579oArr, L0.c0 c0Var, long j8, long j9, L0.C c3) {
        AbstractC1709a.j(!this.D);
        this.f764y = c0Var;
        if (this.f752C == Long.MIN_VALUE) {
            this.f752C = j8;
        }
        this.f765z = c1579oArr;
        this.f750A = j9;
        t(c1579oArr, j8, j9, c3);
    }

    public void x(float f3, float f7) {
    }

    public abstract int y(C1579o c1579o);

    public int z() {
        return 0;
    }

    public void p() {
    }

    public void q() {
    }

    public void r() {
    }

    public void s() {
    }

    @Override // B0.l0
    public void d(int i, Object obj) {
    }

    public void n(boolean z8, boolean z9) {
    }

    public void t(C1579o[] c1579oArr, long j8, long j9, L0.C c3) {
    }
}
