package defpackage;

/* JADX INFO: renamed from: ᵲᵛˈ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C4517 implements InterfaceC4833 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final InterfaceC4833 f17180;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final /* synthetic */ C4006 f17181;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public boolean f17182;

    public C4517(C4006 c4006, InterfaceC4833 interfaceC4833) {
        this.f17181 = c4006;
        this.f17180 = interfaceC4833;
    }

    @Override // defpackage.InterfaceC4833
    /* JADX INFO: renamed from: ʽˈˋ */
    public final void mo1983() {
        this.f17180.mo1983();
    }

    @Override // defpackage.InterfaceC4833
    /* JADX INFO: renamed from: ᵝᵶ */
    public final int mo1984(ˊˊᵞᵽ r12, C3008 c3008, int i) {
        C4006 c4006 = this.f17181;
        if (c4006.m8798()) {
            return -3;
        }
        if (this.f17182) {
            c3008.f9866 = 4;
            return -4;
        }
        long jMo3624 = c4006.mo3624();
        int iMo1984 = this.f17180.mo1984(r12, c3008, i);
        if (c4006.f15383 != -9223372036854775807L && iMo1984 != -3) {
            c4006.f15383 = -9223372036854775807L;
        }
        if (iMo1984 != -5) {
            long j = c4006.f15377;
            if (j == Long.MIN_VALUE || ((iMo1984 != -4 || c3008.f11577 < j) && !(iMo1984 == -3 && jMo3624 == Long.MIN_VALUE && !c3008.f11583))) {
                return iMo1984;
            }
            c3008.mo7091();
            c3008.f9866 = 4;
            this.f17182 = true;
            return -4;
        }
        long j2 = c4006.f15384;
        long j3 = c4006.f15377;
        C5286 c5286 = (C5286) r12.ᵔᵖᵹᵫ;
        c5286.getClass();
        int i2 = c5286.f19971;
        int i3 = c5286.f19961;
        if (i3 != 0 || i2 != 0) {
            if (j2 != 0) {
                i3 = 0;
            }
            if (j3 != Long.MIN_VALUE) {
                i2 = 0;
            }
            C4753 c4753M10878 = c5286.m10878();
            c4753M10878.f18092 = i3;
            c4753M10878.f18091 = i2;
            r12.ᵔᵖᵹᵫ = new C5286(c4753M10878);
        }
        return -5;
    }

    @Override // defpackage.InterfaceC4833
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public final boolean mo1985() {
        return !this.f17181.m8798() && this.f17180.mo1985();
    }

    @Override // defpackage.InterfaceC4833
    /* JADX INFO: renamed from: ᵶᵥᵝ */
    public final int mo1986(long j) {
        if (this.f17181.m8798()) {
            return -3;
        }
        return this.f17180.mo1986(j);
    }
}
