package defpackage;

import java.nio.ByteOrder;
import java.util.Collections;

/* JADX INFO: renamed from: ʽʥ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C0063 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final int f1245;

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final int f1246;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final int f1247;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final int f1248;

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public final C1956 f1249;

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final long f1250;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final int f1251;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final int f1252;

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public final ˊˊᵞᵽ f1253;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final int f1254;

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final int f1255;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final int f1256;

    public C0063(int i, int i2, int i3, int i4, int i5, int i6, int i7, long j, ˊˊᵞᵽ r10, C1956 c1956) {
        this.f1251 = i;
        this.f1245 = i2;
        this.f1247 = i3;
        this.f1254 = i4;
        this.f1248 = i5;
        this.f1256 = m1075(i5);
        this.f1252 = i6;
        this.f1246 = i7;
        this.f1255 = m1074(i7);
        this.f1250 = j;
        this.f1253 = r10;
        this.f1249 = c1956;
    }

    public C0063(int i, byte[] bArr) {
        C3180 c3180 = new C3180(bArr.length, bArr);
        c3180.m7298(i * 8);
        this.f1251 = c3180.m7302(16);
        this.f1245 = c3180.m7302(16);
        this.f1247 = c3180.m7302(24);
        this.f1254 = c3180.m7302(24);
        int iM7302 = c3180.m7302(20);
        this.f1248 = iM7302;
        this.f1256 = m1075(iM7302);
        this.f1252 = c3180.m7302(3) + 1;
        int iM73022 = c3180.m7302(5) + 1;
        this.f1246 = iM73022;
        this.f1255 = m1074(iM73022);
        this.f1250 = c3180.m7293(36);
        this.f1253 = null;
        this.f1249 = null;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public static int m1074(int i) {
        if (i == 8) {
            return 1;
        }
        if (i == 12) {
            return 2;
        }
        if (i == 16) {
            return 4;
        }
        if (i == 20) {
            return 5;
        }
        if (i != 24) {
            return i != 32 ? -1 : 7;
        }
        return 6;
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public static int m1075(int i) {
        switch (i) {
            case 8000:
                return 4;
            case 16000:
                return 5;
            case 22050:
                return 6;
            case 24000:
                return 7;
            case 32000:
                return 8;
            case 44100:
                return 9;
            case 48000:
                return 10;
            case 88200:
                return 1;
            case 96000:
                return 11;
            case 176400:
                return 2;
            case 192000:
                return 3;
            default:
                return -1;
        }
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final long m1076() {
        long j = this.f1250;
        if (j == 0) {
            return -9223372036854775807L;
        }
        return (j * 1000000) / ((long) this.f1248);
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final C5286 m1077(byte[] bArr, C1956 c1956) {
        bArr[4] = -128;
        int i = this.f1254;
        if (i <= 0) {
            i = -1;
        }
        C1956 c19562 = this.f1249;
        if (c19562 != null) {
            c1956 = c19562.m5238(c1956);
        }
        C4753 c4753 = new C4753();
        c4753.f18101 = AbstractC4208.m9132("audio/flac");
        c4753.f18116 = i;
        c4753.f18090 = this.f1252;
        c4753.f18113 = this.f1248;
        String str = AbstractC0956.f4222;
        c4753.f18095 = AbstractC0956.m3212(this.f1246, ByteOrder.LITTLE_ENDIAN);
        c4753.f18119 = Collections.singletonList(bArr);
        c4753.f18125 = c1956;
        return new C5286(c4753);
    }
}
