; ; EditorUI::getGridSnappedPos from 0x100011b10 to 0x100011bc0 (176 bytes) ; ; 5 xrefs: ; > SetupSmartBlockLayer::onPasteTemplate @ 0x1004e197e ; > EditorUI::doPasteObjects @ 0x1005b8096 ; > EditorUI::swipeToPosition @ 0x100609c03 ; > EditorUI::ccTouchEnded @ 0x10060ac14 ; > EditorUI::applySpecialOffset @ 0x100611a7c ; ; 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 12:18:52 +0000 ; push rbp ; +0x0, 0x100011b10 mov rbp, rsp ; +0x1, 0x100011b11 push r15 ; +0x4, 0x100011b14 push r14 ; +0x6, 0x100011b16 push rbx ; +0x8, 0x100011b18 sub rsp, 18h ; +0x9, 0x100011b19 mov r15, rdx ; +0xd, 0x100011b1d mov r14, rsi ; +0x10, 0x100011b20 mov rbx, rdi ; +0x13, 0x100011b23 mov rax, [rsi+5A0h] ; +0x16, 0x100011b26 mov rax, [rax+37D0h] ; +0x1d, 0x100011b2d movss xmm1, dword ptr [rax+25Ch]; float ; +0x24, 0x100011b34 movss [rbp+var_1C], xmm1 ; +0x2c, 0x100011b3c movss xmm0, cs:flt_100A035A4; float ; +0x31, 0x100011b41 call _fmodf ; +0x39, 0x100011b49 movss xmm1, dword ptr [r15] ; +0x3e, 0x100011b4e movss xmm3, dword ptr [r15+4] ; +0x43, 0x100011b53 movss xmm5, [rbp+var_1C] ; +0x49, 0x100011b59 divss xmm1, xmm5 ; +0x4e, 0x100011b5e subss xmm3, xmm0 ; +0x52, 0x100011b62 divss xmm3, xmm5 ; +0x56, 0x100011b66 roundss xmm2, xmm1, 9 ; +0x5a, 0x100011b6a movss xmm4, cs:dword_100A03578 ; +0x60, 0x100011b70 addss xmm2, xmm4 ; +0x68, 0x100011b78 mulss xmm2, xmm5 ; +0x6c, 0x100011b7c xorps xmm1, xmm1 ; +0x70, 0x100011b80 roundss xmm1, xmm3, 9 ; +0x73, 0x100011b83 addss xmm1, xmm4 ; +0x79, 0x100011b89 mulss xmm1, xmm5 ; +0x7d, 0x100011b8d addss xmm1, xmm0 ; +0x81, 0x100011b91 lea r15, [rbp+var_24] ; +0x85, 0x100011b95 mov rdi, r15 ; +0x89, 0x100011b99 movaps xmm0, xmm2 ; +0x8c, 0x100011b9c call sub_100278250 ; +0x8f, 0x100011b9f mov rdi, rbx ; +0x94, 0x100011ba4 mov rsi, r14 ; +0x97, 0x100011ba7 mov rdx, r15 ; +0x9a, 0x100011baa call EditorUI__getLimitedPosition ; +0x9d, 0x100011bad mov rax, rbx ; +0xa2, 0x100011bb2 add rsp, 18h ; +0xa5, 0x100011bb5 pop rbx ; +0xa9, 0x100011bb9 pop r14 ; +0xaa, 0x100011bba pop r15 ; +0xac, 0x100011bbc pop rbp ; +0xae, 0x100011bbe retn ; +0xaf, 0x100011bbf