; ; EditorUI::applySpecialOffset from 0x100611a20 to 0x100611b94 (372 bytes) ; ; 3 xrefs: ; > EditorUI::findSnapObject_1 @ 0x10001a4c0 ; > EditorUI::findSnapObject_1 @ 0x10001a6c1 ; > EditorUI::ccTouchEnded @ 0x10060ac53 ; ; 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:34:35 +0000 ; push rbp ; +0x0, 0x100611a20 mov rbp, rsp ; +0x1, 0x100611a21 push r15 ; +0x4, 0x100611a24 push r14 ; +0x6, 0x100611a26 push r13 ; +0x8, 0x100611a28 push r12 ; +0xa, 0x100611a2a push rbx ; +0xc, 0x100611a2c sub rsp, 18h ; +0xd, 0x100611a2d mov r12, r8 ; +0x11, 0x100611a31 mov r15, rcx ; +0x14, 0x100611a34 mov r14, rdx ; +0x17, 0x100611a37 mov r13, rsi ; +0x1a, 0x100611a3a mov rbx, rdi ; +0x1d, 0x100611a3d mov edi, [rcx+404h] ; +0x20, 0x100611a40 call isSpecialSnapObject ; +0x26, 0x100611a46 test al, al ; +0x2b, 0x100611a4b jz loc_100611B77 ; +0x2d, 0x100611a4d mov [rbp+var_40], rbx ; +0x33, 0x100611a53 mov rax, [r15] ; +0x37, 0x100611a57 mov rdi, r15 ; +0x3a, 0x100611a5a call qword ptr [rax+0C0h] ; +0x3d, 0x100611a5d lea rbx, [rbp+var_30] ; +0x43, 0x100611a63 mov rdi, rbx ; +0x47, 0x100611a67 mov rsi, rax ; +0x4a, 0x100611a6a call sub_1002782D0 ; +0x4d, 0x100611a6d lea rdi, [rbp+var_38] ; +0x52, 0x100611a72 mov rsi, r13 ; +0x56, 0x100611a76 mov rdx, rbx ; +0x59, 0x100611a79 call EditorUI__getGridSnappedPos ; +0x5c, 0x100611a7c lea rsi, qword_100BE59F8 ; +0x61, 0x100611a81 mov rdi, r12 ; +0x68, 0x100611a88 call sub_100278420 ; +0x6b, 0x100611a8b test al, al ; +0x70, 0x100611a90 jnz short loc_100611AA0 ; +0x72, 0x100611a92 lea rdi, [rbp+var_38] ; +0x74, 0x100611a94 mov rsi, r12 ; +0x78, 0x100611a98 call sub_100278300 ; +0x7b, 0x100611a9b mov rax, [r15] ; +0x80, 0x100611aa0 mov rdi, r15 ; +0x83, 0x100611aa3 call qword ptr [rax+0C0h] ; +0x86, 0x100611aa6 lea rdi, [rbp+var_30] ; +0x8c, 0x100611aac mov rsi, rax ; +0x90, 0x100611ab0 call sub_1002782D0 ; +0x93, 0x100611ab3 movss xmm1, dword ptr [r14] ; +0x98, 0x100611ab8 xorps xmm0, xmm0 ; +0x9d, 0x100611abd ucomiss xmm0, xmm1 ; +0xa0, 0x100611ac0 jz short loc_100611B16 ; +0xa3, 0x100611ac3 movaps xmm2, cs:xmmword_100A038A0 ; +0xa5, 0x100611ac5 movaps xmm3, xmm1 ; +0xac, 0x100611acc andps xmm3, xmm2 ; +0xaf, 0x100611acf movss xmm4, [rbp+var_30] ; +0xb2, 0x100611ad2 movaps xmm5, xmm3 ; +0xb7, 0x100611ad7 addss xmm5, xmm4 ; +0xba, 0x100611ada subss xmm4, xmm3 ; +0xbe, 0x100611ade insertps xmm5, xmm4, 10h ; +0xc2, 0x100611ae2 movss xmm4, [rbp+var_38] ; +0xc8, 0x100611ae8 movsldup xmm4, xmm4 ; +0xcd, 0x100611aed subps xmm5, xmm4 ; +0xd1, 0x100611af1 andps xmm5, xmm2 ; +0xd4, 0x100611af4 pshufd xmm2, xmm5, 0F5h ; +0xd7, 0x100611af7 orps xmm1, cs:xmmword_100A035F0 ; +0xdc, 0x100611afc cmpnless xmm2, xmm5 ; +0xe3, 0x100611b03 andps xmm1, xmm2 ; +0xe8, 0x100611b08 andnps xmm2, xmm3 ; +0xeb, 0x100611b0b orps xmm2, xmm1 ; +0xee, 0x100611b0e movss dword ptr [r14], xmm2 ; +0xf1, 0x100611b11 movss xmm1, dword ptr [r14+4] ; +0xf6, 0x100611b16 ucomiss xmm0, xmm1 ; +0xfc, 0x100611b1c mov rbx, [rbp+var_40] ; +0xff, 0x100611b1f jz short loc_100611B77 ; +0x103, 0x100611b23 movaps xmm0, cs:xmmword_100A038A0 ; +0x105, 0x100611b25 movaps xmm2, xmm1 ; +0x10c, 0x100611b2c andps xmm2, xmm0 ; +0x10f, 0x100611b2f movss xmm3, [rbp+var_2C] ; +0x112, 0x100611b32 movaps xmm4, xmm2 ; +0x117, 0x100611b37 addss xmm4, xmm3 ; +0x11a, 0x100611b3a subss xmm3, xmm2 ; +0x11e, 0x100611b3e insertps xmm4, xmm3, 10h ; +0x122, 0x100611b42 movss xmm3, [rbp+var_34] ; +0x128, 0x100611b48 movsldup xmm3, xmm3 ; +0x12d, 0x100611b4d subps xmm4, xmm3 ; +0x131, 0x100611b51 andps xmm4, xmm0 ; +0x134, 0x100611b54 pshufd xmm0, xmm4, 0F5h ; +0x137, 0x100611b57 orps xmm1, cs:xmmword_100A035F0 ; +0x13c, 0x100611b5c cmpnless xmm0, xmm4 ; +0x143, 0x100611b63 andps xmm1, xmm0 ; +0x148, 0x100611b68 andnps xmm0, xmm2 ; +0x14b, 0x100611b6b orps xmm0, xmm1 ; +0x14e, 0x100611b6e movss dword ptr [r14+4], xmm0 ; +0x151, 0x100611b71 mov rdi, rbx ; +0x157, 0x100611b77 mov rsi, r14 ; +0x15a, 0x100611b7a call sub_1002782D0 ; +0x15d, 0x100611b7d mov rax, rbx ; +0x162, 0x100611b82 add rsp, 18h ; +0x165, 0x100611b85 pop rbx ; +0x169, 0x100611b89 pop r12 ; +0x16a, 0x100611b8a pop r13 ; +0x16c, 0x100611b8c pop r14 ; +0x16e, 0x100611b8e pop r15 ; +0x170, 0x100611b90 pop rbp ; +0x172, 0x100611b92 retn ; +0x173, 0x100611b93