; ; GJBaseGameLayer::convertToClosestDirection from 0x14022e8b0 to 0x14022e94b (155 bytes) ; ; 9 xrefs: ; > GJBaseGameLayer::teleportPlayer @ 0x140210674 ; > sub_14021EFB0 @ 0x14021f299 ; > GJBaseGameLayer::processAdvancedFollowAction @ 0x14022fc10 ; > GJBaseGameLayer::processAdvancedFollowAction @ 0x140230138 ; > GJBaseGameLayer::processAdvancedFollowAction @ 0x1402301ca ; > GJBaseGameLayer::updateScreenRotation @ 0x140235ed0 ; > GJBaseGameLayer::updateScreenRotation @ 0x140235ee8 ; > PlayerObject::redirectPlayerForce @ 0x14039fcff ; > @ 0x1406cdd7c ; ; 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 ; sub rsp, 48h ; +0x0, 0x14022e8b0 movaps [rsp+48h+var_18], xmm6 ; +0x4, 0x14022e8b4 movaps xmm2, xmm1 ; +0x9, 0x14022e8b9 xorps xmm2, cs:xmmword_1406243F0 ; +0xc, 0x14022e8bc movaps xmm6, xmm0 ; +0x13, 0x14022e8c3 comiss xmm2, xmm6 ; +0x16, 0x14022e8c6 movaps [rsp+48h+var_28], xmm7 ; +0x19, 0x14022e8c9 movaps xmm7, xmm1 ; +0x1e, 0x14022e8ce jbe short loc_14022E90B ; +0x21, 0x14022e8d1 andps xmm0, cs:xmmword_1406243C0 ; +0x23, 0x14022e8d3 divss xmm0, xmm7; X ; +0x2a, 0x14022e8da call floorf ; +0x2e, 0x14022e8de mulss xmm0, cs:dword_140622B08; X ; +0x33, 0x14022e8e3 call ceilf ; +0x3b, 0x14022e8eb addss xmm7, xmm7 ; +0x40, 0x14022e8f0 mulss xmm0, xmm7 ; +0x44, 0x14022e8f4 addss xmm0, xmm6 ; +0x48, 0x14022e8f8 movaps xmm6, [rsp+48h+var_18] ; +0x4c, 0x14022e8fc movaps xmm7, [rsp+48h+var_28] ; +0x51, 0x14022e901 add rsp, 48h ; +0x56, 0x14022e906 retn ; +0x5a, 0x14022e90a comiss xmm6, xmm7 ; +0x5b, 0x14022e90b jbe short loc_14022E93C ; +0x5e, 0x14022e90e andps xmm0, cs:xmmword_1406243C0 ; +0x60, 0x14022e910 divss xmm0, xmm7; X ; +0x67, 0x14022e917 call floorf ; +0x6b, 0x14022e91b mulss xmm0, cs:dword_140622B08; X ; +0x70, 0x14022e920 call ceilf ; +0x78, 0x14022e928 addss xmm7, xmm7 ; +0x7d, 0x14022e92d mulss xmm0, xmm7 ; +0x81, 0x14022e931 subss xmm6, xmm0 ; +0x85, 0x14022e935 movaps xmm0, xmm6 ; +0x89, 0x14022e939 movaps xmm6, [rsp+48h+var_18] ; +0x8c, 0x14022e93c movaps xmm7, [rsp+48h+var_28] ; +0x91, 0x14022e941 add rsp, 48h ; +0x96, 0x14022e946 retn ; +0x9a, 0x14022e94a