package defpackage;

/* renamed from: ʿʕʾᵢ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0355 extends AbstractC0813 {

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public final long f2101;

    /* renamed from: ˑᵝﹳᵜ, reason: contains not printable characters */
    public boolean f2102;

    /* renamed from: ᵙᵢᵨᵳ, reason: contains not printable characters */
    public long f2103;

    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    public volatile boolean f2104;

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public final int f2105;

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public final C4823 f2106;

    public C0355(InterfaceC2569 interfaceC2569, C4179 c4179, C3446 c3446, int i, Object obj, long j, long j2, long j3, long j4, long j5, int i2, long j6, C4823 c4823) {
        super(interfaceC2569, c4179, c3446, i, obj, j, j2, j3, j4, j5);
        this.f2105 = i2;
        this.f2101 = j6;
        this.f2106 = c4823;
    }

    @Override // defpackage.InterfaceC0452
    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final void mo1781() {
        C2720 c2720 = this.f3775;
        c2720.getClass();
        if (this.f2103 == 0) {
            long j = this.f2101;
            for (C1666 c1666 : (C1666[]) c2720.f10550) {
                if (c1666.f6629 != j) {
                    c1666.f6629 = j;
                    c1666.f6598 = true;
                }
            }
            C4823 c4823 = this.f2106;
            long j2 = this.f3774;
            long j3 = j2 == -9223372036854775807L ? -9223372036854775807L : j2 - this.f2101;
            long j4 = this.f3773;
            c4823.m10156(c2720, j3, j4 != -9223372036854775807L ? j4 - this.f2101 : -9223372036854775807L);
        }
        try {
            C4179 c4179M9099 = this.f15963.m9099(this.f2103);
            C0186 c0186 = this.f15960;
            C1938 c1938 = new C1938(c0186, c4179M9099.f15616, c0186.mo1165(c4179M9099));
            while (!this.f2104) {
                try {
                    int iMo1578 = this.f2106.f17909.mo1578(c1938, C4823.f17901);
                    ᵛᵾˏ.ᵿʗᵝʽ(iMo1578 != 1);
                    if (!(iMo1578 == 0)) {
                        break;
                    }
                } finally {
                    this.f2103 = c1938.f7804 - this.f15963.f15616;
                }
            }
            C3446 c3446 = this.f15966;
            String str = c3446.f12926;
            int i = c3446.f12918;
            int i2 = c3446.f12909;
            if (AbstractC2924.m7109(str) && ((i > 1 || i2 > 1) && i != -1 && i2 != -1)) {
                InterfaceC2154 interfaceC2154M6737 = c2720.m6737(4);
                int i3 = i * i2;
                long j5 = (this.f15961 - this.f15959) / i3;
                for (int i4 = 1; i4 < i3; i4++) {
                    interfaceC2154M6737.mo4406(0, new C3493());
                    interfaceC2154M6737.mo4410(i4 * j5, 0, 0, 0, null);
                }
            }
            ˏᵭᵔᵬ.ˇʼʤˎ(this.f15960);
            this.f2102 = !this.f2104;
        } catch (Throwable th) {
            ˏᵭᵔᵬ.ˇʼʤˎ(this.f15960);
            throw th;
        }
    }

    @Override // defpackage.InterfaceC0452
    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final void mo1782() {
        this.f2104 = true;
    }

    @Override // defpackage.AbstractC3168
    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final long mo1783() {
        return this.f12017 + this.f2105;
    }

    @Override // defpackage.AbstractC3168
    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final boolean mo1784() {
        return this.f2102;
    }
}
