; ; EditorUI::applySpecialOffset from 0x140122660 to 0x140122856 (502 bytes) ; ; 7 xrefs: ; > EditorUI::findSnapObject_1 @ 0x14012345a ; > EditorUI::findSnapObject_1 @ 0x14012364c ; > EditorUI::ccTouchEnded @ 0x1401249d3 ; > @ 0x1406703e8 ; > @ 0x140670424 ; > @ 0x140670434 ; > @ 0x1406c9804 ; ; 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 ; mov [rsp+arg_10], rbp ; +0x0, 0x140122660 push rsi ; +0x5, 0x140122665 push rdi ; +0x6, 0x140122666 push r14 ; +0x7, 0x140122667 sub rsp, 60h ; +0x9, 0x140122669 mov rbp, rdx ; +0xd, 0x14012266d mov rsi, r9 ; +0x10, 0x140122670 mov edx, [r9+40Ch] ; +0x13, 0x140122673 mov rdi, r8 ; +0x1a, 0x14012267a mov r14, rcx ; +0x1d, 0x14012267d call EditorUI__isSpecialSnapObject ; +0x20, 0x140122680 test al, al ; +0x25, 0x140122685 jz loc_140122836 ; +0x27, 0x140122687 mov rax, [r9] ; +0x2d, 0x14012268d mov rcx, r9 ; +0x30, 0x140122690 mov [rsp+78h+arg_0], rbx ; +0x33, 0x140122693 movaps [rsp+78h+var_28], xmm6 ; +0x3b, 0x14012269b movaps [rsp+78h+var_38], xmm7 ; +0x40, 0x1401226a0 movaps [rsp+78h+var_48], xmm8 ; +0x45, 0x1401226a5 call qword ptr [rax+0C8h] ; +0x4b, 0x1401226ab mov rdx, rax ; +0x51, 0x1401226b1 lea rcx, [rsp+78h+var_58] ; +0x54, 0x1401226b4 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x59, 0x1401226b9 mov rcx, [r14+500h] ; +0x5f, 0x1401226bf mov rbx, rax ; +0x66, 0x1401226c6 movss xmm0, dword ptr [rax] ; +0x69, 0x1401226c9 mov rdx, [rcx+38C8h] ; +0x6d, 0x1401226cd movss xmm8, dword ptr [rdx+27Ch] ; +0x74, 0x1401226d4 divss xmm0, xmm8; X ; +0x7d, 0x1401226dd call floorf ; +0x82, 0x1401226e2 movaps xmm7, xmm0 ; +0x87, 0x1401226e7 movss xmm0, dword ptr [rbx+4] ; +0x8a, 0x1401226ea addss xmm7, cs:dword_140622B08 ; +0x8f, 0x1401226ef divss xmm0, xmm8; X ; +0x97, 0x1401226f7 mulss xmm7, xmm8 ; +0x9c, 0x1401226fc call floorf ; +0xa1, 0x140122701 addss xmm0, cs:dword_140622B08 ; +0xa6, 0x140122706 movaps xmm1, xmm7 ; +0xae, 0x14012270e lea rcx, [rsp+78h+var_50] ; +0xb1, 0x140122711 mulss xmm0, xmm8 ; +0xb6, 0x140122716 movaps xmm2, xmm0 ; +0xbb, 0x14012271b call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xbe, 0x14012271e lea rdx, [rsp+78h+arg_8] ; +0xc4, 0x140122724 mov rcx, r14 ; +0xcc, 0x14012272c mov r8, rax ; +0xcf, 0x14012272f call EditorUI__getLimitedPosition ; +0xd2, 0x140122732 mov rbx, [rsp+78h+arg_20] ; +0xd7, 0x140122737 lea rdx, dword_1406C1AA8 ; +0xdf, 0x14012273f mov rcx, rbx ; +0xe6, 0x140122746 call cs:?equals@CCPoint@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCPoint::equals(cocos2d::CCPoint const &) ; +0xe9, 0x140122749 movaps xmm8, [rsp+78h+var_48] ; +0xef, 0x14012274f movaps xmm7, [rsp+78h+var_38] ; +0xf5, 0x140122755 test al, al ; +0xfa, 0x14012275a jnz short loc_14012276F ; +0xfc, 0x14012275c mov rdx, rbx ; +0xfe, 0x14012275e lea rcx, [rsp+78h+arg_8] ; +0x101, 0x140122761 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x109, 0x140122769 mov rax, [rsi] ; +0x10f, 0x14012276f mov rcx, rsi ; +0x112, 0x140122772 call qword ptr [rax+0C8h] ; +0x115, 0x140122775 mov rdx, rax ; +0x11b, 0x14012277b lea rcx, [rsp+78h+arg_18] ; +0x11e, 0x14012277e call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x126, 0x140122786 movss xmm3, dword ptr [rdi] ; +0x12c, 0x14012278c xorps xmm6, xmm6 ; +0x130, 0x140122790 movss xmm4, dword ptr cs:xmmword_1406243C0 ; +0x133, 0x140122793 movss xmm5, dword ptr cs:xmmword_1406243F0 ; +0x13b, 0x14012279b andps xmm3, xmm4 ; +0x143, 0x1401227a3 comiss xmm3, xmm6 ; +0x146, 0x1401227a6 mov rbx, [rsp+78h+arg_0] ; +0x149, 0x1401227a9 jbe short loc_1401227EB ; +0x151, 0x1401227b1 movss xmm2, [rsp+78h+arg_18] ; +0x153, 0x1401227b3 movaps xmm1, xmm2 ; +0x15c, 0x1401227bc subss xmm2, xmm3 ; +0x15f, 0x1401227bf addss xmm1, xmm3 ; +0x163, 0x1401227c3 subss xmm2, [rsp+78h+arg_8] ; +0x167, 0x1401227c7 subss xmm1, [rsp+78h+arg_8] ; +0x170, 0x1401227d0 andps xmm2, xmm4 ; +0x179, 0x1401227d9 andps xmm1, xmm4 ; +0x17c, 0x1401227dc comiss xmm1, xmm2 ; +0x17f, 0x1401227df jnb short loc_1401227E7 ; +0x182, 0x1401227e2 xorps xmm3, xmm5 ; +0x184, 0x1401227e4 movss dword ptr [rdi], xmm3 ; +0x187, 0x1401227e7 movss xmm3, dword ptr [rdi+4] ; +0x18b, 0x1401227eb andps xmm3, xmm4 ; +0x190, 0x1401227f0 comiss xmm3, xmm6 ; +0x193, 0x1401227f3 movaps xmm6, [rsp+78h+var_28] ; +0x196, 0x1401227f6 jbe short loc_140122836 ; +0x19b, 0x1401227fb movss xmm2, [rsp+78h+arg_1C] ; +0x19d, 0x1401227fd movaps xmm1, xmm2 ; +0x1a6, 0x140122806 subss xmm2, xmm3 ; +0x1a9, 0x140122809 addss xmm1, xmm3 ; +0x1ad, 0x14012280d subss xmm2, [rsp+78h+arg_C] ; +0x1b1, 0x140122811 subss xmm1, [rsp+78h+arg_C] ; +0x1ba, 0x14012281a andps xmm2, xmm4 ; +0x1c3, 0x140122823 andps xmm1, xmm4 ; +0x1c6, 0x140122826 comiss xmm1, xmm2 ; +0x1c9, 0x140122829 jnb short loc_140122831 ; +0x1cc, 0x14012282c xorps xmm3, xmm5 ; +0x1ce, 0x14012282e movss dword ptr [rdi+4], xmm3 ; +0x1d1, 0x140122831 mov rdx, rdi ; +0x1d6, 0x140122836 mov rcx, rbp ; +0x1d9, 0x140122839 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1dc, 0x14012283c mov rax, rbp ; +0x1e2, 0x140122842 mov rbp, [rsp+78h+arg_10] ; +0x1e5, 0x140122845 add rsp, 60h ; +0x1ed, 0x14012284d pop r14 ; +0x1f1, 0x140122851 pop rdi ; +0x1f3, 0x140122853 pop rsi ; +0x1f4, 0x140122854 retn ; +0x1f5, 0x140122855