; ; EditorUI::applySpecialOffset from 0x140202050 to 0x14020219b (331 bytes) ; ; 7 xrefs: ; > EditorUI::findSnapObject_1 @ 0x1401bf608 ; > EditorUI::findSnapObject_1 @ 0x1401bf790 ; > EditorUI::ccTouchEnded @ 0x1401c10e4 ; > @ 0x1408a3e20 ; > @ 0x1408a3e30 ; > @ 0x14091ae58 ; > @ 0x14091ae64 ; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x140202050 push rbp ; +0x5, 0x140202055 push rsi ; +0x6, 0x140202056 push rdi ; +0x7, 0x140202057 sub rsp, 40h ; +0x8, 0x140202058 mov rbp, rcx ; +0xc, 0x14020205c mov rdi, r9 ; +0xf, 0x14020205f mov ecx, [r9+40Ch] ; +0x12, 0x140202062 mov rbx, r8 ; +0x19, 0x140202069 mov rsi, rdx ; +0x1c, 0x14020206c call isSpecialSnapObject ; +0x1f, 0x14020206f test al, al ; +0x24, 0x140202074 jz loc_14020217F ; +0x26, 0x140202076 mov rax, [r9] ; +0x2c, 0x14020207c mov rcx, r9 ; +0x2f, 0x14020207f movaps [rsp+58h+var_28], xmm6 ; +0x32, 0x140202082 call qword ptr [rax+0C8h] ; +0x37, 0x140202087 mov rdx, rax ; +0x3d, 0x14020208d lea rcx, [rsp+58h+var_38] ; +0x40, 0x140202090 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x45, 0x140202095 lea rdx, [rsp+58h+arg_8] ; +0x4b, 0x14020209b mov rcx, rbp ; +0x50, 0x1402020a0 mov r8, rax ; +0x53, 0x1402020a3 call EditorUI__getGridSnappedPos ; +0x56, 0x1402020a6 mov rbp, [rsp+58h+arg_20] ; +0x5b, 0x1402020ab lea rdx, unk_14090A7A8 ; +0x63, 0x1402020b3 mov rcx, rbp ; +0x6a, 0x1402020ba call cs:?equals@CCPoint@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCPoint::equals(cocos2d::CCPoint const &) ; +0x6d, 0x1402020bd test al, al ; +0x73, 0x1402020c3 jnz short loc_1402020D5 ; +0x75, 0x1402020c5 mov rdx, rbp ; +0x77, 0x1402020c7 lea rcx, [rsp+58h+arg_8] ; +0x7a, 0x1402020ca call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x7f, 0x1402020cf mov rax, [rdi] ; +0x85, 0x1402020d5 mov rcx, rdi ; +0x88, 0x1402020d8 call qword ptr [rax+0C8h] ; +0x8b, 0x1402020db mov rdx, rax ; +0x91, 0x1402020e1 lea rcx, [rsp+58h+arg_18] ; +0x94, 0x1402020e4 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x99, 0x1402020e9 movss xmm3, dword ptr [rbx] ; +0x9f, 0x1402020ef xorps xmm6, xmm6 ; +0xa3, 0x1402020f3 movdqa xmm4, cs:xmmword_140836C90 ; +0xa6, 0x1402020f6 movss xmm5, dword ptr cs:xmmword_140836CC0 ; +0xae, 0x1402020fe andps xmm3, xmm4 ; +0xb6, 0x140202106 comiss xmm3, xmm6 ; +0xb9, 0x140202109 jbe short loc_14020213D ; +0xbc, 0x14020210c movss xmm1, [rsp+58h+arg_18] ; +0xbe, 0x14020210e movaps xmm2, xmm3 ; +0xc4, 0x140202114 addss xmm2, xmm1 ; +0xc7, 0x140202117 subss xmm1, xmm3 ; +0xcb, 0x14020211b subss xmm2, [rsp+58h+arg_8] ; +0xcf, 0x14020211f subss xmm1, [rsp+58h+arg_8] ; +0xd5, 0x140202125 andps xmm2, xmm4 ; +0xdb, 0x14020212b andps xmm1, xmm4 ; +0xde, 0x14020212e comiss xmm2, xmm1 ; +0xe1, 0x140202131 jnb short loc_140202139 ; +0xe4, 0x140202134 xorps xmm3, xmm5 ; +0xe6, 0x140202136 movss dword ptr [rbx], xmm3 ; +0xe9, 0x140202139 movss xmm3, dword ptr [rbx+4] ; +0xed, 0x14020213d andps xmm3, xmm4 ; +0xf2, 0x140202142 comiss xmm3, xmm6 ; +0xf5, 0x140202145 movaps xmm6, [rsp+58h+var_28] ; +0xf8, 0x140202148 jbe short loc_14020217F ; +0xfd, 0x14020214d movss xmm1, [rsp+58h+arg_1C] ; +0xff, 0x14020214f movaps xmm2, xmm3 ; +0x105, 0x140202155 addss xmm2, xmm1 ; +0x108, 0x140202158 subss xmm1, xmm3 ; +0x10c, 0x14020215c subss xmm2, [rsp+58h+arg_C] ; +0x110, 0x140202160 subss xmm1, [rsp+58h+arg_C] ; +0x116, 0x140202166 andps xmm2, xmm4 ; +0x11c, 0x14020216c andps xmm1, xmm4 ; +0x11f, 0x14020216f comiss xmm2, xmm1 ; +0x122, 0x140202172 jnb short loc_14020217A ; +0x125, 0x140202175 xorps xmm3, xmm5 ; +0x127, 0x140202177 movss dword ptr [rbx+4], xmm3 ; +0x12a, 0x14020217a mov rdx, rbx ; +0x12f, 0x14020217f mov rcx, rsi ; +0x132, 0x140202182 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x135, 0x140202185 mov rbx, [rsp+58h+arg_0] ; +0x13b, 0x14020218b mov rax, rsi ; +0x140, 0x140202190 add rsp, 40h ; +0x143, 0x140202193 pop rdi ; +0x147, 0x140202197 pop rsi ; +0x148, 0x140202198 pop rbp ; +0x149, 0x140202199 retn ; +0x14a, 0x14020219a