The Mach-O x86-64 model doesn't seem to support ".type" and ".size" directives in assembly. Add ifdefs that should allow for the file to build without issues in Apple Clang.