package u0;

import W0.e;
import h1.j;
import h1.l;
import kotlin.jvm.internal.o;
import p0.AbstractC2715v;
import p0.C2700f;
import r0.InterfaceC2866e;

/* JADX INFO: renamed from: u0.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2958a extends AbstractC2959b {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f24399c = 1;

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public float f24401e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public AbstractC2715v f24402f;

    public C2958a(C2700f c2700f, long j4) {
        int i6;
        int i7;
        this.f24397a = c2700f;
        this.f24398b = j4;
        if (((int) 0) < 0 || ((int) 0) < 0 || (i6 = (int) (j4 >> 32)) < 0 || (i7 = (int) (4294967295L & j4)) < 0 || i6 > c2700f.f22917a.getWidth() || i7 > c2700f.f22917a.getHeight()) {
            throw new IllegalArgumentException("Failed requirement.");
        }
        this.f24400d = j4;
        this.f24401e = 1.0f;
    }

    @Override // u0.AbstractC2959b
    public final boolean applyAlpha(float f6) {
        this.f24401e = f6;
        return true;
    }

    @Override // u0.AbstractC2959b
    public final boolean applyColorFilter(AbstractC2715v abstractC2715v) {
        this.f24402f = abstractC2715v;
        return true;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C2958a)) {
            return false;
        }
        C2958a c2958a = (C2958a) obj;
        return o.c(this.f24397a, c2958a.f24397a) && j.a(0L, 0L) && l.a(this.f24398b, c2958a.f24398b) && this.f24399c == c2958a.f24399c;
    }

    @Override // u0.AbstractC2959b
    /* JADX INFO: renamed from: getIntrinsicSize-NH-jbRc */
    public final long mo288getIntrinsicSizeNHjbRc() {
        return e.K(this.f24400d);
    }

    public final int hashCode() {
        return Integer.hashCode(this.f24399c) + com.google.android.recaptcha.internal.a.e(com.google.android.recaptcha.internal.a.e(this.f24397a.hashCode() * 31, 31, 0L), 31, this.f24398b);
    }

    @Override // u0.AbstractC2959b
    public final void onDraw(InterfaceC2866e interfaceC2866e) {
        int iRound = Math.round(Float.intBitsToFloat((int) (interfaceC2866e.c() >> 32)));
        int iRound2 = Math.round(Float.intBitsToFloat((int) (interfaceC2866e.c() & 4294967295L)));
        float f6 = this.f24401e;
        AbstractC2715v abstractC2715v = this.f24402f;
        int i6 = this.f24399c;
        InterfaceC2866e.D(interfaceC2866e, this.f24397a, this.f24398b, (((long) iRound) << 32) | (((long) iRound2) & 4294967295L), f6, abstractC2715v, i6, 328);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("BitmapPainter(image=");
        sb.append(this.f24397a);
        sb.append(", srcOffset=");
        sb.append((Object) j.d(0L));
        sb.append(", srcSize=");
        sb.append((Object) l.b(this.f24398b));
        sb.append(", filterQuality=");
        int i6 = this.f24399c;
        sb.append((Object) (i6 == 0 ? "None" : i6 == 1 ? "Low" : i6 == 2 ? "Medium" : i6 == 3 ? "High" : "Unknown"));
        sb.append(')');
        return sb.toString();
    }
}
