Ported copy function to AsmJit