{"type": "func", "start": 6442503216, "end": 6442503385, "name": "cocos2d::extension::CCControlSwitch::ccTouchMoved", "pseudocode": "// \n// cocos2d::extension::CCControlSwitch::ccTouchMoved from 0x18000cc30 to 0x18000ccd9 (169 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180028c70\n// > <???> @ 0x180032408\n// > <???> @ 0x18004bcb4\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 12:15:38 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCControlSwitch::ccTouchMoved(\n        cocos2d::extension::CCControlSwitch *this,\n        struct cocos2d::CCTouch *a2,\n        struct cocos2d::CCEvent *a3)\n{\n  __int64 v4; // rax\n  __int64 v5; // rax\n  float *v6; // rcx\n  float v7; // xmm1_4\n  float v8; // xmm0_4\n  float v9; // [rsp+30h] [rbp+8h] BYREF\n  char v10; // [rsp+48h] [rbp+20h] BYREF\n\n  cocos2d::CCTouch::getLocation(a2);\n  v4 = cocos2d::CCNode::convertToNodeSpace((char *)this - 320, &v10, &v9);\n  cocos2d::CCPoint::operator=(&v9, v4);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, v9 - *((float *)this + 40), 0.0);\n  cocos2d::CCPoint::operator=(&v9, v5);\n  v6 = *((float **)this + 19);\n  v7 = v9;\n  *((_BYTE *)this + 164) = 1;\n  v8 = v6[154];\n  if ( v8 < v7 )\n    v8 = fminf(v6[153], v7);\n  v6[152] = v8;\n  sub_18000C1C0((__int64)v6);\n}", "assembly": "; \n; cocos2d::extension::CCControlSwitch::ccTouchMoved from 0x18000cc30 to 0x18000ccd9 (169 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180028c70\n; > <???> @ 0x180032408\n; > <???> @ 0x18004bcb4\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 12:15:38 +0000\n; \npush    rbx                                                            ; +0x0, 0x18000cc30\nsub     rsp, 20h                                                       ; +0x2, 0x18000cc32\nmov     rax, rdx                                                       ; +0x6, 0x18000cc36\nmov     rbx, rcx                                                       ; +0x9, 0x18000cc39\nmov     rcx, rax                                                       ; +0xc, 0x18000cc3c\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xf, 0x18000cc3f\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x14, 0x18000cc44\nlea     rcx, [rbx-140h]                                                ; +0x1a, 0x18000cc4a\nlea     r8, [rsp+28h+arg_0]                                            ; +0x21, 0x18000cc51\nlea     rdx, [rsp+28h+arg_18]                                          ; +0x26, 0x18000cc56\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x2b, 0x18000cc5b\nmov     rdx, rax                                                       ; +0x31, 0x18000cc61\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x34, 0x18000cc64\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x39, 0x18000cc69\nmovss   xmm1, [rsp+28h+arg_0]                                          ; +0x3f, 0x18000cc6f\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x45, 0x18000cc75\nsubss   xmm1, dword ptr [rbx+0A0h]                                     ; +0x4a, 0x18000cc7a\nxorps   xmm2, xmm2                                                     ; +0x52, 0x18000cc82\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x55, 0x18000cc85\nmov     rdx, rax                                                       ; +0x5b, 0x18000cc8b\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x5e, 0x18000cc8e\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x63, 0x18000cc93\nmov     rcx, [rbx+98h]                                                 ; +0x69, 0x18000cc99\nmovss   xmm1, [rsp+28h+arg_0]                                          ; +0x70, 0x18000cca0\nmov     byte ptr [rbx+0A4h], 1                                         ; +0x76, 0x18000cca6\nmovss   xmm0, dword ptr [rcx+268h]                                     ; +0x7d, 0x18000ccad\ncomiss  xmm0, xmm1                                                     ; +0x85, 0x18000ccb5\njnb     short loc_18000CCC6                                            ; +0x88, 0x18000ccb8\nmovss   xmm0, dword ptr [rcx+264h]                                     ; +0x8a, 0x18000ccba\nminss   xmm0, xmm1                                                     ; +0x92, 0x18000ccc2\nmovss   dword ptr [rcx+260h], xmm0                                     ; +0x96, 0x18000ccc6\ncall    sub_18000C1C0                                                  ; +0x9e, 0x18000ccce\nadd     rsp, 20h                                                       ; +0xa3, 0x18000ccd3\npop     rbx                                                            ; +0xa7, 0x18000ccd7\nretn                                                                   ; +0xa8, 0x18000ccd8", "xrefs": ["<???> @ 0x180028c70", "<???> @ 0x180032408", "<???> @ 0x18004bcb4"], "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"}