package defpackage;

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

/* renamed from: ᵨˈˑᵛ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3723 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public long f13893;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public long f13894;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public boolean f13895;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public int f13896;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final int f13897;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public Object f13898;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final /* synthetic */ C3423 f13899;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public int f13900;

    public C3723(C3423 c3423, int i) {
        this.f13899 = c3423;
        this.f13897 = i;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final void m8354() {
        C3423 c3423 = this.f13899;
        C5073 c5073 = (C5073) c3423.f12726;
        C3916 c3916 = (C3916) c3423.f12727;
        if (!c3916.m8606()) {
            if (this.f13895) {
                c5073.m10535(2);
            }
            this.f13895 = false;
            return;
        }
        AbstractC0488 abstractC0488M8641 = c3916.m8641();
        Object objMo2116 = abstractC0488M8641.m2115() ? null : abstractC0488M8641.mo2116(c3916.m8652());
        int iM8653 = c3916.m8653();
        int iM8628 = c3916.m8628();
        long jM8615 = c3916.m8615();
        if (objMo2116 != null && iM8653 == -1) {
            jM8615 -= AbstractC3558.m8161(abstractC0488M8641.mo2117(objMo2116, (C4479) c3423.f12724).f16705);
        }
        ((C1875) c3423.f12730).getClass();
        long jElapsedRealtime = SystemClock.elapsedRealtime();
        boolean z = this.f13895;
        int i = this.f13897;
        if (z && Objects.equals(objMo2116, this.f13898) && iM8653 == this.f13896 && iM8628 == this.f13900 && jM8615 == this.f13893) {
            if (jElapsedRealtime - this.f13894 >= i) {
                ((SurfaceHolderCallbackC4282) c3423.f12729).f16066.m8605(new ExoPlaybackException(2, new StuckPlayerException(2, i), 1003));
                return;
            }
            return;
        }
        this.f13895 = true;
        this.f13894 = jElapsedRealtime;
        this.f13898 = objMo2116;
        this.f13896 = iM8653;
        this.f13900 = iM8628;
        this.f13893 = jM8615;
        c5073.m10535(2);
        c5073.f18953.sendEmptyMessageDelayed(2, i);
    }
}
