; ; GJRotationControl::ccTouchMoved from 0x140129830 to 0x1401299c8 (408 bytes) ; ; 5 xrefs: ; > @ 0x140553e48 ; > @ 0x14067087c ; > @ 0x140670894 ; > @ 0x1406708a4 ; > @ 0x1406c9a68 ; ; 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 r11, rsp ; +0x0, 0x140129830 push rdi ; +0x3, 0x140129833 sub rsp, 60h ; +0x4, 0x140129834 mov eax, [rdx+38h] ; +0x8, 0x140129838 mov r8, rdx ; +0xb, 0x14012983b mov rdi, rcx ; +0xe, 0x14012983e cmp [rcx+78h], eax ; +0x11, 0x140129841 jnz loc_1401299C2 ; +0x14, 0x140129844 mov [r11+18h], rbx ; +0x1a, 0x14012984a lea rdx, [r11+8] ; +0x1e, 0x14012984e movaps [rsp+68h+var_18], xmm6 ; +0x22, 0x140129852 mov rcx, r8 ; +0x27, 0x140129857 movaps [rsp+68h+var_28], xmm7 ; +0x2a, 0x14012985a movaps xmmword ptr [r11-38h], xmm8 ; +0x2f, 0x14012985f movaps xmmword ptr [r11-48h], xmm9 ; +0x34, 0x140129864 call cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x39, 0x140129869 lea rcx, [rdi-140h] ; +0x3f, 0x14012986f lea r8, [rsp+68h+arg_0] ; +0x46, 0x140129876 lea rdx, [rsp+68h+arg_8] ; +0x4b, 0x14012987b call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x50, 0x140129880 mov rdx, rax ; +0x56, 0x140129886 lea rcx, [rsp+68h+arg_0] ; +0x59, 0x140129889 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x5e, 0x14012988e lea rdx, [rsp+68h+arg_0] ; +0x64, 0x140129894 lea rcx, [rsp+68h+arg_8] ; +0x69, 0x140129899 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x6e, 0x14012989e xorps xmm8, xmm8 ; +0x74, 0x1401298a4 movss xmm0, dword ptr [rax+4] ; +0x78, 0x1401298a8 movss xmm1, dword ptr [rax] ; +0x7d, 0x1401298ad subss xmm0, xmm8 ; +0x81, 0x1401298b1 subss xmm1, xmm8 ; +0x86, 0x1401298b6 subss xmm0, dword ptr [rdi+5Ch]; Y ; +0x8b, 0x1401298bb subss xmm1, dword ptr [rdi+58h]; X ; +0x90, 0x1401298c0 call atan2f ; +0x95, 0x1401298c5 movaps xmm9, xmm0 ; +0x9a, 0x1401298ca call sinf ; +0x9e, 0x1401298ce movaps xmm7, xmm0 ; +0xa3, 0x1401298d3 movaps xmm0, xmm9; X ; +0xa6, 0x1401298d6 mulss xmm7, cs:dword_140623210 ; +0xaa, 0x1401298da addss xmm7, xmm8 ; +0xb2, 0x1401298e2 call cosf ; +0xb7, 0x1401298e7 mulss xmm0, cs:dword_140623210 ; +0xbc, 0x1401298ec lea rcx, [rsp+68h+arg_18] ; +0xc4, 0x1401298f4 movaps xmm2, xmm7 ; +0xcc, 0x1401298fc addss xmm0, xmm8 ; +0xcf, 0x1401298ff movaps xmm1, xmm0 ; +0xd4, 0x140129904 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xd7, 0x140129907 mov rdx, rax ; +0xdd, 0x14012990d lea rcx, [rdi+60h] ; +0xe0, 0x140129910 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xe4, 0x140129914 mov rcx, [rdi+68h] ; +0xea, 0x14012991a lea rdx, [rdi+60h] ; +0xee, 0x14012991e mov rax, [rcx] ; +0xf2, 0x140129922 call qword ptr [rax+0B8h] ; +0xf5, 0x140129925 mulss xmm9, cs:dword_140623200 ; +0xfb, 0x14012992b mov rbx, [rsp+68h+arg_10] ; +0x104, 0x140129934 movss xmm6, cs:dword_14062350C ; +0x10c, 0x14012993c movaps xmm7, [rsp+68h+var_28] ; +0x114, 0x140129944 movaps xmm0, xmm9 ; +0x119, 0x140129949 xorps xmm0, cs:xmmword_1406243F0 ; +0x11d, 0x14012994d mulss xmm0, xmm6 ; +0x124, 0x140129954 comiss xmm0, xmm8 ; +0x128, 0x140129958 movaps xmm8, [rsp+68h+var_38] ; +0x12c, 0x14012995c jb short loc_14012997D ; +0x132, 0x140129962 movss xmm0, cs:dword_140622B08 ; +0x134, 0x140129964 mulss xmm9, xmm6 ; +0x13c, 0x14012996c subss xmm0, xmm9; X ; +0x141, 0x140129971 call floorf ; +0x146, 0x140129976 jmp short loc_14012998A ; +0x14b, 0x14012997b subss xmm0, cs:dword_140622B08; X ; +0x14d, 0x14012997d call ceilf ; +0x155, 0x140129985 movss xmm1, dword ptr [rdi+74h] ; +0x15a, 0x14012998a movaps xmm9, [rsp+68h+var_48] ; +0x15f, 0x14012998f divss xmm0, xmm6 ; +0x165, 0x140129995 movaps xmm6, [rsp+68h+var_18] ; +0x169, 0x140129999 ucomiss xmm0, xmm1 ; +0x16e, 0x14012999e jp short loc_1401299A5 ; +0x171, 0x1401299a1 jz short loc_1401299C2 ; +0x173, 0x1401299a3 mov rcx, [rdi+80h] ; +0x175, 0x1401299a5 movss dword ptr [rdi+74h], xmm0 ; +0x17c, 0x1401299ac test rcx, rcx ; +0x181, 0x1401299b1 jz short loc_1401299C2 ; +0x184, 0x1401299b4 mov rax, [rcx] ; +0x186, 0x1401299b6 subss xmm0, xmm1 ; +0x189, 0x1401299b9 movaps xmm1, xmm0 ; +0x18d, 0x1401299bd call qword ptr [rax] ; +0x190, 0x1401299c0 add rsp, 60h ; +0x192, 0x1401299c2 pop rdi ; +0x196, 0x1401299c6 retn ; +0x197, 0x1401299c7