package defpackage;

import android.os.Handler;

/* renamed from: ᵥᵳ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3545 implements InterfaceC0452 {

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public InterfaceC3048 f13280;

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public volatile boolean f13281;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public C1938 f13282;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public C0252 f13283;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final InterfaceC1794 f13284;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final C0093 f13285;

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public volatile long f13287;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final int f13288;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final C5553 f13290;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final ᵶﾞᴵ f13291;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final Handler f13286 = AbstractC3558.m8130(null);

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public volatile long f13289 = -9223372036854775807L;

    public C3545(int i, C0093 c0093, ᵶﾞᴵ r3, C5553 c5553, InterfaceC1794 interfaceC1794) {
        this.f13288 = i;
        this.f13285 = c0093;
        this.f13291 = r3;
        this.f13290 = c5553;
        this.f13284 = interfaceC1794;
    }

    @Override // defpackage.InterfaceC0452
    /* renamed from: ˎˏʜʾ */
    public final void mo1781() {
        if (this.f13281) {
            this.f13281 = false;
        }
        try {
            if (this.f13280 == null) {
                InterfaceC3048 interfaceC3048Mo5109 = this.f13284.mo5109(this.f13288);
                this.f13280 = interfaceC3048Mo5109;
                this.f13286.post(new RunnableC2331(this, interfaceC3048Mo5109.mo5554(), this.f13280, 15));
                InterfaceC3048 interfaceC3048 = this.f13280;
                interfaceC3048.getClass();
                this.f13282 = new C1938(interfaceC3048, 0L, -1L);
                C0252 c0252 = new C0252(this.f13285.f1349, this.f13288);
                this.f13283 = c0252;
                c0252.mo1573(this.f13290);
            }
            while (!this.f13281) {
                if (this.f13289 != -9223372036854775807L) {
                    C0252 c02522 = this.f13283;
                    c02522.getClass();
                    c02522.mo1577(this.f13287, this.f13289);
                    this.f13289 = -9223372036854775807L;
                }
                C0252 c02523 = this.f13283;
                c02523.getClass();
                C1938 c1938 = this.f13282;
                c1938.getClass();
                if (c02523.mo1578(c1938, new C4184()) == -1) {
                    break;
                }
            }
            this.f13281 = false;
            InterfaceC3048 interfaceC30482 = this.f13280;
            interfaceC30482.getClass();
            if (interfaceC30482.mo5555()) {
                ˏᵭᵔᵬ.ˇʼʤˎ(this.f13280);
                this.f13280 = null;
            }
        } catch (Throwable th) {
            InterfaceC3048 interfaceC30483 = this.f13280;
            interfaceC30483.getClass();
            if (interfaceC30483.mo5555()) {
                ˏᵭᵔᵬ.ˇʼʤˎ(this.f13280);
                this.f13280 = null;
            }
            throw th;
        }
    }

    @Override // defpackage.InterfaceC0452
    /* renamed from: ᵝᵵᵺ */
    public final void mo1782() {
        this.f13281 = true;
    }
}
