package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class H2 implements InterfaceC0807bP {
    public final C0107Ed a;
    public final C0107Ed b;
    public final int c;

    public H2(C0107Ed c0107Ed, C0107Ed c0107Ed2, int i) {
        this.a = c0107Ed;
        this.b = c0107Ed2;
        this.c = i;
    }

    @Override // o.InterfaceC0807bP
    public final int a(C1086eI c1086eI, long j, int i, EnumC1280gK enumC1280gK) {
        int iA = this.b.a(0, c1086eI.c(), enumC1280gK);
        int i2 = -this.a.a(0, i, enumC1280gK);
        EnumC1280gK enumC1280gK2 = EnumC1280gK.l;
        int i3 = this.c;
        if (enumC1280gK != enumC1280gK2) {
            i3 = -i3;
        }
        return c1086eI.a + iA + i2 + i3;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof H2)) {
            return false;
        }
        H2 h2 = (H2) obj;
        return this.a.equals(h2.a) && this.b.equals(h2.b) && this.c == h2.c;
    }

    public final int hashCode() {
        return Integer.hashCode(this.c) + AbstractC0126Ew.d(this.b.a, Float.hashCode(this.a.a) * 31, 31);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("Horizontal(menuAlignment=");
        sb.append(this.a);
        sb.append(", anchorAlignment=");
        sb.append(this.b);
        sb.append(", offset=");
        return AbstractC2462sn.m(sb, this.c, ')');
    }
}
