package D0;

import C3.k0;
import java.util.Objects;
import java.util.Set;

/* JADX INFO: renamed from: D0.c, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0066c {

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final C0066c f1533d;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final int f1534a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f1535b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final C3.J f1536c;

    static {
        C0066c c0066c;
        if (x0.v.f18553a >= 33) {
            C3.I i = new C3.I(4);
            for (int i5 = 1; i5 <= 10; i5++) {
                i.a(Integer.valueOf(x0.v.r(i5)));
            }
            c0066c = new C0066c(2, i.g());
        } else {
            c0066c = new C0066c(2, 10);
        }
        f1533d = c0066c;
    }

    public C0066c(int i, Set set) {
        this.f1534a = i;
        C3.J jK = C3.J.k(set);
        this.f1536c = jK;
        k0 it = jK.iterator();
        int iMax = 0;
        while (it.hasNext()) {
            iMax = Math.max(iMax, Integer.bitCount(((Integer) it.next()).intValue()));
        }
        this.f1535b = iMax;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C0066c)) {
            return false;
        }
        C0066c c0066c = (C0066c) obj;
        return this.f1534a == c0066c.f1534a && this.f1535b == c0066c.f1535b && Objects.equals(this.f1536c, c0066c.f1536c);
    }

    public final int hashCode() {
        int i = ((this.f1534a * 31) + this.f1535b) * 31;
        C3.J j8 = this.f1536c;
        return i + (j8 == null ? 0 : j8.hashCode());
    }

    public final String toString() {
        return "AudioProfile[format=" + this.f1534a + ", maxChannelCount=" + this.f1535b + ", channelMasks=" + this.f1536c + "]";
    }

    public C0066c(int i, int i5) {
        this.f1534a = i;
        this.f1535b = i5;
        this.f1536c = null;
    }
}
