package p138.p176.p177.p190;

import android.annotation.SuppressLint;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.util.Log;
import android.util.Pair;
import com.google.android.exoplayer2.ExoPlaybackException;
import com.google.android.exoplayer2.IllegalSeekPositionException;
import java.util.ArrayDeque;
import java.util.concurrent.CopyOnWriteArrayList;
import p000.p001.p002.p003.p004.C0567;
import p138.p139.p143.p144.C2803;
import p138.p176.p177.p190.AbstractC3410;
import p138.p176.p177.p190.AbstractC3457;
import p138.p176.p177.p190.C3424;
import p138.p176.p177.p190.C3446;
import p138.p176.p177.p190.InterfaceC3442;
import p138.p176.p177.p190.p217.C3829;
import p138.p176.p177.p190.p217.InterfaceC3800;
import p138.p176.p177.p190.p235.AbstractC4033;
import p138.p176.p177.p190.p235.AbstractC4043;
import p138.p176.p177.p190.p235.C4039;
import p138.p176.p177.p190.p235.C4045;
import p138.p176.p177.p190.p235.InterfaceC4036;
import p138.p176.p177.p190.p238.InterfaceC4090;
import p138.p176.p177.p190.p239.C4150;
import p138.p176.p177.p190.p239.InterfaceC4120;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ޗ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C3421 extends AbstractC3410 implements InterfaceC3420 {

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final C4045 f9996;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final InterfaceC3450[] f9997;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final AbstractC4043 f9998;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public final Handler f9999;

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final C3424 f10000;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final Handler f10001;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final CopyOnWriteArrayList<AbstractC3410.C3411> f10002;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final AbstractC3457.C3459 f10003;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public final ArrayDeque<Runnable> f10004;

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

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public int f10006;

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public int f10007;

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

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public int f10009;

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

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

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public int f10012;

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

    /* JADX INFO: renamed from: ޑ, reason: contains not printable characters */
    public C3438 f10014;

    /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
    public int f10015;

    /* JADX INFO: renamed from: ޓ, reason: contains not printable characters */
    public int f10016;

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

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ޗ$֏, reason: contains not printable characters */
    public class HandlerC3422 extends Handler {
        public HandlerC3422(Looper looper) {
            super(looper);
        }

        @Override // android.os.Handler
        public void handleMessage(Message message) {
            C3421 c3421 = C3421.this;
            if (c3421 == null) {
                throw null;
            }
            int i = message.what;
            if (i != 0) {
                if (i != 1) {
                    throw new IllegalStateException();
                }
                final C3439 c3439 = (C3439) message.obj;
                if (message.arg1 != 0) {
                    c3421.f10012--;
                }
                if (c3421.f10012 != 0 || c3421.f10013.equals(c3439)) {
                    return;
                }
                c3421.f10013 = c3439;
                c3421.m5482(new AbstractC3410.InterfaceC3412() { // from class: ދ.ހ.֏.ؠ.ފ
                    @Override // p138.p176.p177.p190.AbstractC3410.InterfaceC3412
                    /* JADX INFO: renamed from: ֏ */
                    public final void mo5426(InterfaceC3442.InterfaceC3443 interfaceC3443) {
                        interfaceC3443.mo1957(c3439);
                    }
                });
                return;
            }
            C3438 c3438 = (C3438) message.obj;
            int i2 = message.arg1;
            boolean z = message.arg2 != -1;
            int i3 = message.arg2;
            int i4 = c3421.f10009 - i2;
            c3421.f10009 = i4;
            if (i4 == 0) {
                C3438 c3438M5627 = c3438.f10151 == -9223372036854775807L ? c3438.m5627(c3438.f10150, 0L, c3438.f10152, c3438.f10160) : c3438;
                if (!c3421.f10014.f10149.m5686() && c3438M5627.f10149.m5686()) {
                    c3421.f10016 = 0;
                    c3421.f10015 = 0;
                    c3421.f10017 = 0L;
                }
                int i5 = c3421.f10010 ? 0 : 2;
                boolean z2 = c3421.f10011;
                c3421.f10010 = false;
                c3421.f10011 = false;
                c3421.m5483(c3438M5627, z, i3, i5, z2);
            }
        }
    }

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ޗ$ؠ, reason: contains not printable characters */
    public static final class RunnableC3423 implements Runnable {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final C3438 f10019;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final CopyOnWriteArrayList<AbstractC3410.C3411> f10020;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public final AbstractC4043 f10021;

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

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

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

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

        /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
        public final boolean f10026;

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

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

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

        /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
        public final boolean f10030;

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

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

        public RunnableC3423(C3438 c3438, C3438 c34382, CopyOnWriteArrayList<AbstractC3410.C3411> copyOnWriteArrayList, AbstractC4043 abstractC4043, boolean z, int i, int i2, boolean z2, boolean z3, boolean z4) {
            this.f10019 = c3438;
            this.f10020 = new CopyOnWriteArrayList<>(copyOnWriteArrayList);
            this.f10021 = abstractC4043;
            this.f10022 = z;
            this.f10023 = i;
            this.f10024 = i2;
            this.f10025 = z2;
            this.f10031 = z3;
            this.f10032 = z4;
            this.f10026 = c34382.f10153 != c3438.f10153;
            ExoPlaybackException exoPlaybackException = c34382.f10154;
            ExoPlaybackException exoPlaybackException2 = c3438.f10154;
            this.f10027 = (exoPlaybackException == exoPlaybackException2 || exoPlaybackException2 == null) ? false : true;
            this.f10028 = c34382.f10149 != c3438.f10149;
            this.f10029 = c34382.f10155 != c3438.f10155;
            this.f10030 = c34382.f10157 != c3438.f10157;
        }

        @Override // java.lang.Runnable
        public void run() {
            if (this.f10028 || this.f10024 == 0) {
                C3421.m5474(this.f10020, new AbstractC3410.InterfaceC3412() { // from class: ދ.ހ.֏.ؠ.ރ
                    @Override // p138.p176.p177.p190.AbstractC3410.InterfaceC3412
                    /* JADX INFO: renamed from: ֏ */
                    public final void mo5426(InterfaceC3442.InterfaceC3443 interfaceC3443) {
                        this.f9924.m5514(interfaceC3443);
                    }
                });
            }
            if (this.f10022) {
                C3421.m5474(this.f10020, new AbstractC3410.InterfaceC3412() { // from class: ދ.ހ.֏.ؠ.ނ
                    @Override // p138.p176.p177.p190.AbstractC3410.InterfaceC3412
                    /* JADX INFO: renamed from: ֏ */
                    public final void mo5426(InterfaceC3442.InterfaceC3443 interfaceC3443) {
                        this.f9923.m5515(interfaceC3443);
                    }
                });
            }
            if (this.f10027) {
                C3421.m5474(this.f10020, new AbstractC3410.InterfaceC3412() { // from class: ދ.ހ.֏.ؠ.ކ
                    @Override // p138.p176.p177.p190.AbstractC3410.InterfaceC3412
                    /* JADX INFO: renamed from: ֏ */
                    public final void mo5426(InterfaceC3442.InterfaceC3443 interfaceC3443) {
                        this.f9927.m5516(interfaceC3443);
                    }
                });
            }
            if (this.f10030) {
                AbstractC4043 abstractC4043 = this.f10021;
                Object obj = this.f10019.f10157.f12847;
                AbstractC4033 abstractC4033 = (AbstractC4033) abstractC4043;
                if (abstractC4033 == null) {
                    throw null;
                }
                abstractC4033.f12818 = (AbstractC4033.C4034) obj;
                C3421.m5474(this.f10020, new AbstractC3410.InterfaceC3412() { // from class: ދ.ހ.֏.ؠ.ޅ
                    @Override // p138.p176.p177.p190.AbstractC3410.InterfaceC3412
                    /* JADX INFO: renamed from: ֏ */
                    public final void mo5426(InterfaceC3442.InterfaceC3443 interfaceC3443) {
                        this.f9926.m5517(interfaceC3443);
                    }
                });
            }
            if (this.f10029) {
                C3421.m5474(this.f10020, new AbstractC3410.InterfaceC3412() { // from class: ދ.ހ.֏.ؠ.އ
                    @Override // p138.p176.p177.p190.AbstractC3410.InterfaceC3412
                    /* JADX INFO: renamed from: ֏ */
                    public final void mo5426(InterfaceC3442.InterfaceC3443 interfaceC3443) {
                        this.f9928.m5518(interfaceC3443);
                    }
                });
            }
            if (this.f10026) {
                C3421.m5474(this.f10020, new AbstractC3410.InterfaceC3412() { // from class: ދ.ހ.֏.ؠ.ށ
                    @Override // p138.p176.p177.p190.AbstractC3410.InterfaceC3412
                    /* JADX INFO: renamed from: ֏ */
                    public final void mo5426(InterfaceC3442.InterfaceC3443 interfaceC3443) {
                        this.f9922.m5519(interfaceC3443);
                    }
                });
            }
            if (this.f10032) {
                C3421.m5474(this.f10020, new AbstractC3410.InterfaceC3412() { // from class: ދ.ހ.֏.ؠ.ބ
                    @Override // p138.p176.p177.p190.AbstractC3410.InterfaceC3412
                    /* JADX INFO: renamed from: ֏ */
                    public final void mo5426(InterfaceC3442.InterfaceC3443 interfaceC3443) {
                        this.f9925.m5520(interfaceC3443);
                    }
                });
            }
            if (this.f10025) {
                for (AbstractC3410.C3411 c3411 : this.f10020) {
                    if (!c3411.f9960) {
                        c3411.f9959.mo1963();
                    }
                }
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public /* synthetic */ void m5514(InterfaceC3442.InterfaceC3443 interfaceC3443) {
            interfaceC3443.mo1958(this.f10019.f10149, this.f10024);
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public /* synthetic */ void m5515(InterfaceC3442.InterfaceC3443 interfaceC3443) {
            interfaceC3443.mo1968(this.f10023);
        }

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public /* synthetic */ void m5516(InterfaceC3442.InterfaceC3443 interfaceC3443) {
            interfaceC3443.mo1956(this.f10019.f10154);
        }

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public /* synthetic */ void m5517(InterfaceC3442.InterfaceC3443 interfaceC3443) {
            C3438 c3438 = this.f10019;
            interfaceC3443.mo1960(c3438.f10156, c3438.f10157.f12846);
        }

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public /* synthetic */ void m5518(InterfaceC3442.InterfaceC3443 interfaceC3443) {
            interfaceC3443.mo1961(this.f10019.f10155);
        }

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public /* synthetic */ void m5519(InterfaceC3442.InterfaceC3443 interfaceC3443) {
            interfaceC3443.mo1962(this.f10031, this.f10019.f10153);
        }

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public /* synthetic */ void m5520(InterfaceC3442.InterfaceC3443 interfaceC3443) {
            interfaceC3443.mo1967(this.f10019.f10153 == 3);
        }
    }

    @SuppressLint({"HandlerLeak"})
    public C3421(InterfaceC3450[] interfaceC3450Arr, AbstractC4043 abstractC4043, InterfaceC3434 interfaceC3434, InterfaceC4090 interfaceC4090, InterfaceC4120 interfaceC4120, Looper looper) {
        StringBuilder sbM4889 = C2803.m4889("Init ");
        sbM4889.append(Integer.toHexString(System.identityHashCode(this)));
        sbM4889.append(" [");
        sbM4889.append("ExoPlayerLib/2.11.4");
        sbM4889.append("] [");
        sbM4889.append(C4150.f13263);
        sbM4889.append("]");
        Log.i("ExoPlayerImpl", sbM4889.toString());
        C0567.m1932(interfaceC3450Arr.length > 0);
        this.f9997 = interfaceC3450Arr;
        if (abstractC4043 == null) {
            throw null;
        }
        this.f9998 = abstractC4043;
        this.f10005 = false;
        this.f10007 = 0;
        this.f10008 = false;
        this.f10002 = new CopyOnWriteArrayList<>();
        this.f9996 = new C4045(new C3451[interfaceC3450Arr.length], new InterfaceC4036[interfaceC3450Arr.length], null);
        this.f10003 = new AbstractC3457.C3459();
        this.f10013 = C3439.f10162;
        C3453 c3453 = C3453.f10182;
        this.f10006 = 0;
        this.f9999 = new HandlerC3422(looper);
        this.f10014 = C3438.m5625(0L, this.f9996);
        this.f10004 = new ArrayDeque<>();
        this.f10000 = new C3424(interfaceC3450Arr, abstractC4043, this.f9996, interfaceC3434, interfaceC4090, this.f10005, this.f10007, this.f10008, this.f9999, interfaceC4120);
        this.f10001 = new Handler(this.f10000.f10040.getLooper());
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m5474(CopyOnWriteArrayList<AbstractC3410.C3411> copyOnWriteArrayList, AbstractC3410.InterfaceC3412 interfaceC3412) {
        for (AbstractC3410.C3411 c3411 : copyOnWriteArrayList) {
            if (!c3411.f9960) {
                interfaceC3412.mo5426(c3411.f9959);
            }
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m5475(boolean z, boolean z2, int i, boolean z3, int i2, boolean z4, boolean z5, InterfaceC3442.InterfaceC3443 interfaceC3443) {
        if (z) {
            interfaceC3443.mo1962(z2, i);
        }
        if (z3) {
            interfaceC3443.mo1966(i2);
        }
        if (z4) {
            interfaceC3443.mo1967(z5);
        }
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public int mo5476(int i) {
        return this.f9997[i].mo5455();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final long m5477(InterfaceC3800.C3801 c3801, long j) {
        long jM5459 = C3414.m5459(j);
        this.f10014.f10149.m5683(c3801.f11629, this.f10003);
        return jM5459 + C3414.m5459(this.f10003.f10227);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C3438 m5478(boolean z, boolean z2, boolean z3, int i) {
        int iMo1223;
        if (z) {
            this.f10015 = 0;
            this.f10016 = 0;
            this.f10017 = 0L;
        } else {
            this.f10015 = mo5510();
            if (m5487()) {
                iMo1223 = this.f10016;
            } else {
                C3438 c3438 = this.f10014;
                iMo1223 = c3438.f10149.mo1223(c3438.f10150.f11629);
            }
            this.f10016 = iMo1223;
            this.f10017 = mo5512();
        }
        boolean z4 = z || z2;
        InterfaceC3800.C3801 c3801M5629 = z4 ? this.f10014.m5629(this.f10008, this.f9958, this.f10003) : this.f10014.f10150;
        long j = z4 ? 0L : this.f10014.f10161;
        return new C3438(z2 ? AbstractC3457.f10223 : this.f10014.f10149, c3801M5629, j, z4 ? -9223372036854775807L : this.f10014.f10152, i, z3 ? null : this.f10014.f10154, false, z2 ? C3829.f11784 : this.f10014.f10156, z2 ? this.f9996 : this.f10014.f10157, c3801M5629, j, 0L, j);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C3446 m5479(C3446.InterfaceC3448 interfaceC3448) {
        return new C3446(this.f10000, interfaceC3448, this.f10014.f10149, mo5510(), this.f10001);
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void mo5480(int i, long j) {
        AbstractC3457 abstractC3457 = this.f10014.f10149;
        if (i < 0 || (!abstractC3457.m5686() && i >= abstractC3457.mo1228())) {
            throw new IllegalSeekPositionException(abstractC3457, i, j);
        }
        this.f10011 = true;
        this.f10009++;
        if (mo5496()) {
            Log.w("ExoPlayerImpl", "seekTo ignored because an ad is playing");
            this.f9999.obtainMessage(0, 1, -1, this.f10014).sendToTarget();
            return;
        }
        this.f10015 = i;
        if (abstractC3457.m5686()) {
            this.f10017 = j != -9223372036854775807L ? j : 0L;
            this.f10016 = 0;
        } else {
            long jM5458 = j == -9223372036854775807L ? abstractC3457.mo1226(i, this.f9958, 0L).f10237 : C3414.m5458(j);
            Pair<Object, Long> pairM5680 = abstractC3457.m5680(this.f9958, this.f10003, i, jM5458);
            this.f10017 = C3414.m5459(jM5458);
            this.f10016 = abstractC3457.mo1223(pairM5680.first);
        }
        this.f10000.f10039.m6727(3, new C3424.C3429(abstractC3457, i, C3414.m5458(j))).sendToTarget();
        m5482(new AbstractC3410.InterfaceC3412() { // from class: ދ.ހ.֏.ؠ.ހ
            @Override // p138.p176.p177.p190.AbstractC3410.InterfaceC3412
            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public final void mo5426(InterfaceC3442.InterfaceC3443 interfaceC3443) {
                interfaceC3443.mo1968(1);
            }
        });
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m5481(Runnable runnable) {
        boolean z = !this.f10004.isEmpty();
        this.f10004.addLast(runnable);
        if (z) {
            return;
        }
        while (!this.f10004.isEmpty()) {
            this.f10004.peekFirst().run();
            this.f10004.removeFirst();
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m5482(final AbstractC3410.InterfaceC3412 interfaceC3412) {
        final CopyOnWriteArrayList copyOnWriteArrayList = new CopyOnWriteArrayList(this.f10002);
        m5481(new Runnable() { // from class: ދ.ހ.֏.ؠ.ؠ
            @Override // java.lang.Runnable
            public final void run() {
                C3421.m5474((CopyOnWriteArrayList<AbstractC3410.C3411>) copyOnWriteArrayList, interfaceC3412);
            }
        });
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m5483(C3438 c3438, boolean z, int i, int i2, boolean z2) {
        boolean zMo5434 = mo5434();
        C3438 c34382 = this.f10014;
        this.f10014 = c3438;
        m5481(new RunnableC3423(c3438, c34382, this.f10002, this.f9998, z, i, i2, z2, this.f10005, zMo5434 != mo5434()));
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void mo5484(InterfaceC3442.InterfaceC3443 interfaceC3443) {
        this.f10002.addIfAbsent(new AbstractC3410.C3411(interfaceC3443));
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void mo5485(boolean z) {
        m5486(z, 0);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void m5486(final boolean z, final int i) {
        boolean zMo5434 = mo5434();
        int i2 = (this.f10005 && this.f10006 == 0) ? 1 : 0;
        int i3 = (z && i == 0) ? 1 : 0;
        if (i2 != i3) {
            this.f10000.f10039.m6726(1, i3, 0).sendToTarget();
        }
        final boolean z2 = this.f10005 != z;
        final boolean z3 = this.f10006 != i;
        this.f10005 = z;
        this.f10006 = i;
        final boolean zMo54342 = mo5434();
        final boolean z4 = zMo5434 != zMo54342;
        if (z2 || z3 || z4) {
            final int i4 = this.f10014.f10153;
            m5482(new AbstractC3410.InterfaceC3412() { // from class: ދ.ހ.֏.ؠ.މ
                @Override // p138.p176.p177.p190.AbstractC3410.InterfaceC3412
                /* JADX INFO: renamed from: ֏ */
                public final void mo5426(InterfaceC3442.InterfaceC3443 interfaceC3443) {
                    C3421.m5475(z2, z, i4, z3, i, z4, zMo54342, interfaceC3443);
                }
            });
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final boolean m5487() {
        return this.f10014.f10149.m5686() || this.f10009 > 0;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public void mo5488(InterfaceC3442.InterfaceC3443 interfaceC3443) {
        for (AbstractC3410.C3411 c3411 : this.f10002) {
            if (c3411.f9959.equals(interfaceC3443)) {
                c3411.f9960 = true;
                this.f10002.remove(c3411);
            }
        }
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public void mo5489(final boolean z) {
        if (this.f10008 != z) {
            this.f10008 = z;
            this.f10000.f10039.m6726(13, z ? 1 : 0, 0).sendToTarget();
            m5482(new AbstractC3410.InterfaceC3412() { // from class: ދ.ހ.֏.ؠ.ވ
                @Override // p138.p176.p177.p190.AbstractC3410.InterfaceC3412
                /* JADX INFO: renamed from: ֏ */
                public final void mo5426(InterfaceC3442.InterfaceC3443 interfaceC3443) {
                    interfaceC3443.mo1965(z);
                }
            });
        }
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public C3439 mo5490() {
        return this.f10013;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public void mo5491(final int i) {
        if (this.f10007 != i) {
            this.f10007 = i;
            this.f10000.f10039.m6726(12, i, 0).sendToTarget();
            m5482(new AbstractC3410.InterfaceC3412() { // from class: ދ.ހ.֏.ؠ.ދ
                @Override // p138.p176.p177.p190.AbstractC3410.InterfaceC3412
                /* JADX INFO: renamed from: ֏ */
                public final void mo5426(InterfaceC3442.InterfaceC3443 interfaceC3443) {
                    interfaceC3443.mo1964(i);
                }
            });
        }
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public void mo5492(boolean z) {
        C3438 c3438M5478 = m5478(z, z, z, 1);
        this.f10009++;
        this.f10000.f10039.m6726(6, z ? 1 : 0, 0).sendToTarget();
        m5483(c3438M5478, false, 4, 1, false);
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public int mo5493() {
        return this.f10014.f10153;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public long mo5494() {
        if (mo5496()) {
            C3438 c3438 = this.f10014;
            InterfaceC3800.C3801 c3801 = c3438.f10150;
            c3438.f10149.m5683(c3801.f11629, this.f10003);
            return C3414.m5459(this.f10003.m5689(c3801.f11630, c3801.f11631));
        }
        AbstractC3457 abstractC3457Mo5506 = mo5506();
        if (abstractC3457Mo5506.m5686()) {
            return -9223372036854775807L;
        }
        return abstractC3457Mo5506.m5684(mo5510(), this.f9958).m5695();
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public InterfaceC3442.InterfaceC3445 mo5495() {
        return null;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public boolean mo5496() {
        return !m5487() && this.f10014.f10150.m6122();
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public long mo5497() {
        if (!mo5496()) {
            return mo5512();
        }
        C3438 c3438 = this.f10014;
        c3438.f10149.m5683(c3438.f10150.f11629, this.f10003);
        C3438 c34382 = this.f10014;
        return c34382.f10152 == -9223372036854775807L ? c34382.f10149.m5684(mo5510(), this.f9958).m5693() : C3414.m5459(this.f10003.f10227) + C3414.m5459(this.f10014.f10152);
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public int mo5498() {
        return this.f10007;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public long mo5499() {
        return C3414.m5459(this.f10014.f10160);
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public boolean mo5500() {
        return this.f10005;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public ExoPlaybackException mo5501() {
        return this.f10014.f10154;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public int mo5502() {
        if (mo5496()) {
            return this.f10014.f10150.f11630;
        }
        return -1;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public int mo5503() {
        if (mo5496()) {
            return this.f10014.f10150.f11631;
        }
        return -1;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ޑ, reason: contains not printable characters */
    public int mo5504() {
        return this.f10006;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
    public C3829 mo5505() {
        return this.f10014.f10156;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ޓ, reason: contains not printable characters */
    public AbstractC3457 mo5506() {
        return this.f10014.f10149;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ޔ, reason: contains not printable characters */
    public Looper mo5507() {
        return this.f9999.getLooper();
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ޕ, reason: contains not printable characters */
    public boolean mo5508() {
        return this.f10008;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ޖ, reason: contains not printable characters */
    public long mo5509() {
        if (m5487()) {
            return this.f10017;
        }
        C3438 c3438 = this.f10014;
        if (c3438.f10158.f11632 != c3438.f10150.f11632) {
            return c3438.f10149.m5684(mo5510(), this.f9958).m5695();
        }
        long j = c3438.f10159;
        if (this.f10014.f10158.m6122()) {
            C3438 c34382 = this.f10014;
            AbstractC3457.C3459 c3459M5683 = c34382.f10149.m5683(c34382.f10158.f11629, this.f10003);
            long jM5688 = c3459M5683.m5688(this.f10014.f10158.f11630);
            j = jM5688 == Long.MIN_VALUE ? c3459M5683.f10226 : jM5688;
        }
        return m5477(this.f10014.f10158, j);
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ޗ, reason: contains not printable characters */
    public int mo5510() {
        if (m5487()) {
            return this.f10015;
        }
        C3438 c3438 = this.f10014;
        return c3438.f10149.m5683(c3438.f10150.f11629, this.f10003).f10225;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ޘ, reason: contains not printable characters */
    public C4039 mo5511() {
        return this.f10014.f10157.f12846;
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ޙ, reason: contains not printable characters */
    public long mo5512() {
        if (m5487()) {
            return this.f10017;
        }
        if (this.f10014.f10150.m6122()) {
            return C3414.m5459(this.f10014.f10161);
        }
        C3438 c3438 = this.f10014;
        return m5477(c3438.f10150, c3438.f10161);
    }

    @Override // p138.p176.p177.p190.InterfaceC3442
    /* JADX INFO: renamed from: ޚ, reason: contains not printable characters */
    public InterfaceC3442.InterfaceC3444 mo5513() {
        return null;
    }
}
