package defpackage;

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

/* renamed from: ᵷᵚᵦ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4900 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final int f18236;

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final C3034 f18237;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final int f18238;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final int f18239;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final int f18240;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final int f18241;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final int f18242;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final int f18243;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final long f18244;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final C2720 f18245;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final int f18246;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final int f18247;

    public C4900(int i, int i2, int i3, int i4, int i5, int i6, int i7, long j, C2720 c2720, C3034 c3034) {
        this.f18242 = i;
        this.f18243 = i2;
        this.f18240 = i3;
        this.f18247 = i4;
        this.f18236 = i5;
        this.f18239 = m10346(i5);
        this.f18238 = i6;
        this.f18246 = i7;
        this.f18241 = m10345(i7);
        this.f18244 = j;
        this.f18245 = c2720;
        this.f18237 = c3034;
    }

    public C4900(int i, byte[] bArr) {
        C4089 c4089 = new C4089(bArr.length, bArr);
        c4089.m8957(i * 8);
        this.f18242 = c4089.m8966(16);
        this.f18243 = c4089.m8966(16);
        this.f18240 = c4089.m8966(24);
        this.f18247 = c4089.m8966(24);
        int iM8966 = c4089.m8966(20);
        this.f18236 = iM8966;
        this.f18239 = m10346(iM8966);
        this.f18238 = c4089.m8966(3) + 1;
        int iM89662 = c4089.m8966(5) + 1;
        this.f18246 = iM89662;
        this.f18241 = m10345(iM89662);
        this.f18244 = c4089.m8961(36);
        this.f18245 = null;
        this.f18237 = null;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static int m10345(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;
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public static int m10346(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;
        }
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final C3446 m10347(byte[] bArr, C3034 c3034) {
        bArr[4] = Byte.MIN_VALUE;
        int i = this.f18247;
        if (i <= 0) {
            i = -1;
        }
        C3034 c30342 = this.f18237;
        if (c30342 != null) {
            c3034 = c30342.m7374(c3034);
        }
        C2153 c2153 = new C2153();
        c2153.f8516 = AbstractC2924.m7101("audio/flac");
        c2153.f8519 = i;
        c2153.f8517 = this.f18238;
        c2153.f8513 = this.f18236;
        String str = AbstractC3558.f13329;
        c2153.f8526 = AbstractC3558.m8144(this.f18246, ByteOrder.LITTLE_ENDIAN);
        c2153.f8506 = Collections.singletonList(bArr);
        c2153.f8524 = c3034;
        return new C3446(c2153);
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final long m10348() {
        long j = this.f18244;
        if (j == 0) {
            return -9223372036854775807L;
        }
        return (j * 1000000) / this.f18236;
    }
}
