Fix some dumb mistakes in asm code

Also fix completely broken mt_xxflate