fixed lshr (i64 ...) function implementation