Shared functions for mjolnir._asm modules