; ; EditorUI::getGridSnappedPos from 0x1401bf900 to 0x1401bf9dd (221 bytes) ; ; 11 xrefs: ; > EditorUI::onCreateObject @ 0x1401b2983 ; > EditorUI::createPrefab @ 0x1401b74b8 ; > EditorUI::createGradientFromSelection @ 0x1401b9df3 ; > EditorUI::findSnapObject_1 @ 0x1401bf625 ; > EditorUI::findSnapObject_1 @ 0x1401bf7ad ; > EditorUI::swipeToPosition @ 0x1401bfe2c ; > EditorUI::ccTouchEnded @ 0x1401c1092 ; > EditorUI::doPasteObjects @ 0x1401c60a8 ; > EditorUI::applySpecialOffset @ 0x1402020a6 ; > SetupSmartBlockLayer::onPasteTemplate @ 0x1405ed961 ; > @ 0x14091a624 ; ; 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:02 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1401bf900 mov [rsp+arg_10], rsi ; +0x5, 0x1401bf905 push rdi ; +0xa, 0x1401bf90a sub rsp, 50h ; +0xb, 0x1401bf90b mov rax, [rcx+5E8h] ; +0xf, 0x1401bf90f mov rbx, r8 ; +0x16, 0x1401bf916 movss xmm0, cs:flt_140835780; X ; +0x19, 0x1401bf919 mov rsi, rdx ; +0x21, 0x1401bf921 movaps [rsp+58h+var_18], xmm7 ; +0x24, 0x1401bf924 mov rdi, rcx ; +0x29, 0x1401bf929 movaps [rsp+58h+var_28], xmm8 ; +0x2c, 0x1401bf92c mov r9, [rax+3A60h] ; +0x32, 0x1401bf932 movaps [rsp+58h+var_38], xmm9 ; +0x39, 0x1401bf939 movss xmm9, dword ptr [r9+27Ch] ; +0x3f, 0x1401bf93f movaps xmm1, xmm9; Y ; +0x48, 0x1401bf948 call fmodf ; +0x4c, 0x1401bf94c movaps xmm7, xmm0 ; +0x51, 0x1401bf951 movss xmm0, dword ptr [rbx+4] ; +0x54, 0x1401bf954 subss xmm0, xmm7 ; +0x59, 0x1401bf959 divss xmm0, xmm9; X ; +0x5d, 0x1401bf95d call floorf ; +0x62, 0x1401bf962 movaps xmm8, xmm0 ; +0x67, 0x1401bf967 movss xmm0, dword ptr [rbx] ; +0x6b, 0x1401bf96b addss xmm8, cs:dword_140834F20 ; +0x6f, 0x1401bf96f divss xmm0, xmm9; X ; +0x78, 0x1401bf978 mulss xmm8, xmm9 ; +0x7d, 0x1401bf97d addss xmm8, xmm7 ; +0x82, 0x1401bf982 call floorf ; +0x87, 0x1401bf987 addss xmm0, cs:dword_140834F20 ; +0x8c, 0x1401bf98c movaps xmm2, xmm8 ; +0x94, 0x1401bf994 lea rcx, [rsp+58h+arg_0] ; +0x98, 0x1401bf998 mulss xmm0, xmm9 ; +0x9d, 0x1401bf99d movaps xmm1, xmm0 ; +0xa2, 0x1401bf9a2 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xa5, 0x1401bf9a5 mov rdx, rsi ; +0xab, 0x1401bf9ab mov rcx, rdi ; +0xae, 0x1401bf9ae mov r8, rax ; +0xb1, 0x1401bf9b1 call EditorUI__getLimitedPosition ; +0xb4, 0x1401bf9b4 mov rbx, [rsp+58h+arg_8] ; +0xb9, 0x1401bf9b9 mov rax, rsi ; +0xbe, 0x1401bf9be mov rsi, [rsp+58h+arg_10] ; +0xc1, 0x1401bf9c1 movaps xmm7, [rsp+58h+var_18] ; +0xc6, 0x1401bf9c6 movaps xmm8, [rsp+58h+var_28] ; +0xcb, 0x1401bf9cb movaps xmm9, [rsp+58h+var_38] ; +0xd1, 0x1401bf9d1 add rsp, 50h ; +0xd7, 0x1401bf9d7 pop rdi ; +0xdb, 0x1401bf9db retn ; +0xdc, 0x1401bf9dc