; ; GJTransformControl::ccTouchMoved from 0x14012c6b0 to 0x14012cc04 (1364 bytes) ; ; 4 xrefs: ; > @ 0x140552c68 ; > @ 0x140670ba0 ; > @ 0x140670bfc ; > @ 0x1406c9c24 ; ; 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 rbx ; +0x0, 0x14012c6b0 push rsi ; +0x2, 0x14012c6b2 sub rsp, 58h ; +0x3, 0x14012c6b3 mov rbx, rdx ; +0x7, 0x14012c6b7 mov rsi, rcx ; +0xa, 0x14012c6ba mov rcx, rbx ; +0xd, 0x14012c6bd lea rdx, [rsp+68h+arg_0] ; +0x10, 0x14012c6c0 call cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x15, 0x14012c6c5 movzx eax, word ptr [rsi+74h] ; +0x1b, 0x14012c6cb cmp ax, 0Ch ; +0x1f, 0x14012c6cf jz short loc_14012C6E1 ; +0x23, 0x14012c6d3 cmp ax, 1 ; +0x25, 0x14012c6d5 jz short loc_14012C6E1 ; +0x29, 0x14012c6d9 mov rcx, [rsi+58h] ; +0x2b, 0x14012c6db jmp short loc_14012C6E8 ; +0x2f, 0x14012c6df lea rcx, [rsi-140h] ; +0x31, 0x14012c6e1 lea r8, [rsp+68h+arg_0] ; +0x38, 0x14012c6e8 lea rdx, [rsp+68h+arg_8] ; +0x3d, 0x14012c6ed call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x42, 0x14012c6f2 mov rdx, rax ; +0x48, 0x14012c6f8 lea rcx, [rsp+68h+arg_0] ; +0x4b, 0x14012c6fb call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x50, 0x14012c700 mov eax, [rbx+38h] ; +0x56, 0x14012c706 cmp [rsi+70h], eax ; +0x59, 0x14012c709 jnz loc_14012CBCA ; +0x5c, 0x14012c70c mov rcx, [rsi+0B8h] ; +0x62, 0x14012c712 xor edx, edx ; +0x69, 0x14012c719 mov [rsp+68h+var_18], r14 ; +0x6b, 0x14012c71b movaps [rsp+68h+var_28], xmm6 ; +0x70, 0x14012c720 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x75, 0x14012c725 mov r14, rax ; +0x7b, 0x14012c72b movsx eax, word ptr [rsi+74h] ; +0x7e, 0x14012c72e lea ecx, [rax-1]; switch 12 cases ; +0x82, 0x14012c732 cmp ecx, 0Bh ; +0x85, 0x14012c735 ja def_14012C75B; jumptable 000000014012C75B default case ; +0x88, 0x14012c738 lea r8, cs:140000000h ; +0x8e, 0x14012c73e movsxd rcx, ecx ; +0x95, 0x14012c745 mov [rsp+68h+arg_10], rdi ; +0x98, 0x14012c748 mov edx, ds:(jpt_14012C75B - 140000000h)[r8+rcx*4] ; +0xa0, 0x14012c750 add rdx, r8 ; +0xa8, 0x14012c758 jmp rdx; switch jump ; +0xab, 0x14012c75b lea r8, [rsi+80h]; jumptable 000000014012C75B case 1 ; +0xad, 0x14012c75d lea rdx, [rsp+68h+arg_8] ; +0xb4, 0x14012c764 lea rcx, [rsp+68h+arg_0] ; +0xb9, 0x14012c769 call cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xbe, 0x14012c76e mov rax, [r14] ; +0xc4, 0x14012c774 lea rdx, [rsp+68h+arg_8] ; +0xc7, 0x14012c777 mov rcx, r14 ; +0xcc, 0x14012c77c call qword ptr [rax+0B8h] ; +0xcf, 0x14012c77f jmp loc_14012CBA7 ; +0xd5, 0x14012c785 mov rcx, [rsi+0B8h]; jumptable 000000014012C75B cases 2,3 ; +0xda, 0x14012c78a lea edx, [rax-1] ; +0xe1, 0x14012c791 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xe4, 0x14012c794 mov rcx, rax ; +0xea, 0x14012c79a mov rdi, rax ; +0xed, 0x14012c79d mov rbx, [rax] ; +0xf0, 0x14012c7a0 call qword ptr [rbx+0C8h] ; +0xf3, 0x14012c7a3 movss xmm1, [rsp+68h+arg_0] ; +0xf9, 0x14012c7a9 lea rcx, [rsp+68h+arg_8] ; +0xff, 0x14012c7af addss xmm1, dword ptr [rsi+80h] ; +0x104, 0x14012c7b4 movss xmm2, dword ptr [rax+4] ; +0x10c, 0x14012c7bc call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x111, 0x14012c7c1 mov rdx, rax ; +0x117, 0x14012c7c7 mov rcx, rdi ; +0x11a, 0x14012c7ca call qword ptr [rbx+0B8h] ; +0x11d, 0x14012c7cd mov rdx, [r14] ; +0x123, 0x14012c7d3 mov rcx, r14 ; +0x126, 0x14012c7d6 call qword ptr [rdx+0C8h] ; +0x129, 0x14012c7d9 mov rcx, rdi ; +0x12f, 0x14012c7df movss xmm6, dword ptr [rax] ; +0x132, 0x14012c7e2 mov rax, [rdi] ; +0x136, 0x14012c7e6 call qword ptr [rax+0C8h] ; +0x139, 0x14012c7e9 cmp word ptr [rsi+74h], 3 ; +0x13f, 0x14012c7ef movss xmm1, dword ptr [rax] ; +0x144, 0x14012c7f4 subss xmm1, xmm6 ; +0x148, 0x14012c7f8 jnz short loc_14012C808 ; +0x14c, 0x14012c7fc movss xmm0, dword ptr [rsi+88h] ; +0x14e, 0x14012c7fe jmp short loc_14012C810 ; +0x156, 0x14012c806 movss xmm0, dword ptr [rsi+90h] ; +0x158, 0x14012c808 mov rcx, [rsi+78h] ; +0x160, 0x14012c810 subss xmm0, xmm6 ; +0x164, 0x14012c814 divss xmm1, xmm0 ; +0x168, 0x14012c818 movss dword ptr [rsi+0D0h], xmm1 ; +0x16c, 0x14012c81c mov rax, [rcx] ; +0x174, 0x14012c824 call qword ptr [rax] ; +0x177, 0x14012c827 jmp loc_14012CBA7 ; +0x179, 0x14012c829 mov rcx, [rsi+0B8h]; jumptable 000000014012C75B cases 4,5 ; +0x17e, 0x14012c82e lea edx, [rax-1] ; +0x185, 0x14012c835 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x188, 0x14012c838 movss xmm6, dword ptr [rsi+84h] ; +0x18e, 0x14012c83e mov rcx, rax ; +0x196, 0x14012c846 addss xmm6, [rsp+68h+arg_4] ; +0x199, 0x14012c849 mov rdi, rax ; +0x19f, 0x14012c84f mov rbx, [rax] ; +0x1a2, 0x14012c852 call qword ptr [rbx+0C8h] ; +0x1a5, 0x14012c855 movaps xmm2, xmm6 ; +0x1ab, 0x14012c85b lea rcx, [rsp+68h+arg_8] ; +0x1ae, 0x14012c85e movss xmm1, dword ptr [rax] ; +0x1b3, 0x14012c863 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1b7, 0x14012c867 mov rdx, rax ; +0x1bd, 0x14012c86d mov rcx, rdi ; +0x1c0, 0x14012c870 call qword ptr [rbx+0B8h] ; +0x1c3, 0x14012c873 mov rax, [r14] ; +0x1c9, 0x14012c879 mov rcx, r14 ; +0x1cc, 0x14012c87c call qword ptr [rax+0C8h] ; +0x1cf, 0x14012c87f mov rcx, rdi ; +0x1d5, 0x14012c885 movss xmm6, dword ptr [rax+4] ; +0x1d8, 0x14012c888 mov rax, [rdi] ; +0x1dd, 0x14012c88d call qword ptr [rax+0C8h] ; +0x1e0, 0x14012c890 cmp word ptr [rsi+74h], 4 ; +0x1e6, 0x14012c896 movss xmm1, dword ptr [rax+4] ; +0x1eb, 0x14012c89b subss xmm1, xmm6 ; +0x1f0, 0x14012c8a0 jnz short loc_14012C8B0 ; +0x1f4, 0x14012c8a4 movss xmm0, dword ptr [rsi+8Ch] ; +0x1f6, 0x14012c8a6 jmp short loc_14012C8B8 ; +0x1fe, 0x14012c8ae movss xmm0, dword ptr [rsi+94h] ; +0x200, 0x14012c8b0 mov rcx, [rsi+78h] ; +0x208, 0x14012c8b8 subss xmm0, xmm6 ; +0x20c, 0x14012c8bc divss xmm1, xmm0 ; +0x210, 0x14012c8c0 movss dword ptr [rsi+0D4h], xmm1 ; +0x214, 0x14012c8c4 mov rax, [rcx] ; +0x21c, 0x14012c8cc call qword ptr [rax+8] ; +0x21f, 0x14012c8cf jmp loc_14012CBA7 ; +0x222, 0x14012c8d2 mov rcx, [rsi+0B8h]; jumptable 000000014012C75B cases 6-9 ; +0x227, 0x14012c8d7 lea edx, [rax-1] ; +0x22e, 0x14012c8de movaps [rsp+68h+var_38], xmm7 ; +0x231, 0x14012c8e1 movaps [rsp+68h+var_48], xmm8 ; +0x236, 0x14012c8e6 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x23c, 0x14012c8ec movss xmm2, [rsp+68h+arg_4] ; +0x242, 0x14012c8f2 lea rcx, [rsp+68h+arg_8] ; +0x248, 0x14012c8f8 movss xmm1, [rsp+68h+arg_0] ; +0x24d, 0x14012c8fd mov rdi, rax ; +0x253, 0x14012c903 addss xmm2, dword ptr [rsi+84h] ; +0x256, 0x14012c906 addss xmm1, dword ptr [rsi+80h] ; +0x25e, 0x14012c90e mov rbx, [rax] ; +0x266, 0x14012c916 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x269, 0x14012c919 mov rdx, rax ; +0x26f, 0x14012c91f mov rcx, rdi ; +0x272, 0x14012c922 call qword ptr [rbx+0B8h] ; +0x275, 0x14012c925 mov rax, [r14] ; +0x27b, 0x14012c92b mov rcx, r14 ; +0x27e, 0x14012c92e call qword ptr [rax+0C8h] ; +0x281, 0x14012c931 mov rcx, rdi ; +0x287, 0x14012c937 movss xmm8, dword ptr [rax] ; +0x28a, 0x14012c93a mov rax, [rdi] ; +0x28f, 0x14012c93f call qword ptr [rax+0C8h] ; +0x292, 0x14012c942 mov ecx, 0FFFDh ; +0x298, 0x14012c948 movss xmm6, dword ptr [rax] ; +0x29d, 0x14012c94d movzx eax, word ptr [rsi+74h] ; +0x2a1, 0x14012c951 subss xmm6, xmm8 ; +0x2a5, 0x14012c955 sub ax, 7 ; +0x2aa, 0x14012c95a test cx, ax ; +0x2ae, 0x14012c95e jz short loc_14012C96D ; +0x2b1, 0x14012c961 movss xmm7, dword ptr [rsi+90h] ; +0x2b3, 0x14012c963 jmp short loc_14012C975 ; +0x2bb, 0x14012c96b movss xmm7, dword ptr [rsi+88h] ; +0x2bd, 0x14012c96d mov rax, [r14] ; +0x2c5, 0x14012c975 subss xmm7, xmm8 ; +0x2c8, 0x14012c978 mov rcx, r14 ; +0x2cd, 0x14012c97d call qword ptr [rax+0C8h] ; +0x2d0, 0x14012c980 mov rcx, rdi ; +0x2d6, 0x14012c986 movss xmm8, dword ptr [rax+4] ; +0x2d9, 0x14012c989 mov rax, [rdi] ; +0x2df, 0x14012c98f call qword ptr [rax+0C8h] ; +0x2e2, 0x14012c992 movss xmm2, dword ptr [rax+4] ; +0x2e8, 0x14012c998 movzx eax, word ptr [rsi+74h] ; +0x2ed, 0x14012c99d subss xmm2, xmm8 ; +0x2f1, 0x14012c9a1 sub ax, 6 ; +0x2f6, 0x14012c9a6 cmp ax, 1 ; +0x2fa, 0x14012c9aa jbe short loc_14012C9BA ; +0x2fe, 0x14012c9ae movss xmm0, dword ptr [rsi+94h] ; +0x300, 0x14012c9b0 jmp short loc_14012C9C2 ; +0x308, 0x14012c9b8 movss xmm0, dword ptr [rsi+8Ch] ; +0x30a, 0x14012c9ba cmp byte ptr [rsi+0D8h], 0 ; +0x312, 0x14012c9c2 subss xmm0, xmm8 ; +0x319, 0x14012c9c9 movss xmm1, dword ptr [rsi+0D0h] ; +0x31e, 0x14012c9ce movss xmm3, dword ptr [rsi+0D4h] ; +0x326, 0x14012c9d6 movaps xmm8, [rsp+68h+var_48] ; +0x32e, 0x14012c9de divss xmm6, xmm7 ; +0x334, 0x14012c9e4 movaps xmm7, [rsp+68h+var_38] ; +0x338, 0x14012c9e8 divss xmm2, xmm0 ; +0x33d, 0x14012c9ed movss dword ptr [rsi+0D0h], xmm6 ; +0x341, 0x14012c9f1 movss dword ptr [rsi+0D4h], xmm2 ; +0x349, 0x14012c9f9 jz short loc_14012CA16 ; +0x351, 0x14012ca01 divss xmm1, xmm3 ; +0x353, 0x14012ca03 movaps xmm2, xmm6 ; +0x357, 0x14012ca07 divss xmm2, xmm1 ; +0x35a, 0x14012ca0a movss dword ptr [rsi+0D4h], xmm2 ; +0x35e, 0x14012ca0e mov rcx, [rsi+78h] ; +0x366, 0x14012ca16 movaps xmm1, xmm6 ; +0x36a, 0x14012ca1a mov rax, [rcx] ; +0x36d, 0x14012ca1d call qword ptr [rax+10h] ; +0x370, 0x14012ca20 jmp loc_14012CBA7 ; +0x373, 0x14012ca23 mov rcx, [rsi+0B8h]; jumptable 000000014012C75B case 10 ; +0x378, 0x14012ca28 lea edx, [rax-1] ; +0x37f, 0x14012ca2f call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x382, 0x14012ca32 movss xmm0, [rsp+68h+arg_0] ; +0x388, 0x14012ca38 mov rdi, rax ; +0x38e, 0x14012ca3e addss xmm0, dword ptr [rsi+80h] ; +0x391, 0x14012ca41 movss xmm6, cs:dword_1406239E8 ; +0x399, 0x14012ca49 comiss xmm6, xmm0 ; +0x3a1, 0x14012ca51 ja short loc_14012CA62 ; +0x3a4, 0x14012ca54 movss xmm6, cs:dword_1406232BC ; +0x3a6, 0x14012ca56 minss xmm6, xmm0 ; +0x3ae, 0x14012ca5e mov rbx, [rax] ; +0x3b2, 0x14012ca62 mov rcx, rdi ; +0x3b5, 0x14012ca65 call qword ptr [rbx+0C8h] ; +0x3b8, 0x14012ca68 movaps xmm1, xmm6 ; +0x3be, 0x14012ca6e lea rcx, [rsp+68h+arg_8] ; +0x3c1, 0x14012ca71 movss xmm2, dword ptr [rax+4] ; +0x3c6, 0x14012ca76 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x3cb, 0x14012ca7b mov rdx, rax ; +0x3d1, 0x14012ca81 mov rcx, rdi ; +0x3d4, 0x14012ca84 call qword ptr [rbx+0B8h] ; +0x3d7, 0x14012ca87 mov rcx, [rsi+78h] ; +0x3dd, 0x14012ca8d mulss xmm6, cs:dword_140622AF0 ; +0x3e1, 0x14012ca91 mov rax, [rcx] ; +0x3e9, 0x14012ca99 movaps xmm1, xmm6 ; +0x3ec, 0x14012ca9c call qword ptr [rax+40h] ; +0x3ef, 0x14012ca9f jmp loc_14012CBA7 ; +0x3f2, 0x14012caa2 mov rcx, [rsi+0B8h]; jumptable 000000014012C75B case 11 ; +0x3f7, 0x14012caa7 lea edx, [rax-1] ; +0x3fe, 0x14012caae call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x401, 0x14012cab1 movss xmm0, [rsp+68h+arg_4] ; +0x407, 0x14012cab7 mov rdi, rax ; +0x40d, 0x14012cabd addss xmm0, dword ptr [rsi+84h] ; +0x410, 0x14012cac0 movss xmm6, cs:dword_1406239E8 ; +0x418, 0x14012cac8 comiss xmm6, xmm0 ; +0x420, 0x14012cad0 ja short loc_14012CAE1 ; +0x423, 0x14012cad3 movss xmm6, cs:dword_1406232BC ; +0x425, 0x14012cad5 minss xmm6, xmm0 ; +0x42d, 0x14012cadd mov rbx, [rax] ; +0x431, 0x14012cae1 mov rcx, rdi ; +0x434, 0x14012cae4 call qword ptr [rbx+0C8h] ; +0x437, 0x14012cae7 movaps xmm2, xmm6 ; +0x43d, 0x14012caed lea rcx, [rsp+68h+arg_8] ; +0x440, 0x14012caf0 movss xmm1, dword ptr [rax] ; +0x445, 0x14012caf5 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x449, 0x14012caf9 mov rdx, rax ; +0x44f, 0x14012caff mov rcx, rdi ; +0x452, 0x14012cb02 call qword ptr [rbx+0B8h] ; +0x455, 0x14012cb05 mov rcx, [rsi+78h] ; +0x45b, 0x14012cb0b mulss xmm6, cs:dword_140622AF0 ; +0x45f, 0x14012cb0f mov rax, [rcx] ; +0x467, 0x14012cb17 movaps xmm1, xmm6 ; +0x46a, 0x14012cb1a call qword ptr [rax+48h] ; +0x46d, 0x14012cb1d jmp loc_14012CBA7 ; +0x470, 0x14012cb20 movss xmm0, [rsp+68h+arg_4]; jumptable 000000014012C75B case 12 ; +0x475, 0x14012cb25 movss xmm1, [rsp+68h+arg_0] ; +0x47b, 0x14012cb2b addss xmm0, dword ptr [rsi+84h]; Y ; +0x481, 0x14012cb31 addss xmm1, dword ptr [rsi+80h]; X ; +0x489, 0x14012cb39 call atan2f ; +0x491, 0x14012cb41 movaps xmm1, xmm0 ; +0x496, 0x14012cb46 mulss xmm1, cs:dword_140623200 ; +0x499, 0x14012cb49 xorps xmm1, cs:xmmword_1406243F0 ; +0x4a1, 0x14012cb51 mulss xmm1, cs:dword_1406232BC ; +0x4a8, 0x14012cb58 divss xmm1, cs:dword_1406232BC ; +0x4b0, 0x14012cb60 subss xmm1, dword ptr [rsi+0E4h] ; +0x4b8, 0x14012cb68 ucomiss xmm1, dword ptr [rsi+0E0h] ; +0x4c0, 0x14012cb70 jp short loc_14012CB7B ; +0x4c7, 0x14012cb77 jz short loc_14012CBA7 ; +0x4c9, 0x14012cb79 mov rcx, [rsi+60h] ; +0x4cb, 0x14012cb7b movss dword ptr [rsi+0E0h], xmm1 ; +0x4cf, 0x14012cb7f mov rax, [rcx] ; +0x4d7, 0x14012cb87 call qword ptr [rax+150h] ; +0x4da, 0x14012cb8a mov rcx, [rsi+78h] ; +0x4e0, 0x14012cb90 test rcx, rcx ; +0x4e4, 0x14012cb94 jz short loc_14012CBA7 ; +0x4e7, 0x14012cb97 mov rax, [rcx] ; +0x4e9, 0x14012cb99 movss xmm1, dword ptr [rsi+0E0h] ; +0x4ec, 0x14012cb9c call qword ptr [rax+28h] ; +0x4f4, 0x14012cba4 mov rdi, [rsp+68h+arg_10] ; +0x4f7, 0x14012cba7 lea rcx, [rsi-140h]; jumptable 000000014012C75B default case ; +0x4ff, 0x14012cbaf xor r8d, r8d ; +0x506, 0x14012cbb6 xor edx, edx ; +0x509, 0x14012cbb9 call GJTransformControl__updateButtons ; +0x50b, 0x14012cbbb movaps xmm6, [rsp+68h+var_28] ; +0x510, 0x14012cbc0 mov r14, [rsp+68h+var_18] ; +0x515, 0x14012cbc5 add rsp, 58h ; +0x51a, 0x14012cbca pop rsi ; +0x51e, 0x14012cbce pop rbx ; +0x51f, 0x14012cbcf retn ; +0x520, 0x14012cbd0 align 4 ; +0x521, 0x14012cbd1 dd offset loc_14012C75D - 140000000h; jump table for switch statement ; +0x524, 0x14012cbd4