package p138.p176.p177.p190.p217.p224;

import java.util.ArrayList;
import p138.p176.p177.p190.C3431;
import p138.p176.p177.p190.C3453;
import p138.p176.p177.p190.p194.C3526;
import p138.p176.p177.p190.p194.InterfaceC3532;
import p138.p176.p177.p190.p217.C3793;
import p138.p176.p177.p190.p217.C3794;
import p138.p176.p177.p190.p217.C3827;
import p138.p176.p177.p190.p217.C3829;
import p138.p176.p177.p190.p217.InterfaceC3798;
import p138.p176.p177.p190.p217.InterfaceC3803;
import p138.p176.p177.p190.p217.InterfaceC3823;
import p138.p176.p177.p190.p217.InterfaceC3824;
import p138.p176.p177.p190.p217.p219.C3841;
import p138.p176.p177.p190.p217.p224.InterfaceC3939;
import p138.p176.p177.p190.p217.p224.p225.C3942;
import p138.p176.p177.p190.p235.InterfaceC4036;
import p138.p176.p177.p190.p238.InterfaceC4089;
import p138.p176.p177.p190.p238.InterfaceC4109;
import p138.p176.p177.p190.p238.InterfaceC4110;
import p138.p176.p177.p190.p238.InterfaceC4115;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ໞ.ޠ.ށ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C3941 implements InterfaceC3798, InterfaceC3824.InterfaceC3825<C3841<InterfaceC3939>> {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final InterfaceC3939.InterfaceC3940 f12326;

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

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

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final InterfaceC3532<?> f12329;

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

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public final InterfaceC3803.C3804 f12331;

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

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

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

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public InterfaceC3798.InterfaceC3799 f12335;

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

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public C3841<InterfaceC3939>[] f12337;

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

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

    public C3941(C3942 c3942, InterfaceC3939.InterfaceC3940 interfaceC3940, InterfaceC4115 interfaceC4115, C3794 c3794, InterfaceC3532<?> interfaceC3532, InterfaceC4109 interfaceC4109, InterfaceC3803.C3804 c3804, InterfaceC4110 interfaceC4110, InterfaceC4089 interfaceC4089) {
        this.f12336 = c3942;
        this.f12326 = interfaceC3940;
        this.f12327 = interfaceC4115;
        this.f12328 = interfaceC4110;
        this.f12329 = interfaceC3532;
        this.f12330 = interfaceC4109;
        this.f12331 = c3804;
        this.f12332 = interfaceC4089;
        this.f12334 = c3794;
        C3827[] c3827Arr = new C3827[c3942.f12345.length];
        int i = 0;
        while (true) {
            C3942.C3944[] c3944Arr = c3942.f12345;
            if (i >= c3944Arr.length) {
                break;
            }
            C3431[] c3431Arr = c3944Arr[i].f12360;
            C3431[] c3431Arr2 = new C3431[c3431Arr.length];
            for (int i2 = 0; i2 < c3431Arr.length; i2++) {
                C3431 c3431M5599 = c3431Arr[i2];
                C3526 c3526 = c3431M5599.f10093;
                if (c3526 != null) {
                    c3431M5599 = c3431M5599.m5599(interfaceC3532.mo1125(c3526));
                }
                c3431Arr2[i2] = c3431M5599;
            }
            c3827Arr[i] = new C3827(c3431Arr2);
            i++;
        }
        this.f12333 = new C3829(c3827Arr);
        C3841<InterfaceC3939>[] c3841Arr = new C3841[0];
        this.f12337 = c3841Arr;
        if (c3794 == null) {
            throw null;
        }
        this.f12338 = new C3793(c3841Arr);
        c3804.m6124();
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798
    /* JADX INFO: renamed from: ֏ */
    public long mo6102(long j, C3453 c3453) {
        for (C3841<InterfaceC3939> c3841 : this.f12337) {
            if (c3841.f11831 == 2) {
                return c3841.f11835.mo6228(j, c3453);
            }
        }
        return j;
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798
    /* JADX INFO: renamed from: ֏ */
    public long mo6103(InterfaceC4036[] interfaceC4036Arr, boolean[] zArr, InterfaceC3823[] interfaceC3823Arr, boolean[] zArr2, long j) {
        InterfaceC4036[] interfaceC4036Arr2 = interfaceC4036Arr;
        ArrayList arrayList = new ArrayList();
        int i = 0;
        while (i < interfaceC4036Arr2.length) {
            if (interfaceC3823Arr[i] != null) {
                C3841 c3841 = (C3841) interfaceC3823Arr[i];
                if (interfaceC4036Arr2[i] == null || !zArr[i]) {
                    c3841.m6219((C3841.InterfaceC3843) null);
                    interfaceC3823Arr[i] = null;
                } else {
                    ((InterfaceC3939) c3841.f11835).mo6366(interfaceC4036Arr2[i]);
                    arrayList.add(c3841);
                }
            }
            if (interfaceC3823Arr[i] == null && interfaceC4036Arr2[i] != null) {
                InterfaceC4036 interfaceC4036 = interfaceC4036Arr2[i];
                int iM6209 = this.f12333.m6209(interfaceC4036.mo6481());
                C3841 c38412 = new C3841(this.f12336.f12345[iM6209].f12351, null, null, this.f12326.mo6367(this.f12328, this.f12336, iM6209, interfaceC4036, this.f12327), this, this.f12332, j, this.f12329, this.f12330, this.f12331);
                arrayList.add(c38412);
                interfaceC3823Arr[i] = c38412;
                zArr2[i] = true;
            }
            i++;
            interfaceC4036Arr2 = interfaceC4036Arr;
        }
        C3841<InterfaceC3939>[] c3841Arr = new C3841[arrayList.size()];
        this.f12337 = c3841Arr;
        arrayList.toArray(c3841Arr);
        C3794 c3794 = this.f12334;
        C3841<InterfaceC3939>[] c3841Arr2 = this.f12337;
        if (c3794 == null) {
            throw null;
        }
        this.f12338 = new C3793(c3841Arr2);
        return j;
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798
    /* JADX INFO: renamed from: ֏ */
    public void mo6104(long j, boolean z) {
        for (C3841<InterfaceC3939> c3841 : this.f12337) {
            c3841.m6218(j, z);
        }
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798
    /* JADX INFO: renamed from: ֏ */
    public void mo6105(InterfaceC3798.InterfaceC3799 interfaceC3799, long j) {
        this.f12335 = interfaceC3799;
        interfaceC3799.mo5538((InterfaceC3798) this);
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3824.InterfaceC3825
    /* JADX INFO: renamed from: ֏ */
    public void mo5541(InterfaceC3824 interfaceC3824) {
        this.f12335.mo5541(this);
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798, p138.p176.p177.p190.p217.InterfaceC3824
    /* JADX INFO: renamed from: ֏ */
    public boolean mo6107(long j) {
        return this.f12338.mo6107(j);
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798, p138.p176.p177.p190.p217.InterfaceC3824
    /* JADX INFO: renamed from: ؠ */
    public void mo6108(long j) {
        this.f12338.mo6108(j);
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798, p138.p176.p177.p190.p217.InterfaceC3824
    /* JADX INFO: renamed from: ؠ */
    public boolean mo6109() {
        return this.f12338.mo6109();
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798, p138.p176.p177.p190.p217.InterfaceC3824
    /* JADX INFO: renamed from: ހ */
    public long mo6110() {
        return this.f12338.mo6110();
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798
    /* JADX INFO: renamed from: ހ */
    public long mo6111(long j) {
        for (C3841<InterfaceC3939> c3841 : this.f12337) {
            c3841.m6221(j);
        }
        return j;
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798, p138.p176.p177.p190.p217.InterfaceC3824
    /* JADX INFO: renamed from: ށ */
    public long mo6112() {
        return this.f12338.mo6112();
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798
    /* JADX INFO: renamed from: ބ */
    public long mo6113() {
        if (this.f12339) {
            return -9223372036854775807L;
        }
        this.f12331.m6143();
        this.f12339 = true;
        return -9223372036854775807L;
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798
    /* JADX INFO: renamed from: ޅ */
    public C3829 mo6114() {
        return this.f12333;
    }

    @Override // p138.p176.p177.p190.p217.InterfaceC3798
    /* JADX INFO: renamed from: ކ */
    public void mo6115() {
        this.f12328.mo1233();
    }
}
