package defpackage;

import androidx.media3.exoplayer.drm.DrmSession$DrmSessionException;
import j$.util.DesugarCollections;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/* renamed from: ᵣˇˀ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3341 implements InterfaceC0772, InterfaceC5211, InterfaceC1426, InterfaceC2428 {

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final C4782 f12457;

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public AbstractC0813 f12458;

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public AbstractC4261 f12459;

    /* renamed from: ˆᵼᵷˊ, reason: contains not printable characters */
    public boolean f12460;

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public int f12461;

    /* renamed from: ˌᵪ, reason: contains not printable characters */
    public boolean f12462;

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public final C4164 f12463;

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

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public final ᵧˉʙ f12465;

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public final C1666[] f12466;

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

    /* renamed from: ᵛˈᵤ, reason: contains not printable characters */
    public boolean f12468;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public final C1899 f12469;

    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    public long f12470;

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

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final int[] f12472;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final InterfaceC5009 f12473;

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public final List f12474;

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

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public final ArrayList f12476;

    /* renamed from: ᵳᵹᵺˋ, reason: contains not printable characters */
    public boolean f12477;

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

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public final C1666 f12479;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final boolean[] f12480;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final C3446[] f12481;

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public C3446 f12482;

    public C3341(int i, int[] iArr, C3446[] c3446Arr, InterfaceC5009 interfaceC5009, InterfaceC4532 interfaceC4532, ᵧˉʙ r14, long j, InterfaceC0687 interfaceC0687, C2221 c2221, C1899 c1899, C4782 c4782, boolean z, long j2, ExecutorC1049 executorC1049) {
        this.f12475 = i;
        iArr = iArr == null ? new int[0] : iArr;
        this.f12472 = iArr;
        this.f12481 = c3446Arr == null ? new C3446[0] : c3446Arr;
        this.f12473 = interfaceC5009;
        this.f12471 = interfaceC4532;
        this.f12457 = c4782;
        this.f12469 = c1899;
        this.f12465 = executorC1049 != null ? new ᵧˉʙ(executorC1049) : new ᵧˉʙ(2, "ChunkSampleStream");
        this.f12463 = new C4164();
        ArrayList arrayList = new ArrayList();
        this.f12476 = arrayList;
        this.f12474 = DesugarCollections.unmodifiableList(arrayList);
        int length = iArr.length;
        this.f12466 = new C1666[length];
        this.f12480 = new boolean[length];
        int i2 = length + 1;
        int[] iArr2 = new int[i2];
        C1666[] c1666Arr = new C1666[i2];
        interfaceC0687.getClass();
        C1666 c1666 = new C1666(r14, interfaceC0687, c2221);
        this.f12479 = c1666;
        iArr2[0] = i;
        c1666Arr[0] = c1666;
        int i3 = 0;
        while (i3 < length) {
            C1666 c16662 = new C1666(r14, null, null);
            this.f12466[i3] = c16662;
            int i4 = i3 + 1;
            c1666Arr[i4] = c16662;
            iArr2[i4] = this.f12472[i3];
            i3 = i4;
        }
        this.f12478 = new C2720(iArr2, 7, c1666Arr);
        this.f12470 = j;
        this.f12464 = j;
        this.f12460 = z;
        if (!z || j2 == -9223372036854775807L) {
            return;
        }
        this.f12460 = false;
        this.f12468 = j2 < j;
    }

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final int m7730(int i, int i2) {
        ArrayList arrayList;
        do {
            i2++;
            arrayList = this.f12476;
            if (i2 >= arrayList.size()) {
                return arrayList.size() - 1;
            }
        } while (((AbstractC0813) arrayList.get(i2)).m2913(0) <= i);
        return i2 - 1;
    }

    @Override // defpackage.InterfaceC1426
    /* renamed from: ˁˑᵰ */
    public final C3160 mo3510(InterfaceC0452 interfaceC0452, long j, long j2, IOException iOException, int i) {
        C3160 c3160;
        AbstractC4261 abstractC4261 = (AbstractC4261) interfaceC0452;
        long j3 = abstractC4261.f15960.f1628;
        boolean z = abstractC4261 instanceof AbstractC0813;
        ArrayList arrayList = this.f12476;
        int size = arrayList.size() - 1;
        boolean z2 = (j3 != 0 && z && m7736(size)) ? false : true;
        C4179 c4179 = abstractC4261.f15963;
        C0186 c0186 = abstractC4261.f15960;
        boolean z3 = z2;
        C0417 c0417 = new C0417(c4179, c0186.f1631, c0186.f1630, j, j2, j3);
        AbstractC3558.m8161(abstractC4261.f15959);
        AbstractC3558.m8161(abstractC4261.f15961);
        C2124 c2124 = new C2124(i, 5, iOException);
        InterfaceC5009 interfaceC5009 = this.f12473;
        C1899 c1899 = this.f12469;
        if (!interfaceC5009.mo6583(abstractC4261, z3, c2124, c1899)) {
            c3160 = null;
        } else if (z3) {
            c3160 = ᵧˉʙ.ᵡˎ;
            if (z) {
                ᵛᵾˏ.ᵿʗᵝʽ(m7733(size) == abstractC4261);
                if (arrayList.isEmpty()) {
                    this.f12470 = this.f12464;
                }
            }
        } else {
            ᵳʿˉ.ᵶʔᵢˊ("Ignoring attempt to cancel non-cancelable load.");
            c3160 = null;
        }
        if (c3160 == null) {
            long jM5318 = c1899.m5318(c2124);
            c3160 = jM5318 != -9223372036854775807L ? new C3160(0, jM5318, false) : ᵧˉʙ.ˑᵥˁ;
        }
        boolean zM7518 = c3160.m7518();
        this.f12457.m10093(c0417, abstractC4261.f15967, this.f12475, abstractC4261.f15966, abstractC4261.f15964, abstractC4261.f15962, abstractC4261.f15959, abstractC4261.f15961, iOException, !zM7518);
        if (!zM7518) {
            this.f12459 = null;
            c1899.getClass();
            this.f12471.mo1661(this);
        }
        return c3160;
    }

    @Override // defpackage.InterfaceC0772
    /* renamed from: ˇʼʤˎ */
    public final int mo1125(C2720 c2720, C2441 c2441, int i) {
        if (m7740() || m7737() || this.f12462) {
            return -3;
        }
        AbstractC0813 abstractC0813 = this.f12458;
        C1666 c1666 = this.f12479;
        if (abstractC0813 != null && abstractC0813.m2913(0) <= c1666.m4777()) {
            return -3;
        }
        m7735();
        return c1666.m4780(c2720, c2441, i, this.f12477);
    }

    @Override // defpackage.InterfaceC1426
    /* renamed from: ˌʾˀ */
    public final void mo3512(InterfaceC0452 interfaceC0452, long j, long j2) {
        AbstractC4261 abstractC4261 = (AbstractC4261) interfaceC0452;
        this.f12459 = null;
        this.f12473.mo6577(abstractC4261);
        long j3 = abstractC4261.f15965;
        C4179 c4179 = abstractC4261.f15963;
        C0186 c0186 = abstractC4261.f15960;
        C0417 c0417 = new C0417(c4179, c0186.f1631, c0186.f1630, j, j2, c0186.f1628);
        this.f12469.getClass();
        this.f12457.m10085(c0417, abstractC4261.f15967, this.f12475, abstractC4261.f15966, abstractC4261.f15964, abstractC4261.f15962, abstractC4261.f15959, abstractC4261.f15961);
        this.f12471.mo1661(this);
    }

    @Override // defpackage.InterfaceC0772
    /* renamed from: ˌᵜᵹᵩ */
    public final int mo1126(long j) {
        if (m7740() || m7737() || this.f12462) {
            return 0;
        }
        boolean z = this.f12477;
        C1666 c1666 = this.f12479;
        int iM4789 = c1666.m4789(z, j);
        AbstractC0813 abstractC0813 = this.f12458;
        if (abstractC0813 != null) {
            iM4789 = Math.min(iM4789, abstractC0813.m2913(0) - c1666.m4777());
        }
        c1666.m4768(iM4789);
        m7735();
        return iM4789;
    }

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public final void m7731(long j) throws Throwable {
        this.f12479.m4790(j);
        for (C1666 c1666 : this.f12466) {
            c1666.m4790(j);
        }
    }

    @Override // defpackage.InterfaceC1426
    /* renamed from: ˏˋٴ */
    public final void mo3514(InterfaceC0452 interfaceC0452, long j, long j2, boolean z) {
        AbstractC4261 abstractC4261 = (AbstractC4261) interfaceC0452;
        this.f12459 = null;
        this.f12458 = null;
        long j3 = abstractC4261.f15965;
        C4179 c4179 = abstractC4261.f15963;
        C0186 c0186 = abstractC4261.f15960;
        C0417 c0417 = new C0417(c4179, c0186.f1631, c0186.f1630, j, j2, c0186.f1628);
        this.f12469.getClass();
        this.f12457.m10086(c0417, abstractC4261.f15967, this.f12475, abstractC4261.f15966, abstractC4261.f15964, abstractC4261.f15962, abstractC4261.f15959, abstractC4261.f15961);
        if (z) {
            return;
        }
        if (m7740()) {
            this.f12479.m4787(false);
            for (C1666 c1666 : this.f12466) {
                c1666.m4787(false);
            }
        } else if (abstractC4261 instanceof AbstractC0813) {
            ArrayList arrayList = this.f12476;
            m7733(arrayList.size() - 1);
            if (arrayList.isEmpty()) {
                this.f12470 = this.f12464;
            }
        }
        this.f12471.mo1661(this);
    }

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public final void m7732(long j) throws Throwable {
        ArrayList arrayList;
        AbstractC0813 abstractC0813;
        boolean zM4761;
        AbstractC0813 abstractC08132;
        this.f12464 = j;
        int i = 0;
        this.f12460 = false;
        this.f12468 = false;
        if (m7740()) {
            this.f12470 = j;
            return;
        }
        int i2 = 0;
        while (true) {
            arrayList = this.f12476;
            if (i2 >= arrayList.size()) {
                break;
            }
            abstractC0813 = (AbstractC0813) arrayList.get(i2);
            long j2 = abstractC0813.f15959;
            if (j2 == j && abstractC0813.f3774 == -9223372036854775807L) {
                break;
            } else if (j2 > j) {
                break;
            } else {
                i2++;
            }
        }
        abstractC0813 = null;
        C1666 c1666 = this.f12479;
        if (abstractC0813 != null) {
            zM4761 = c1666.m4783(abstractC0813.m2913(0));
        } else {
            long jMo1675 = mo1675();
            zM4761 = c1666.m4761(jMo1675 == Long.MIN_VALUE || j < jMo1675, j);
        }
        if (zM4761 && (abstractC08132 = this.f12458) != null && abstractC08132.m2913(0) <= c1666.m4777()) {
            zM4761 = false;
        }
        C1666[] c1666Arr = this.f12466;
        if (zM4761) {
            this.f12461 = m7730(c1666.m4777(), 0);
            int length = c1666Arr.length;
            while (i < length) {
                c1666Arr[i].m4761(true, j);
                i++;
            }
            return;
        }
        this.f12470 = j;
        this.f12477 = false;
        arrayList.clear();
        this.f12461 = 0;
        ᵧˉʙ r10 = this.f12465;
        if (r10.ᵧـˌᵎ()) {
            c1666.m4763();
            int length2 = c1666Arr.length;
            while (i < length2) {
                c1666Arr[i].m4763();
                i++;
            }
            r10.ˌʾˀ();
            return;
        }
        r10.ᵾᵬ = null;
        c1666.m4787(false);
        for (C1666 c16662 : c1666Arr) {
            c16662.m4787(false);
        }
    }

    @Override // defpackage.InterfaceC5211
    /* renamed from: ˑᵱ */
    public final void mo1664(long j) {
        ᵧˉʙ r0 = this.f12465;
        if (r0.ˎˑː() || m7740()) {
            return;
        }
        boolean z = r0.ᵧـˌᵎ();
        List list = this.f12474;
        InterfaceC5009 interfaceC5009 = this.f12473;
        ArrayList arrayList = this.f12476;
        if (z) {
            AbstractC4261 abstractC4261 = this.f12459;
            abstractC4261.getClass();
            boolean z2 = abstractC4261 instanceof AbstractC0813;
            if (!(z2 && m7736(arrayList.size() - 1)) && interfaceC5009.mo6579(j, abstractC4261, list)) {
                r0.ˌʾˀ();
                if (z2) {
                    this.f12458 = (AbstractC0813) abstractC4261;
                    return;
                }
                return;
            }
            return;
        }
        int iMo6578 = interfaceC5009.mo6578(j, list);
        if (iMo6578 < arrayList.size()) {
            ᵛᵾˏ.ᵿʗᵝʽ(!r0.ᵧـˌᵎ());
            int size = arrayList.size();
            while (true) {
                if (iMo6578 >= size) {
                    iMo6578 = -1;
                    break;
                } else if (!m7736(iMo6578)) {
                    break;
                } else {
                    iMo6578++;
                }
            }
            if (iMo6578 != -1) {
                long j2 = m7738().f15961;
                AbstractC0813 abstractC0813M7733 = m7733(iMo6578);
                if (arrayList.isEmpty()) {
                    this.f12470 = this.f12464;
                }
                this.f12477 = false;
                this.f12457.m10082(abstractC0813M7733.f15959, this.f12475, j2);
            }
        }
        if (this.f12479.m4775()) {
            this.f12477 = true;
        }
    }

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public final AbstractC0813 m7733(int i) {
        ArrayList arrayList = this.f12476;
        AbstractC0813 abstractC0813 = (AbstractC0813) arrayList.get(i);
        AbstractC3558.m8102(arrayList, i, arrayList.size());
        this.f12461 = Math.max(this.f12461, arrayList.size());
        int i2 = 0;
        this.f12479.m4782(abstractC0813.m2913(0));
        while (true) {
            C1666[] c1666Arr = this.f12466;
            if (i2 >= c1666Arr.length) {
                return abstractC0813;
            }
            C1666 c1666 = c1666Arr[i2];
            i2++;
            c1666.m4782(abstractC0813.m2913(i2));
        }
    }

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public final void m7734(C2798 c2798) {
        this.f12467 = c2798;
        C1666 c1666 = this.f12479;
        c1666.m4763();
        InterfaceC1660 interfaceC1660 = c1666.f6628;
        if (interfaceC1660 != null) {
            interfaceC1660.mo4742(c1666.f6599);
            c1666.f6628 = null;
            c1666.f6602 = null;
        }
        for (C1666 c16662 : this.f12466) {
            c16662.m4763();
            InterfaceC1660 interfaceC16602 = c16662.f6628;
            if (interfaceC16602 != null) {
                interfaceC16602.mo4742(c16662.f6599);
                c16662.f6628 = null;
                c16662.f6602 = null;
            }
        }
        this.f12465.ˁˑᵰ(this);
    }

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final void m7735() {
        int iM7730 = m7730(this.f12479.m4777(), this.f12461 - 1);
        while (true) {
            int i = this.f12461;
            if (i > iM7730) {
                return;
            }
            this.f12461 = i + 1;
            AbstractC0813 abstractC0813 = (AbstractC0813) this.f12476.get(i);
            C3446 c3446 = abstractC0813.f15966;
            if (!c3446.equals(this.f12482)) {
                this.f12457.m10098(this.f12475, c3446, abstractC0813.f15964, abstractC0813.f15962, abstractC0813.f15959);
            }
            this.f12482 = c3446;
        }
    }

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final boolean m7736(int i) {
        int iM4777;
        AbstractC0813 abstractC0813 = (AbstractC0813) this.f12476.get(i);
        if (this.f12479.m4777() > abstractC0813.m2913(0)) {
            return true;
        }
        int i2 = 0;
        do {
            C1666[] c1666Arr = this.f12466;
            if (i2 >= c1666Arr.length) {
                return false;
            }
            iM4777 = c1666Arr[i2].m4777();
            i2++;
        } while (iM4777 <= abstractC0813.m2913(i2));
        return true;
    }

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final boolean m7737() {
        return ((!this.f12460 && !this.f12468) || this.f12477 || this.f12465.ˎˑː()) ? false : true;
    }

    @Override // defpackage.InterfaceC0772
    /* renamed from: ᵥᵯˎ */
    public final boolean mo1128() {
        return !m7740() && this.f12479.m4773(this.f12477);
    }

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final AbstractC0813 m7738() {
        return (AbstractC0813) AbstractC1327.m4111(1, this.f12476);
    }

    @Override // defpackage.InterfaceC5211
    /* renamed from: ᵨᵳʝ */
    public final long mo1668() {
        if (this.f12477) {
            return Long.MIN_VALUE;
        }
        if (m7740()) {
            return this.f12470;
        }
        long jMax = this.f12464;
        AbstractC0813 abstractC0813M7738 = m7738();
        if (!abstractC0813M7738.mo1784()) {
            ArrayList arrayList = this.f12476;
            abstractC0813M7738 = arrayList.size() > 1 ? (AbstractC0813) AbstractC1327.m4111(2, arrayList) : null;
        }
        if (abstractC0813M7738 != null) {
            jMax = Math.max(jMax, abstractC0813M7738.f15961);
        }
        return Math.max(jMax, this.f12479.m4770());
    }

    @Override // defpackage.InterfaceC5211
    /* renamed from: ᵯٴᵦ */
    public final boolean mo1670() {
        return this.f12465.ᵧـˌᵎ();
    }

    @Override // defpackage.InterfaceC0772
    /* renamed from: ᵴᵳ */
    public final void mo1129() throws DrmSession$DrmSessionException {
        ᵧˉʙ r0 = this.f12465;
        r0.ᵴᵳ();
        this.f12479.m4772();
        if (r0.ᵧـˌᵎ()) {
            return;
        }
        this.f12473.mo6582();
    }

    @Override // defpackage.InterfaceC5211
    /* renamed from: ᵸʓᵠ */
    public final boolean mo1673(C5196 c5196) {
        long j;
        List list;
        if (!this.f12477) {
            ᵧˉʙ r0 = this.f12465;
            if (!r0.ᵧـˌᵎ() && !r0.ˎˑː()) {
                boolean zM7740 = m7740();
                if (zM7740) {
                    list = Collections.EMPTY_LIST;
                    j = this.f12470;
                } else {
                    j = m7738().f15961;
                    list = this.f12474;
                }
                this.f12473.mo6584(c5196, j, list, this.f12463);
                C4164 c4164 = this.f12463;
                boolean z = c4164.f15572;
                AbstractC4261 abstractC4261 = (AbstractC4261) c4164.f15571;
                c4164.f15571 = null;
                c4164.f15572 = false;
                if (z) {
                    this.f12470 = -9223372036854775807L;
                    this.f12477 = true;
                    return true;
                }
                if (abstractC4261 != null) {
                    this.f12459 = abstractC4261;
                    boolean z2 = abstractC4261 instanceof AbstractC0813;
                    C2720 c2720 = this.f12478;
                    if (z2) {
                        AbstractC0813 abstractC0813 = (AbstractC0813) abstractC4261;
                        if (zM7740) {
                            long j2 = abstractC0813.f15959;
                            long j3 = this.f12470;
                            if (j2 < j3) {
                                this.f12479.f6619 = j3;
                                for (C1666 c1666 : this.f12466) {
                                    c1666.f6619 = this.f12470;
                                }
                                this.f12468 = this.f12460;
                            }
                            this.f12460 = false;
                            this.f12470 = -9223372036854775807L;
                        }
                        abstractC0813.f3775 = c2720;
                        C1666[] c1666Arr = (C1666[]) c2720.f10550;
                        int[] iArr = new int[c1666Arr.length];
                        for (int i = 0; i < c1666Arr.length; i++) {
                            C1666 c16662 = c1666Arr[i];
                            iArr[i] = c16662.f6611 + c16662.f6600;
                        }
                        abstractC0813.f3772 = iArr;
                        this.f12476.add(abstractC0813);
                    } else if (abstractC4261 instanceof C4855) {
                        ((C4855) abstractC4261).f18024 = c2720;
                    }
                    r0.ᵡᵘˎʽ(abstractC4261, this, this.f12469.m5319(abstractC4261.f15967));
                    return true;
                }
            }
        }
        return false;
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final void m7739(long j) throws Throwable {
        long j2;
        if (m7740()) {
            return;
        }
        C1666 c1666 = this.f12479;
        int i = c1666.f6611;
        c1666.m4785(true, j);
        C1666 c16662 = this.f12479;
        int i2 = c16662.f6611;
        if (i2 > i) {
            synchronized (c16662) {
                j2 = c16662.f6600 == 0 ? Long.MIN_VALUE : c16662.f6620[c16662.f6626];
            }
            int i3 = 0;
            while (true) {
                C1666[] c1666Arr = this.f12466;
                if (i3 >= c1666Arr.length) {
                    break;
                }
                c1666Arr[i3].m4785(this.f12480[i3], j2);
                i3++;
            }
        }
        int iMin = Math.min(m7730(i2, 0), this.f12461);
        if (iMin > 0) {
            AbstractC3558.m8102(this.f12476, 0, iMin);
            this.f12461 -= iMin;
        }
    }

    @Override // defpackage.InterfaceC5211
    /* renamed from: ᵹᵝᵶ */
    public final long mo1675() {
        if (m7740()) {
            return this.f12470;
        }
        if (this.f12477) {
            return Long.MIN_VALUE;
        }
        return m7738().f15961;
    }

    @Override // defpackage.InterfaceC2428
    /* renamed from: ᵻᵢﹳᵰ */
    public final void mo4995() {
        this.f12479.m4776();
        for (C1666 c1666 : this.f12466) {
            c1666.m4776();
        }
        this.f12473.mo6581();
        C2798 c2798 = this.f12467;
        if (c2798 != null) {
            synchronized (c2798) {
                C1821 c1821 = (C1821) c2798.f10783.remove(this);
                if (c1821 != null) {
                    c1821.f7399.m4776();
                }
            }
        }
    }

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final boolean m7740() {
        return this.f12470 != -9223372036854775807L;
    }

    @Override // defpackage.InterfaceC1426
    /* renamed from: ᵿʗᵝʽ */
    public final void mo3521(InterfaceC0452 interfaceC0452, long j, long j2, int i) {
        C0417 c0417;
        AbstractC4261 abstractC4261 = (AbstractC4261) interfaceC0452;
        if (i == 0) {
            long j3 = abstractC4261.f15965;
            c0417 = new C0417(abstractC4261.f15963, j);
        } else {
            long j4 = abstractC4261.f15965;
            C4179 c4179 = abstractC4261.f15963;
            C0186 c0186 = abstractC4261.f15960;
            c0417 = new C0417(c4179, c0186.f1631, c0186.f1630, j, j2, c0186.f1628);
        }
        this.f12457.m10089(c0417, abstractC4261.f15967, this.f12475, abstractC4261.f15966, abstractC4261.f15964, abstractC4261.f15962, abstractC4261.f15959, abstractC4261.f15961, i);
    }
}
