; ; EditorUI::getLimitedPosition from 0x140202550 to 0x1402025de (142 bytes) ; ; 2 xrefs: ; > EditorUI::getGridSnappedPos @ 0x1401bf9b4 ; > @ 0x14091aedc ; ; 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:28:13 +0000 ; push rbx ; +0x0, 0x140202550 sub rsp, 20h ; +0x2, 0x140202552 mov rax, [rcx+5E8h] ; +0x6, 0x140202556 mov rbx, rdx ; +0xd, 0x14020255d movss xmm2, cs:dword_1408360B4 ; +0x10, 0x140202560 mov edx, 3E8h ; +0x18, 0x140202568 movss xmm0, cs:dword_140835C08 ; +0x1d, 0x14020256d movaps xmm1, xmm2 ; +0x25, 0x140202575 maxss xmm2, dword ptr [r8+4] ; +0x28, 0x140202578 maxss xmm1, dword ptr [r8] ; +0x2e, 0x14020257e movss dword ptr [r8+4], xmm2 ; +0x33, 0x140202583 minss xmm0, xmm1 ; +0x39, 0x140202589 movss dword ptr [r8], xmm0 ; +0x3d, 0x14020258d mov rcx, [rax+0DC8h] ; +0x42, 0x140202592 mov eax, 50h ; 'P' ; +0x49, 0x140202599 cmp byte ptr [rcx+1CDh], 0 ; +0x4e, 0x14020259e mov rcx, rbx ; +0x55, 0x1402025a5 cmovnz eax, edx ; +0x58, 0x1402025a8 mov rdx, r8 ; +0x5b, 0x1402025ab movd xmm0, eax ; +0x5e, 0x1402025ae cvtdq2ps xmm0, xmm0 ; +0x62, 0x1402025b2 mulss xmm0, cs:dword_140835624 ; +0x65, 0x1402025b5 addss xmm0, cs:flt_140835780 ; +0x6d, 0x1402025bd minss xmm0, xmm2 ; +0x75, 0x1402025c5 movss dword ptr [r8+4], xmm0 ; +0x79, 0x1402025c9 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x7f, 0x1402025cf mov rax, rbx ; +0x85, 0x1402025d5 add rsp, 20h ; +0x88, 0x1402025d8 pop rbx ; +0x8c, 0x1402025dc retn ; +0x8d, 0x1402025dd