{"type": "func", "start": 5370424272, "end": 5370424754, "name": "GJRotationControl::ccTouchMoved", "pseudocode": "// \n// GJRotationControl::ccTouchMoved from 0x1401a2bd0 to 0x1401a2db2 (482 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x140751130\n// > <???> @ 0x1408a0868\n// > <???> @ 0x1408a087c\n// > <???> @ 0x1408a088c\n// > <???> @ 0x140919964\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:48 +0000\n// \n\nvoid __fastcall GJRotationControl::ccTouchMoved(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v3; // rdi\n  __int64 v4; // rcx\n  __int64 v5; // rax\n  float *v6; // rax\n  float v7; // xmm9_4\n  float v8; // xmm7_4\n  float v9; // xmm0_4\n  __int64 v10; // rax\n  float v11; // xmm0_4\n  __int64 v12; // rdx\n  void (__fastcall ***v13)(_QWORD, __int64, _QWORD); // rcx\n  _BYTE v14[16]; // [rsp+20h] [rbp-58h] BYREF\n  char v15; // [rsp+80h] [rbp+8h] BYREF\n  char v16; // [rsp+98h] [rbp+20h] BYREF\n\n  v3 = a1 - 320;\n  if ( *(_QWORD *)(a1 + 184) )\n  {\n    v4 = *(_QWORD *)(a1 + 184);\n    if ( v4 )\n      (*(void (__fastcall **)(__int64, __int64, __int64, __int64))(*(_QWORD *)(v4 + 320) + 16LL))(v4 + 320, a2, a3, a2);\n  }\n  else if ( *(_DWORD *)(a1 + 120) == *(_DWORD *)(a2 + 56) )\n  {\n    cocos2d::CCTouch::getLocation(a2, &v15);\n    cocos2d::CCNode::convertToNodeSpace(v3, &v16, &v15);\n    cocos2d::CCPoint::operator=(&v15, v5);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, (const struct cocos2d::CCPoint *)&v15);\n    v7 = atan2f((float)(v6[1] - 0.0) - *(float *)(v3 + 412), (float)(*v6 - 0.0) - *(float *)(v3 + 408));\n    v8 = (float)(sinf(v7) * 60.0) + 0.0;\n    v9 = (float)(cosf(v7) * 60.0) + 0.0;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v9, v8);\n    cocos2d::CCPoint::operator=(v3 + 416, v10);\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v3 + 424) + 184LL))(*(_QWORD *)(v3 + 424), v3 + 416);\n    v11 = roundf((float)-(float)(v7 * 57.29578) * 1000.0) / 1000.0;\n    if ( v11 != *(float *)(v3 + 436) )\n    {\n      *(float *)(v3 + 436) = v11;\n      GJRotationControl::updateAngleInput(v3, v11);\n      v13 = *(void (__fastcall ****)(_QWORD, __int64, _QWORD))(v3 + 512);\n      if ( v13 )\n        (**v13)(v13, v12, *(unsigned __int8 *)(v3 + 456));\n    }\n  }\n}", "assembly": "; \n; GJRotationControl::ccTouchMoved from 0x1401a2bd0 to 0x1401a2db2 (482 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x140751130\n; > <???> @ 0x1408a0868\n; > <???> @ 0x1408a087c\n; > <???> @ 0x1408a088c\n; > <???> @ 0x140919964\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:48 +0000\n; \npush    rdi                                                            ; +0x0, 0x1401a2bd0\nsub     rsp, 70h                                                       ; +0x2, 0x1401a2bd2\ncmp     qword ptr [rcx+0B8h], 0                                        ; +0x6, 0x1401a2bd6\nlea     rdi, [rcx-140h]                                                ; +0xe, 0x1401a2bde\nmov     r9, rdx                                                        ; +0x15, 0x1401a2be5\njz      short loc_1401A2C0D                                            ; +0x18, 0x1401a2be8\nmov     rcx, [rcx+0B8h]                                                ; +0x1a, 0x1401a2bea\ntest    rcx, rcx                                                       ; +0x21, 0x1401a2bf1\njz      loc_1401A2DAC                                                  ; +0x24, 0x1401a2bf4\nadd     rcx, 140h                                                      ; +0x2a, 0x1401a2bfa\nmov     rax, [rcx]                                                     ; +0x31, 0x1401a2c01\nadd     rsp, 70h                                                       ; +0x34, 0x1401a2c04\npop     rdi                                                            ; +0x38, 0x1401a2c08\njmp     qword ptr [rax+10h]                                            ; +0x39, 0x1401a2c09\nmov     eax, [rdx+38h]                                                 ; +0x3d, 0x1401a2c0d\ncmp     [rcx+78h], eax                                                 ; +0x40, 0x1401a2c10\njnz     loc_1401A2DAC                                                  ; +0x43, 0x1401a2c13\nmov     [rsp+78h+arg_8], rbx                                           ; +0x49, 0x1401a2c19\nlea     rdx, [rsp+78h+arg_0]                                           ; +0x51, 0x1401a2c21\nmovaps  [rsp+78h+var_18], xmm6                                         ; +0x59, 0x1401a2c29\nmov     rcx, r9                                                        ; +0x5e, 0x1401a2c2e\nmovaps  [rsp+78h+var_28], xmm7                                         ; +0x61, 0x1401a2c31\nmovaps  [rsp+78h+var_38], xmm8                                         ; +0x66, 0x1401a2c36\nmovaps  [rsp+78h+var_48], xmm9                                         ; +0x6c, 0x1401a2c3c\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x72, 0x1401a2c42\nlea     r8, [rsp+78h+arg_0]                                            ; +0x78, 0x1401a2c48\nmov     rcx, rdi                                                       ; +0x80, 0x1401a2c50\nlea     rdx, [rsp+78h+arg_18]                                          ; +0x83, 0x1401a2c53\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x8b, 0x1401a2c5b\nmov     rdx, rax                                                       ; +0x91, 0x1401a2c61\nlea     rcx, [rsp+78h+arg_0]                                           ; +0x94, 0x1401a2c64\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x9c, 0x1401a2c6c\nlea     rdx, [rsp+78h+arg_0]                                           ; +0xa2, 0x1401a2c72\nlea     rcx, [rsp+78h+arg_18]                                          ; +0xaa, 0x1401a2c7a\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xb2, 0x1401a2c82\nxorps   xmm8, xmm8                                                     ; +0xb8, 0x1401a2c88\nmovss   xmm0, dword ptr [rax+4]                                        ; +0xbc, 0x1401a2c8c\nmovss   xmm1, dword ptr [rax]                                          ; +0xc1, 0x1401a2c91\nsubss   xmm0, xmm8                                                     ; +0xc5, 0x1401a2c95\nsubss   xmm1, xmm8                                                     ; +0xca, 0x1401a2c9a\nsubss   xmm0, dword ptr [rdi+19Ch]; Y                                  ; +0xcf, 0x1401a2c9f\nsubss   xmm1, dword ptr [rdi+198h]; X                                  ; +0xd7, 0x1401a2ca7\ncall    atan2f                                                         ; +0xdf, 0x1401a2caf\nmovaps  xmm9, xmm0                                                     ; +0xe4, 0x1401a2cb4\ncall    sinf                                                           ; +0xe8, 0x1401a2cb8\nmovaps  xmm7, xmm0                                                     ; +0xed, 0x1401a2cbd\nmovaps  xmm0, xmm9; X                                                  ; +0xf0, 0x1401a2cc0\nmulss   xmm7, cs:dword_1408356E4                                       ; +0xf4, 0x1401a2cc4\naddss   xmm7, xmm8                                                     ; +0xfc, 0x1401a2ccc\ncall    cosf                                                           ; +0x101, 0x1401a2cd1\nmulss   xmm0, cs:dword_1408356E4                                       ; +0x106, 0x1401a2cd6\nlea     rcx, [rsp+78h+var_58]                                          ; +0x10e, 0x1401a2cde\nmovaps  xmm2, xmm7                                                     ; +0x113, 0x1401a2ce3\naddss   xmm0, xmm8                                                     ; +0x116, 0x1401a2ce6\nmovaps  xmm1, xmm0                                                     ; +0x11b, 0x1401a2ceb\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x11e, 0x1401a2cee\nmov     rdx, rax                                                       ; +0x124, 0x1401a2cf4\nlea     rcx, [rdi+1A0h]                                                ; +0x127, 0x1401a2cf7\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x12e, 0x1401a2cfe\nmov     rcx, [rdi+1A8h]                                                ; +0x134, 0x1401a2d04\nlea     rdx, [rdi+1A0h]                                                ; +0x13b, 0x1401a2d0b\nmov     rax, [rcx]                                                     ; +0x142, 0x1401a2d12\ncall    qword ptr [rax+0B8h]                                           ; +0x145, 0x1401a2d15\nmulss   xmm9, cs:dword_1408356D4                                       ; +0x14b, 0x1401a2d1b\nxorps   xmm9, cs:xmmword_140836CC0                                     ; +0x154, 0x1401a2d24\nmulss   xmm9, cs:dword_140835AA4                                       ; +0x15c, 0x1401a2d2c\nmovaps  xmm0, xmm9; X                                                  ; +0x165, 0x1401a2d35\ncall    cs:__imp_roundf                                                ; +0x169, 0x1401a2d39\ndivss   xmm0, cs:dword_140835AA4                                       ; +0x16f, 0x1401a2d3f\nmov     rbx, [rsp+78h+arg_8]                                           ; +0x177, 0x1401a2d47\nmovss   xmm6, dword ptr [rdi+1B4h]                                     ; +0x17f, 0x1401a2d4f\nucomiss xmm0, xmm6                                                     ; +0x187, 0x1401a2d57\nmovaps  xmm9, [rsp+78h+var_48]                                         ; +0x18a, 0x1401a2d5a\nmovaps  xmm8, [rsp+78h+var_38]                                         ; +0x190, 0x1401a2d60\nmovaps  xmm7, [rsp+78h+var_28]                                         ; +0x196, 0x1401a2d66\njp      short loc_1401A2D6F                                            ; +0x19b, 0x1401a2d6b\njz      short loc_1401A2DA7                                            ; +0x19d, 0x1401a2d6d\nmovaps  xmm1, xmm0                                                     ; +0x19f, 0x1401a2d6f\nmovss   dword ptr [rdi+1B4h], xmm0                                     ; +0x1a2, 0x1401a2d72\nmov     rcx, rdi                                                       ; +0x1aa, 0x1401a2d7a\ncall    GJRotationControl__updateAngleInput                            ; +0x1ad, 0x1401a2d7d\nmov     rcx, [rdi+200h]                                                ; +0x1b2, 0x1401a2d82\ntest    rcx, rcx                                                       ; +0x1b9, 0x1401a2d89\njz      short loc_1401A2DA7                                            ; +0x1bc, 0x1401a2d8c\nmovss   xmm1, dword ptr [rdi+1B4h]                                     ; +0x1be, 0x1401a2d8e\nmov     rax, [rcx]                                                     ; +0x1c6, 0x1401a2d96\nsubss   xmm1, xmm6                                                     ; +0x1c9, 0x1401a2d99\nmovzx   r8d, byte ptr [rdi+1C8h]                                       ; +0x1cd, 0x1401a2d9d\ncall    qword ptr [rax]                                                ; +0x1d5, 0x1401a2da5\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0x1d7, 0x1401a2da7\nadd     rsp, 70h                                                       ; +0x1dc, 0x1401a2dac\npop     rdi                                                            ; +0x1e0, 0x1401a2db0\nretn                                                                   ; +0x1e1, 0x1401a2db1", "xrefs": ["<???> @ 0x140751130", "<???> @ 0x1408a0868", "<???> @ 0x1408a087c", "<???> @ 0x1408a088c", "<???> @ 0x140919964"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}