package n;

import b0.AbstractC0399d;
import n.j;

/* JADX INFO: loaded from: classes.dex */
public abstract class G implements j.a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private int f5459a;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public String f5461c;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    protected int f5460b = 1;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    protected int f5462d = 0;

    final void A() {
        AbstractC0399d.e(this.f5459a == 2);
        this.f5459a = 3;
        t();
    }

    final void B() {
        AbstractC0399d.e(this.f5459a == 3);
        this.f5459a = 2;
        u();
    }

    @Override // n.j.a
    public void b(int i2, Object obj) {
    }

    final void c(long j2) {
        AbstractC0399d.e(this.f5459a == 2);
        this.f5459a = 1;
        q(j2);
    }

    protected abstract boolean d(long j2);

    protected abstract void e(long j2, long j3);

    final void f(int i2, long j2, boolean z2) {
        AbstractC0399d.e(this.f5459a == 1);
        this.f5459a = 2;
        r(i2, j2, z2);
    }

    protected abstract long g();

    public int h() {
        return 0;
    }

    protected abstract long i();

    protected abstract x j(int i2);

    protected o k() {
        return null;
    }

    protected final int l() {
        return this.f5459a;
    }

    protected abstract int m();

    protected abstract boolean n();

    protected abstract boolean o();

    protected abstract void p();

    protected void q(long j2) {
    }

    protected void r(int i2, long j2, boolean z2) {
    }

    protected void s() {
    }

    protected void t() {
    }

    protected void u() {
    }

    final int v(long j2) {
        AbstractC0399d.e(this.f5459a == 0);
        boolean zD = d(j2);
        this.f5459a = zD ? 1 : 0;
        return zD ? 1 : 0;
    }

    final void w() {
        int i2 = this.f5459a;
        AbstractC0399d.e((i2 == 2 || i2 == 3 || i2 == -1) ? false : true);
        this.f5459a = -1;
        s();
    }

    protected abstract void x(long j2);

    public void y(int i2) {
        this.f5462d = i2;
    }

    public void z(int i2) {
        this.f5460b = i2;
    }
}
