package q0;

/* JADX INFO: renamed from: q0.c, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC2811c {

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

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

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

    public AbstractC2811c(String str, long j4, int i6) {
        this.f23501a = str;
        this.f23502b = j4;
        this.f23503c = i6;
        if (str.length() == 0) {
            throw new IllegalArgumentException("The name of a color space cannot be null and must contain at least 1 character");
        }
        if (i6 < -1 || i6 > 63) {
            throw new IllegalArgumentException("The id must be between -1 and 63");
        }
    }

    public abstract float a(int i6);

    public abstract float b(int i6);

    public boolean c() {
        return false;
    }

    public abstract long d(float f6, float f7, float f8);

    public abstract float e(float f6, float f7, float f8);

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        AbstractC2811c abstractC2811c = (AbstractC2811c) obj;
        if (this.f23503c == abstractC2811c.f23503c && kotlin.jvm.internal.o.c(this.f23501a, abstractC2811c.f23501a)) {
            return AbstractC2810b.a(this.f23502b, abstractC2811c.f23502b);
        }
        return false;
    }

    public abstract long f(float f6, float f7, float f8, float f9, AbstractC2811c abstractC2811c);

    public int hashCode() {
        int iHashCode = this.f23501a.hashCode() * 31;
        int i6 = AbstractC2810b.f23500e;
        return com.google.android.recaptcha.internal.a.e(iHashCode, 31, this.f23502b) + this.f23503c;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.f23501a);
        sb.append(" (id=");
        sb.append(this.f23503c);
        sb.append(", model=");
        long j4 = AbstractC2810b.f23496a;
        long j6 = this.f23502b;
        sb.append((Object) (AbstractC2810b.a(j6, j4) ? "Rgb" : AbstractC2810b.a(j6, AbstractC2810b.f23497b) ? "Xyz" : AbstractC2810b.a(j6, AbstractC2810b.f23498c) ? "Lab" : AbstractC2810b.a(j6, AbstractC2810b.f23499d) ? "Cmyk" : "Unknown"));
        sb.append(')');
        return sb.toString();
    }
}
