package defpackage;

import android.os.Build;
import j$.util.Objects;
import java.util.Set;

/* renamed from: ˋʚᐧ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C1432 {

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public static final C1432 f5825;

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

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

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

    static {
        C1432 c1432;
        if (Build.VERSION.SDK_INT >= 33) {
            C3955 c3955 = new C3955(4);
            for (int i = 1; i <= 10; i++) {
                c3955.m3197(Integer.valueOf(AbstractC3558.m8141(i)));
            }
            c1432 = new C1432(2, c3955.mo4392());
        } else {
            c1432 = new C1432(2, 10);
        }
        f5825 = c1432;
    }

    public C1432(int i, int i2) {
        this.f5827 = i;
        this.f5828 = i2;
        this.f5826 = null;
    }

    public C1432(int i, Set set) {
        this.f5827 = i;
        AbstractC1559 abstractC1559M4529 = AbstractC1559.m4529(set);
        this.f5826 = abstractC1559M4529;
        AbstractC5447 it = abstractC1559M4529.iterator();
        int iMax = 0;
        while (it.hasNext()) {
            iMax = Math.max(iMax, Integer.bitCount(((Integer) it.next()).intValue()));
        }
        this.f5828 = iMax;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C1432)) {
            return false;
        }
        C1432 c1432 = (C1432) obj;
        return this.f5827 == c1432.f5827 && this.f5828 == c1432.f5828 && Objects.equals(this.f5826, c1432.f5826);
    }

    public final int hashCode() {
        int i = ((this.f5827 * 31) + this.f5828) * 31;
        AbstractC1559 abstractC1559 = this.f5826;
        return i + (abstractC1559 == null ? 0 : abstractC1559.hashCode());
    }

    public final String toString() {
        return "AudioProfile[format=" + this.f5827 + ", maxChannelCount=" + this.f5828 + ", channelMasks=" + this.f5826 + "]";
    }
}
