package defpackage;

import android.os.SystemClock;
import androidx.media3.common.util.StuckPlayerException;
import androidx.media3.exoplayer.ExoPlaybackException;
import j$.util.Objects;

/* JADX INFO: renamed from: ᵝᵯˏ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C2955 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public Object f11358;

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final /* synthetic */ C4735 f11359;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public int f11360;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public long f11361;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final int f11362;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public long f11363;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public int f11364;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public boolean f11365;

    public C2955(C4735 c4735, int i) {
        this.f11359 = c4735;
        this.f11362 = i;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final void m7041() {
        C4735 c4735 = this.f11359;
        C3086 c3086 = (C3086) c4735.f18007;
        C3262 c3262 = (C3262) c4735.f18000;
        if (!c3262.m7445()) {
            if (this.f11365) {
                c3086.m7173(2);
            }
            this.f11365 = false;
            return;
        }
        AbstractC4975 abstractC4975M7457 = c3262.m7457();
        Object objMo1665 = abstractC4975M7457.m10285() ? null : abstractC4975M7457.mo1665(c3262.m7488());
        int iM7454 = c3262.m7454();
        int iM7490 = c3262.m7490();
        long jM7480 = c3262.m7480();
        if (objMo1665 != null && iM7454 == -1) {
            jM7480 -= AbstractC0956.m3264(abstractC4975M7457.mo7165(objMo1665, (C4593) c4735.f18001).f17477);
        }
        ((C2353) c4735.f17998).getClass();
        long jElapsedRealtime = SystemClock.elapsedRealtime();
        boolean z = this.f11365;
        int i = this.f11362;
        if (z && Objects.equals(objMo1665, this.f11358) && iM7454 == this.f11360 && iM7490 == this.f11364 && jM7480 == this.f11361) {
            if (jElapsedRealtime - this.f11363 >= i) {
                ((SurfaceHolderCallbackC2683) c4735.f18003).f10352.m7475(new ExoPlaybackException(2, new StuckPlayerException(2, i), 1003));
                return;
            }
            return;
        }
        this.f11365 = true;
        this.f11363 = jElapsedRealtime;
        this.f11358 = objMo1665;
        this.f11360 = iM7454;
        this.f11364 = iM7490;
        this.f11361 = jM7480;
        c3086.m7173(2);
        c3086.f11775.sendEmptyMessageDelayed(2, i);
    }
}
