package p138.p176.p177.p190.p198;

import java.lang.reflect.Constructor;
import java.util.Collections;
import p138.p176.p177.p190.p198.p199.C3581;
import p138.p176.p177.p190.p198.p200.C3586;
import p138.p176.p177.p190.p198.p201.C3588;
import p138.p176.p177.p190.p198.p202.C3596;
import p138.p176.p177.p190.p198.p203.C3606;
import p138.p176.p177.p190.p198.p204.C3620;
import p138.p176.p177.p190.p198.p204.C3626;
import p138.p176.p177.p190.p198.p205.C3639;
import p138.p176.p177.p190.p198.p207.C3651;
import p138.p176.p177.p190.p198.p207.C3653;
import p138.p176.p177.p190.p198.p207.C3655;
import p138.p176.p177.p190.p198.p207.C3657;
import p138.p176.p177.p190.p198.p207.C3678;
import p138.p176.p177.p190.p198.p207.C3687;
import p138.p176.p177.p190.p198.p208.C3696;
import p138.p176.p177.p190.p239.C4149;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ೲ.ރ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C3559 implements InterfaceC3563 {

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final Constructor<? extends InterfaceC3561> f10567;

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public int f10568 = 1;

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

    static {
        Constructor<? extends InterfaceC3561> constructor = null;
        try {
            if (Boolean.TRUE.equals(Class.forName("com.google.android.exoplayer2.ext.flac.FlacLibrary").getMethod("isAvailable", new Class[0]).invoke(null, new Object[0]))) {
                constructor = Class.forName("com.google.android.exoplayer2.ext.flac.FlacExtractor").asSubclass(InterfaceC3561.class).getConstructor(new Class[0]);
            }
        } catch (ClassNotFoundException unused) {
        } catch (Exception e) {
            throw new RuntimeException("Error instantiating FLAC extension", e);
        }
        f10567 = constructor;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public synchronized C3559 m5880(int i) {
        this.f10569 = i;
        return this;
    }

    @Override // p138.p176.p177.p190.p198.InterfaceC3563
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public synchronized InterfaceC3561[] mo5881() {
        InterfaceC3561[] interfaceC3561Arr;
        interfaceC3561Arr = new InterfaceC3561[14];
        interfaceC3561Arr[0] = new C3596(0);
        interfaceC3561Arr[1] = new C3620(0, null, null, Collections.emptyList());
        interfaceC3561Arr[2] = new C3626(0);
        interfaceC3561Arr[3] = new C3606(0, -9223372036854775807L);
        interfaceC3561Arr[4] = new C3655(0);
        interfaceC3561Arr[5] = new C3651();
        interfaceC3561Arr[6] = new C3687(this.f10568, new C4149(0L), new C3657(this.f10569));
        interfaceC3561Arr[7] = new C3588();
        interfaceC3561Arr[8] = new C3639();
        interfaceC3561Arr[9] = new C3678();
        interfaceC3561Arr[10] = new C3696();
        interfaceC3561Arr[11] = new C3581(0);
        interfaceC3561Arr[12] = new C3653();
        if (f10567 != null) {
            try {
                interfaceC3561Arr[13] = f10567.newInstance(new Object[0]);
            } catch (Exception e) {
                throw new IllegalStateException("Unexpected error creating FLAC extractor", e);
            }
        } else {
            interfaceC3561Arr[13] = new C3586();
        }
        return interfaceC3561Arr;
    }
}
