{"type": "func", "start": 6442503392, "end": 6442503691, "name": "cocos2d::extension::CCControlSwitch::ccTouchEnded", "pseudocode": "// \n// cocos2d::extension::CCControlSwitch::ccTouchEnded from 0x18000cce0 to 0x18000ce0b (299 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180028c78\n// > <???> @ 0x180028c80\n// > <???> @ 0x180032408\n// > <???> @ 0x18004bcc0\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\n// Alternative name is '?ccTouchCancelled@CCControlSwitch@extension@cocos2d@@UEAAXPEAVCCTouch@3@PEAVCCEvent@3@@Z'\nvoid __fastcall cocos2d::extension::CCControlSwitch::ccTouchEnded(\n        cocos2d::extension::CCControlSwitch *this,\n        struct cocos2d::CCTouch *a2,\n        struct cocos2d::CCEvent *a3)\n{\n  char *v4; // rdi\n  __int64 v5; // rax\n  void (__fastcall ***v6)(_QWORD, void *); // rcx\n  float *v7; // rax\n  float *v8; // rdx\n  float v9; // xmm3_4\n  char v10; // r8\n  __int64 v11; // rax\n  cocos2d::CCNode *v12; // rbx\n  struct cocos2d::CCAction *v13; // rax\n  float v14; // [rsp+30h] [rbp+8h] BYREF\n  char v15; // [rsp+48h] [rbp+20h] BYREF\n\n  cocos2d::CCTouch::getLocation(a2);\n  v4 = (char *)this - 320;\n  v5 = cocos2d::CCNode::convertToNodeSpace((char *)this - 320, &v15, &v14);\n  cocos2d::CCPoint::operator=(&v14, v5);\n  v6 = (void (__fastcall ***)(_QWORD, void *))(*(_QWORD *)(*((_QWORD *)this + 19) + 656LL) + 320LL);\n  (**v6)(v6, &unk_180025A28);\n  if ( *((_BYTE *)this + 164) )\n  {\n    v7 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 19) + 320LL))(*((_QWORD *)this + 19));\n    v8 = *((float **)v4 + 59);\n    LOBYTE(v7) = (float)(*v7 * 0.5) <= v14;\n    v4[485] = (char)v7;\n    v9 = v8[((unsigned __int8)v7 ^ 1LL) + 153];\n  }\n  else\n  {\n    v10 = *((_BYTE *)this + 165);\n    v8 = *((float **)v4 + 59);\n    v4[485] = v10 == 0;\n    v11 = 153;\n    if ( v10 )\n      v11 = 154;\n    v9 = v8[v11];\n  }\n  v12 = (cocos2d::CCNode *)v8;\n  v13 = cocos2d::CCActionTween::create(0.2, \"sliderXPosition\", v8[152], v9);\n  cocos2d::CCNode::runAction(v12, v13);\n  (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 1088LL))(v4, 256);\n}", "assembly": "; \n; cocos2d::extension::CCControlSwitch::ccTouchEnded from 0x18000cce0 to 0x18000ce0b (299 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180028c78\n; > <???> @ 0x180028c80\n; > <???> @ 0x180032408\n; > <???> @ 0x18004bcc0\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; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18000cce0\npush    rdi                                                            ; +0x5, 0x18000cce5\nsub     rsp, 20h                                                       ; +0x6, 0x18000cce6\nmov     rax, rdx                                                       ; +0xa, 0x18000ccea\nmov     rbx, rcx                                                       ; +0xd, 0x18000cced\nmov     rcx, rax                                                       ; +0x10, 0x18000ccf0\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x13, 0x18000ccf3\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x18, 0x18000ccf8\nlea     rdi, [rbx-140h]                                                ; +0x1e, 0x18000ccfe\nmov     rcx, rdi                                                       ; +0x25, 0x18000cd05\nlea     r8, [rsp+28h+arg_0]                                            ; +0x28, 0x18000cd08\nlea     rdx, [rsp+28h+arg_18]                                          ; +0x2d, 0x18000cd0d\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x32, 0x18000cd12\nmov     rdx, rax                                                       ; +0x38, 0x18000cd18\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x3b, 0x18000cd1b\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x40, 0x18000cd20\nmov     rax, [rbx+98h]                                                 ; +0x46, 0x18000cd26\nlea     rdx, unk_180025A28                                             ; +0x4d, 0x18000cd2d\nmov     rcx, [rax+290h]                                                ; +0x54, 0x18000cd34\nadd     rcx, 140h                                                      ; +0x5b, 0x18000cd3b\nmov     rax, [rcx]                                                     ; +0x62, 0x18000cd42\ncall    qword ptr [rax]                                                ; +0x65, 0x18000cd45\ncmp     byte ptr [rbx+0A4h], 0                                         ; +0x67, 0x18000cd47\njz      short loc_18000CD93                                            ; +0x6e, 0x18000cd4e\nmov     rcx, [rbx+98h]                                                 ; +0x70, 0x18000cd50\nmov     rax, [rcx]                                                     ; +0x77, 0x18000cd57\ncall    qword ptr [rax+140h]                                           ; +0x7a, 0x18000cd5a\nmov     rdx, [rdi+1D8h]                                                ; +0x80, 0x18000cd60\nmovss   xmm0, dword ptr [rax]                                          ; +0x87, 0x18000cd67\nmulss   xmm0, cs:dword_18002BBD8                                       ; +0x8b, 0x18000cd6b\ncomiss  xmm0, [rsp+28h+arg_0]                                          ; +0x93, 0x18000cd73\nsetbe   al                                                             ; +0x98, 0x18000cd78\nmov     [rdi+1E5h], al                                                 ; +0x9b, 0x18000cd7b\nmovzx   eax, al                                                        ; +0xa1, 0x18000cd81\nxor     rax, 1                                                         ; +0xa4, 0x18000cd84\nmovss   xmm3, dword ptr [rdx+rax*4+264h]                               ; +0xa8, 0x18000cd88\njmp     short loc_18000CDC3                                            ; +0xb1, 0x18000cd91\nmovzx   r8d, byte ptr [rbx+0A5h]                                       ; +0xb3, 0x18000cd93\nmov     ecx, 268h                                                      ; +0xbb, 0x18000cd9b\nmov     rdx, [rdi+1D8h]                                                ; +0xc0, 0x18000cda0\ntest    r8b, r8b                                                       ; +0xc7, 0x18000cda7\nsetz    al                                                             ; +0xca, 0x18000cdaa\ntest    r8b, r8b                                                       ; +0xcd, 0x18000cdad\nmov     [rdi+1E5h], al                                                 ; +0xd0, 0x18000cdb0\nmov     eax, 264h                                                      ; +0xd6, 0x18000cdb6\ncmovnz  eax, ecx                                                       ; +0xdb, 0x18000cdbb\nmovss   xmm3, dword ptr [rax+rdx]                                      ; +0xde, 0x18000cdbe\nmovss   xmm2, dword ptr [rdx+260h]                                     ; +0xe3, 0x18000cdc3\nmov     rbx, rdx                                                       ; +0xeb, 0x18000cdcb\nmovss   xmm0, cs:dword_18002BBD0                                       ; +0xee, 0x18000cdce\nlea     rdx, aSliderxpositio; \"sliderXPosition\"                        ; +0xf6, 0x18000cdd6\ncall    cs:?create@CCActionTween@cocos2d@@SAPEAV12@MPEBDMM@Z; cocos2d::CCActionTween::create(float,char const *,float,float) ; +0xfd, 0x18000cddd\nmov     rdx, rax                                                       ; +0x103, 0x18000cde3\nmov     rcx, rbx                                                       ; +0x106, 0x18000cde6\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x109, 0x18000cde9\nmov     rax, [rdi]                                                     ; +0x10f, 0x18000cdef\nmov     edx, 100h                                                      ; +0x112, 0x18000cdf2\nmov     rcx, rdi                                                       ; +0x117, 0x18000cdf7\ncall    qword ptr [rax+440h]                                           ; +0x11a, 0x18000cdfa\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x120, 0x18000ce00\nadd     rsp, 20h                                                       ; +0x125, 0x18000ce05\npop     rdi                                                            ; +0x129, 0x18000ce09\nretn                                                                   ; +0x12a, 0x18000ce0a", "xrefs": ["<???> @ 0x180028c78", "<???> @ 0x180028c80", "<???> @ 0x180032408", "<???> @ 0x18004bcc0"], "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"}