; ; EditorUI::getGridSnappedPos from 0x100035690 to 0x100035759 (201 bytes) ; ; 3 xrefs: ; > EditorUI::ccTouchMoved @ 0x10004f8c4 ; > EditorUI::ccTouchEnded @ 0x10004fcaf ; > SetupSmartBlockLayer::onPasteTemplate @ 0x1004e7068 ; ; 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 ; push rbp ; +0x0, 0x100035690 mov rbp, rsp ; +0x1, 0x100035691 push r15 ; +0x4, 0x100035694 push r14 ; +0x6, 0x100035696 push rbx ; +0x8, 0x100035698 push rax ; +0x9, 0x100035699 mov r14, rsi ; +0xa, 0x10003569a mov rbx, rdi ; +0xd, 0x10003569d mov rax, [rsi+4E8h] ; +0x10, 0x1000356a0 mov rax, [rax+3698h] ; +0x17, 0x1000356a7 movss xmm2, dword ptr [rax+25Ch] ; +0x1e, 0x1000356ae movss xmm0, dword ptr [rdx] ; +0x26, 0x1000356b6 movss xmm1, dword ptr [rdx+4] ; +0x2a, 0x1000356ba divss xmm0, xmm2 ; +0x2f, 0x1000356bf divss xmm1, xmm2 ; +0x33, 0x1000356c3 roundss xmm0, xmm0, 9 ; +0x37, 0x1000356c7 movss xmm3, cs:dword_100814FA8 ; +0x3d, 0x1000356cd addss xmm0, xmm3 ; +0x45, 0x1000356d5 mulss xmm0, xmm2 ; +0x49, 0x1000356d9 roundss xmm1, xmm1, 9 ; +0x4d, 0x1000356dd addss xmm1, xmm3 ; +0x53, 0x1000356e3 mulss xmm1, xmm2 ; +0x57, 0x1000356e7 lea r15, [rbp+var_20] ; +0x5b, 0x1000356eb mov rdi, r15 ; +0x5f, 0x1000356ef call sub_10028CBE0 ; +0x62, 0x1000356f2 mov rax, [r14+4E8h] ; +0x67, 0x1000356f7 mov rax, [rax+0CB0h] ; +0x6e, 0x1000356fe cmp byte ptr [rax+1C5h], 0 ; +0x75, 0x100035705 jnz short loc_100035718 ; +0x7c, 0x10003570c movss xmm0, cs:dword_1008152C4 ; +0x7e, 0x10003570e jmp short loc_100035720 ; +0x86, 0x100035716 movss xmm0, cs:dword_1008152C0 ; +0x88, 0x100035718 movsd xmm1, [rbp+var_20] ; +0x90, 0x100035720 maxps xmm1, cs:xmmword_100815470 ; +0x95, 0x100035725 movaps xmm2, cs:xmmword_100815490 ; +0x9c, 0x10003572c insertps xmm2, xmm0, 10h ; +0xa3, 0x100035733 minps xmm1, xmm2 ; +0xa9, 0x100035739 movlps [rbp+var_20], xmm1 ; +0xac, 0x10003573c mov rdi, rbx ; +0xb0, 0x100035740 mov rsi, r15 ; +0xb3, 0x100035743 call sub_10028CC60 ; +0xb6, 0x100035746 mov rax, rbx ; +0xbb, 0x10003574b add rsp, 8 ; +0xbe, 0x10003574e pop rbx ; +0xc2, 0x100035752 pop r14 ; +0xc3, 0x100035753 pop r15 ; +0xc5, 0x100035755 pop rbp ; +0xc7, 0x100035757 retn ; +0xc8, 0x100035758