package p138.p176.p177.p190.p217.p219;

import p000.p001.p002.p003.p004.C0567;
import p138.p176.p177.p190.C3431;
import p138.p176.p177.p190.p198.C3558;
import p138.p176.p177.p190.p198.C3570;
import p138.p176.p177.p190.p198.InterfaceC3561;
import p138.p176.p177.p190.p217.p219.C3837;
import p138.p176.p177.p190.p238.C4098;
import p138.p176.p177.p190.p238.InterfaceC4095;
import p138.p176.p177.p190.p239.C4150;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ໞ.ޝ.ވ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C3847 extends AbstractC3836 {

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public static final C3570 f11867 = new C3570();

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final C3837 f11868;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public C3837.InterfaceC3839 f11869;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public long f11870;

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public volatile boolean f11871;

    public C3847(InterfaceC4095 interfaceC4095, C4098 c4098, C3431 c3431, int i, Object obj, C3837 c3837) {
        super(interfaceC4095, c4098, 2, c3431, i, obj, -9223372036854775807L, -9223372036854775807L);
        this.f11868 = c3837;
    }

    @Override // com.google.android.exoplayer2.upstream.Loader.InterfaceC0322
    /* JADX INFO: renamed from: ֏ */
    public void mo1299() {
        if (this.f11870 == 0) {
            this.f11868.m6214(this.f11869, -9223372036854775807L, -9223372036854775807L);
        }
        try {
            C4098 c4098M6585 = this.f11805.m6585(this.f11870);
            C3558 c3558 = new C3558(this.f11812, c4098M6585.f13080, this.f11812.mo1283(c4098M6585));
            try {
                InterfaceC3561 interfaceC3561 = this.f11868.f11813;
                int iMo5886 = 0;
                while (iMo5886 == 0 && !this.f11871) {
                    iMo5886 = interfaceC3561.mo5886(c3558, f11867);
                }
                C0567.m1932(iMo5886 != 1);
            } finally {
                this.f11870 = c3558.f10563 - this.f11805.f13080;
            }
        } finally {
            C4150.m6766((InterfaceC4095) this.f11812);
        }
    }

    @Override // com.google.android.exoplayer2.upstream.Loader.InterfaceC0322
    /* JADX INFO: renamed from: ؠ */
    public void mo1300() {
        this.f11871 = true;
    }
}
