FS#11335 by me: make ARM assembly functions thumb-friendly