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.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 class C3845 extends AbstractC3833 {

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

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public final int f11859;

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public final long f11860;

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

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

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

    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public boolean f11864;

    public C3845(InterfaceC4095 interfaceC4095, C4098 c4098, C3431 c3431, int i, Object obj, long j, long j2, long j3, long j4, long j5, int i2, long j6, C3837 c3837) {
        super(interfaceC4095, c4098, c3431, i, obj, j, j2, j3, j4, j5);
        this.f11859 = i2;
        this.f11860 = j6;
        this.f11861 = c3837;
    }

    @Override // com.google.android.exoplayer2.upstream.Loader.InterfaceC0322
    /* JADX INFO: renamed from: ֏ */
    public final void mo1299() {
        if (this.f11862 == 0) {
            C3835 c3835 = this.f11800;
            c3835.m6213(this.f11860);
            C3837 c3837 = this.f11861;
            long j = this.f11798;
            long j2 = j == -9223372036854775807L ? -9223372036854775807L : j - this.f11860;
            long j3 = this.f11799;
            c3837.m6214(c3835, j2, j3 == -9223372036854775807L ? -9223372036854775807L : j3 - this.f11860);
        }
        try {
            C4098 c4098M6585 = this.f11805.m6585(this.f11862);
            C3558 c3558 = new C3558(this.f11812, c4098M6585.f13080, this.f11812.mo1283(c4098M6585));
            try {
                InterfaceC3561 interfaceC3561 = this.f11861.f11813;
                int iMo5886 = 0;
                while (iMo5886 == 0 && !this.f11863) {
                    iMo5886 = interfaceC3561.mo5886(c3558, f11858);
                }
                C0567.m1932(iMo5886 != 1);
                C4150.m6766((InterfaceC4095) this.f11812);
                this.f11864 = true;
            } finally {
                this.f11862 = c3558.f10563 - this.f11805.f13080;
            }
        } catch (Throwable th) {
            C4150.m6766((InterfaceC4095) this.f11812);
            throw th;
        }
    }

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

    @Override // p138.p176.p177.p190.p217.p219.AbstractC3848
    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public long mo6233() {
        return this.f11872 + ((long) this.f11859);
    }

    @Override // p138.p176.p177.p190.p217.p219.AbstractC3848
    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public boolean mo6234() {
        return this.f11864;
    }
}
