; ; GJBaseGameLayer::convertToClosestDirection from 0x1403373e0 to 0x14033747b (155 bytes) ; ; 9 xrefs: ; > GJBaseGameLayer::teleportPlayer @ 0x140316836 ; > sub_140326AB0 @ 0x140326d8b ; > GJBaseGameLayer::processAdvancedFollowAction @ 0x140338772 ; > GJBaseGameLayer::processAdvancedFollowAction @ 0x140338c95 ; > GJBaseGameLayer::processAdvancedFollowAction @ 0x140338d1a ; > GJBaseGameLayer::updateScreenRotation @ 0x14033eca3 ; > GJBaseGameLayer::updateScreenRotation @ 0x14033ecb7 ; > PlayerObject::redirectPlayerForce @ 0x1404fe12a ; > @ 0x14091f9b8 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:30:35 +0000 ; sub rsp, 48h ; +0x0, 0x1403373e0 movaps [rsp+48h+var_18], xmm6 ; +0x4, 0x1403373e4 movaps xmm2, xmm1 ; +0x9, 0x1403373e9 xorps xmm2, cs:xmmword_140836CC0 ; +0xc, 0x1403373ec movaps xmm6, xmm0 ; +0x13, 0x1403373f3 comiss xmm2, xmm6 ; +0x16, 0x1403373f6 movaps [rsp+48h+var_28], xmm7 ; +0x19, 0x1403373f9 movaps xmm7, xmm1 ; +0x1e, 0x1403373fe jbe short loc_14033743B ; +0x21, 0x140337401 andps xmm0, cs:xmmword_140836C90 ; +0x23, 0x140337403 divss xmm0, xmm7; X ; +0x2a, 0x14033740a call floorf ; +0x2e, 0x14033740e mulss xmm0, cs:dword_140834F20; X ; +0x33, 0x140337413 call ceilf ; +0x3b, 0x14033741b addss xmm7, xmm7 ; +0x40, 0x140337420 mulss xmm0, xmm7 ; +0x44, 0x140337424 addss xmm0, xmm6 ; +0x48, 0x140337428 movaps xmm6, [rsp+48h+var_18] ; +0x4c, 0x14033742c movaps xmm7, [rsp+48h+var_28] ; +0x51, 0x140337431 add rsp, 48h ; +0x56, 0x140337436 retn ; +0x5a, 0x14033743a comiss xmm6, xmm7 ; +0x5b, 0x14033743b jbe short loc_14033746C ; +0x5e, 0x14033743e andps xmm0, cs:xmmword_140836C90 ; +0x60, 0x140337440 divss xmm0, xmm7; X ; +0x67, 0x140337447 call floorf ; +0x6b, 0x14033744b mulss xmm0, cs:dword_140834F20; X ; +0x70, 0x140337450 call ceilf ; +0x78, 0x140337458 addss xmm7, xmm7 ; +0x7d, 0x14033745d mulss xmm0, xmm7 ; +0x81, 0x140337461 subss xmm6, xmm0 ; +0x85, 0x140337465 movaps xmm0, xmm6 ; +0x89, 0x140337469 movaps xmm6, [rsp+48h+var_18] ; +0x8c, 0x14033746c movaps xmm7, [rsp+48h+var_28] ; +0x91, 0x140337471 add rsp, 48h ; +0x96, 0x140337476 retn ; +0x9a, 0x14033747a