x64 Inline Function Hooking: Detours, Trampolines, and RIP-Relative Hell

So one day you woke up at 3am and started questioning your life choices and a sudden thought came into your mind and thought led you to…