package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Gd, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0159Gd implements InterfaceC2584u2 {
    public final float a;
    public final float b;

    public C0159Gd(float f, float f2) {
        this.a = f;
        this.b = f2;
    }

    @Override // o.InterfaceC2584u2
    public final long a(long j, long j2, EnumC1280gK enumC1280gK) {
        float f = (((int) (j2 >> 32)) - ((int) (j >> 32))) / 2.0f;
        float f2 = (((int) (j2 & 4294967295L)) - ((int) (j & 4294967295L))) / 2.0f;
        EnumC1280gK enumC1280gK2 = EnumC1280gK.l;
        float f3 = this.a;
        if (enumC1280gK != enumC1280gK2) {
            f3 *= -1;
        }
        float f4 = 1;
        float f5 = (f3 + f4) * f;
        float f6 = (f4 + this.b) * f2;
        return (Math.round(f6) & 4294967295L) | (Math.round(f5) << 32);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C0159Gd)) {
            return false;
        }
        C0159Gd c0159Gd = (C0159Gd) obj;
        return Float.compare(this.a, c0159Gd.a) == 0 && Float.compare(this.b, c0159Gd.b) == 0;
    }

    public final int hashCode() {
        return Float.hashCode(this.b) + (Float.hashCode(this.a) * 31);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("BiasAlignment(horizontalBias=");
        sb.append(this.a);
        sb.append(", verticalBias=");
        return AbstractC2462sn.l(sb, this.b, ')');
    }
}
