; ; GJBaseGameLayer::convertToClosestDirection from 0x1001383d0 to 0x10013844b (123 bytes) ; ; 3 xrefs: ; > PlayLayer::updateScreenRotation @ 0x1000b5ef9 ; > PlayerObject::redirectDash @ 0x100410b36 ; > PlayerObject::redirectPlayerForce @ 0x10041b230 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbp ; +0x0, 0x1001383d0 mov rbp, rsp ; +0x1, 0x1001383d1 movaps xmm2, cs:xmmword_1008150B0 ; +0x4, 0x1001383d4 xorps xmm2, xmm1 ; +0xb, 0x1001383db ucomiss xmm2, xmm0 ; +0xe, 0x1001383de jbe short loc_100138416 ; +0x11, 0x1001383e1 movaps xmm2, cs:xmmword_100815500 ; +0x13, 0x1001383e3 andps xmm2, xmm0 ; +0x1a, 0x1001383ea divss xmm2, xmm1 ; +0x1d, 0x1001383ed roundss xmm2, xmm2, 9 ; +0x21, 0x1001383f1 mulss xmm2, cs:dword_100814FA8 ; +0x27, 0x1001383f7 roundss xmm2, xmm2, 0Ah ; +0x2f, 0x1001383ff addss xmm1, xmm1 ; +0x35, 0x100138405 mulss xmm1, xmm2 ; +0x39, 0x100138409 addss xmm1, xmm0 ; +0x3d, 0x10013840d movaps xmm0, xmm1 ; +0x41, 0x100138411 pop rbp ; +0x44, 0x100138414 retn ; +0x45, 0x100138415 ucomiss xmm0, xmm1 ; +0x46, 0x100138416 jbe short loc_100138449 ; +0x49, 0x100138419 movaps xmm2, cs:xmmword_100815500 ; +0x4b, 0x10013841b andps xmm2, xmm0 ; +0x52, 0x100138422 divss xmm2, xmm1 ; +0x55, 0x100138425 roundss xmm2, xmm2, 9 ; +0x59, 0x100138429 mulss xmm2, cs:dword_100814FA8 ; +0x5f, 0x10013842f roundss xmm2, xmm2, 0Ah ; +0x67, 0x100138437 addss xmm1, xmm1 ; +0x6d, 0x10013843d mulss xmm1, xmm2 ; +0x71, 0x100138441 subss xmm0, xmm1 ; +0x75, 0x100138445 pop rbp ; +0x79, 0x100138449 retn ; +0x7a, 0x10013844a