package defpackage;

/* JADX INFO: renamed from: ˇˊˑ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C0957 extends AbstractC0041 {

    /* JADX INFO: renamed from: ˀᵭ, reason: contains not printable characters */
    public final int f4228;

    /* JADX INFO: renamed from: ˊᵡᵗʨ, reason: contains not printable characters */
    public final C3511 f4229;

    /* JADX INFO: renamed from: ˊᵾʽʼ, reason: contains not printable characters */
    public final long f4230;

    /* JADX INFO: renamed from: ˑʢ, reason: contains not printable characters */
    public boolean f4231;

    /* JADX INFO: renamed from: ᵛˑﹳ, reason: contains not printable characters */
    public long f4232;

    /* JADX INFO: renamed from: ᵵᵬᵽ, reason: contains not printable characters */
    public volatile boolean f4233;

    public C0957(InterfaceC1070 interfaceC1070, C0084 c0084, C5286 c5286, int i, Object obj, long j, long j2, long j3, long j4, long j5, int i2, long j6, C3511 c3511) {
        super(interfaceC1070, c0084, c5286, i, obj, j, j2, j3, j4, j5);
        this.f4228 = i2;
        this.f4230 = j6;
        this.f4229 = c3511;
    }

    @Override // defpackage.AbstractC4352
    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final boolean mo3272() {
        return this.f4231;
    }

    @Override // defpackage.InterfaceC1933
    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final void mo3273() {
        this.f4233 = true;
    }

    @Override // defpackage.AbstractC4352
    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final long mo3274() {
        return this.f16558 + ((long) this.f4228);
    }

    @Override // defpackage.InterfaceC1933
    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final void mo3275() {
        C0767 c0767 = this.f1197;
        c0767.getClass();
        if (this.f4232 == 0) {
            long j = this.f4230;
            for (C0890 c0890 : (C0890[]) c0767.f3432) {
                if (c0890.f3919 != j) {
                    c0890.f3919 = j;
                    c0890.f3917 = true;
                }
            }
            C3511 c3511 = this.f4229;
            long j2 = this.f1195;
            long j3 = j2 == -9223372036854775807L ? -9223372036854775807L : j2 - this.f4230;
            long j4 = this.f1198;
            c3511.m8012(c0767, j3, j4 != -9223372036854775807L ? j4 - this.f4230 : -9223372036854775807L);
        }
        try {
            C0084 c0084M1131 = this.f7530.m1131(this.f4232);
            C0165 c0165 = this.f7534;
            C2373 c2373 = new C2373(c0165, c0084M1131.f1290, c0165.mo1308(c0084M1131));
            while (!this.f4233) {
                try {
                    int iMo1258 = this.f4229.f13484.mo1258(c2373, C3511.f13482);
                    ᵻᵪ.ˌᴵ(iMo1258 != 1);
                    if (!(iMo1258 == 0)) {
                        break;
                    }
                } finally {
                    this.f4232 = c2373.f9290 - this.f7530.f1290;
                }
            }
            C5286 c5286 = this.f7531;
            String str = c5286.f19972;
            int i = c5286.f19993;
            int i2 = c5286.f19977;
            if (AbstractC4208.m9131(str) && ((i > 1 || i2 > 1) && i != -1 && i2 != -1)) {
                InterfaceC5226 interfaceC5226M2781 = c0767.m2781(4);
                int i3 = i * i2;
                long j5 = (this.f7528 - this.f7526) / ((long) i3);
                for (int i4 = 1; i4 < i3; i4++) {
                    interfaceC5226M2781.mo1740(0, new C4545());
                    interfaceC5226M2781.mo1741(((long) i4) * j5, 0, 0, 0, null);
                }
            }
            ˑᵕʾ.ᵷᵺʾᵖ(this.f7534);
            this.f4231 = !this.f4233;
        } catch (Throwable th) {
            ˑᵕʾ.ᵷᵺʾᵖ(this.f7534);
            throw th;
        }
    }
}
