{"type": "func", "start": 6442504432, "end": 6442504601, "name": "cocos2d::extension::CCControlSwitch::ccTouchMoved", "pseudocode": "// \n// cocos2d::extension::CCControlSwitch::ccTouchMoved from 0x18000d0f0 to 0x18000d199 (169 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180026658\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049dd4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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_18000C670((__int64)v6);\n}", "assembly": "; \n; cocos2d::extension::CCControlSwitch::ccTouchMoved from 0x18000d0f0 to 0x18000d199 (169 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180026658\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049dd4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x18000d0f0\nsub     rsp, 20h                                                       ; +0x2, 0x18000d0f2\nmov     rax, rdx                                                       ; +0x6, 0x18000d0f6\nmov     rbx, rcx                                                       ; +0x9, 0x18000d0f9\nmov     rcx, rax                                                       ; +0xc, 0x18000d0fc\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xf, 0x18000d0ff\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x14, 0x18000d104\nlea     rcx, [rbx-140h]                                                ; +0x1a, 0x18000d10a\nlea     r8, [rsp+28h+arg_0]                                            ; +0x21, 0x18000d111\nlea     rdx, [rsp+28h+arg_18]                                          ; +0x26, 0x18000d116\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x2b, 0x18000d11b\nmov     rdx, rax                                                       ; +0x31, 0x18000d121\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x34, 0x18000d124\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x39, 0x18000d129\nmovss   xmm1, [rsp+28h+arg_0]                                          ; +0x3f, 0x18000d12f\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x45, 0x18000d135\nsubss   xmm1, dword ptr [rbx+0A0h]                                     ; +0x4a, 0x18000d13a\nxorps   xmm2, xmm2                                                     ; +0x52, 0x18000d142\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x55, 0x18000d145\nmov     rdx, rax                                                       ; +0x5b, 0x18000d14b\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x5e, 0x18000d14e\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x63, 0x18000d153\nmov     rcx, [rbx+98h]                                                 ; +0x69, 0x18000d159\nmovss   xmm1, [rsp+28h+arg_0]                                          ; +0x70, 0x18000d160\nmov     byte ptr [rbx+0A4h], 1                                         ; +0x76, 0x18000d166\nmovss   xmm0, dword ptr [rcx+268h]                                     ; +0x7d, 0x18000d16d\ncomiss  xmm0, xmm1                                                     ; +0x85, 0x18000d175\njnb     short loc_18000D186                                            ; +0x88, 0x18000d178\nmovss   xmm0, dword ptr [rcx+264h]                                     ; +0x8a, 0x18000d17a\nminss   xmm0, xmm1                                                     ; +0x92, 0x18000d182\nmovss   dword ptr [rcx+260h], xmm0                                     ; +0x96, 0x18000d186\ncall    sub_18000C670                                                  ; +0x9e, 0x18000d18e\nadd     rsp, 20h                                                       ; +0xa3, 0x18000d193\npop     rbx                                                            ; +0xa7, 0x18000d197\nretn                                                                   ; +0xa8, 0x18000d198", "xrefs": ["<???> @ 0x180026658", "<???> @ 0x18002fdf8", "<???> @ 0x180049dd4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}