package defpackage;

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

/* renamed from: ʾˏ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0259 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final /* synthetic */ C3423 f1822;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public boolean f1823;

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

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public int f1825;

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

    public C0259(C3423 c3423, int i) {
        this.f1822 = c3423;
        this.f1824 = i;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final void m1587() {
        C3423 c3423 = this.f1822;
        C5073 c5073 = (C5073) c3423.f12726;
        C3916 c3916 = (C3916) c3423.f12727;
        int iM8624 = c3916.m8624();
        if (!c3916.m8629() || c3916.m8640() == 1 || c3916.m8640() == 4 || iM8624 == 0 || iM8624 == 1) {
            if (this.f1823) {
                c5073.m10535(4);
            }
            this.f1823 = false;
            return;
        }
        ((C1875) c3423.f12730).getClass();
        long jElapsedRealtime = SystemClock.elapsedRealtime();
        boolean z = this.f1823;
        int i = this.f1824;
        if (z && this.f1825 == iM8624) {
            if (jElapsedRealtime - this.f1826 >= i) {
                ((SurfaceHolderCallbackC4282) c3423.f12729).f16066.m8605(new ExoPlaybackException(2, new StuckPlayerException(4, i), 1003));
                return;
            }
            return;
        }
        this.f1823 = true;
        this.f1826 = jElapsedRealtime;
        this.f1825 = iM8624;
        c5073.m10535(4);
        c5073.f18953.sendEmptyMessageDelayed(4, i);
    }
}
