Constant r wasn't being loaded into register in all assembly functions that use it - it just got lucky most of the time.