Testing an optimization to hook.asm

I'm not at home right now, so I can't test if the code actually works or not. That's why I'm putting it in a separate branch.