package defpackage;

import android.os.Handler;
import android.os.Message;
import android.os.SystemClock;
import android.view.Surface;
import androidx.media3.exoplayer.ExoPlaybackException;

/* JADX INFO: renamed from: ˎᵮː, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1771 implements Handler.Callback {

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

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final /* synthetic */ ᵦʝᵛᵤ f7107;

    public C1771(ᵦʝᵛᵤ r1, InterfaceC1595 interfaceC1595) {
        this.f7107 = r1;
        Handler handlerM3260 = AbstractC0956.m3260(this);
        this.f7106 = handlerM3260;
        interfaceC1595.mo3028(this, handlerM3260);
    }

    @Override // android.os.Handler.Callback
    public final boolean handleMessage(Message message) {
        if (message.what != 0) {
            return false;
        }
        int i = message.arg1;
        int i2 = message.arg2;
        String str = AbstractC0956.f4222;
        m4907(((((long) i) & 4294967295L) << 32) | (4294967295L & ((long) i2)));
        return true;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final void m4907(long j) {
        Surface surface;
        ᵦʝᵛᵤ r0 = this.f7107;
        ʽᵺᴵ r1 = r0.ᵾᵧ;
        if (this != r0.ᵿˈˌ || r0.f19898 == null) {
            return;
        }
        if (j == Long.MAX_VALUE) {
            r0.f19890 = true;
            return;
        }
        try {
            r0.m10850(j);
            C2763 c2763 = r0.ᵦᵎ;
            if (!c2763.equals(C2763.f10620) && !c2763.equals(r0.ᵩٴʽ)) {
                r0.ᵩٴʽ = c2763;
                r1.ˊᵙᵾᵲ(c2763);
            }
            r0.f19843.f9822++;
            C3560 c3560 = r0.ʾᵕˈ;
            boolean z = c3560.f13636 != 3;
            c3560.f13636 = 3;
            c3560.f13638.getClass();
            c3560.f13641 = AbstractC0956.m3214(SystemClock.elapsedRealtime());
            if (z && (surface = r0.ᵔˏˉᵶ) != null) {
                Handler handler = (Handler) r1.ᵜᵪʾ;
                if (handler != null) {
                    handler.post(new RunnableC5383(r1, surface, SystemClock.elapsedRealtime()));
                }
                r0.ᵤˌˏ = true;
            }
            r0.ːᵝٴᵶ(j);
        } catch (ExoPlaybackException e) {
            r0.f19865 = e;
        }
    }
}
