WIP: use dereferenced pointer and patched r3