{"type": "func", "start": 6442504112, "end": 6442504167, "name": "cocos2d::extension::CCControlSwitch::setEnabled", "pseudocode": "// \n// cocos2d::extension::CCControlSwitch::setEnabled from 0x18000cfb0 to 0x18000cfe7 (55 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180026aa0\n// > <???> @ 0x18002fdf8\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::setEnabled(cocos2d::extension::CCControlSwitch *this, char a2)\n{\n  __int64 v3; // rcx\n  __int64 v4; // rcx\n  __int64 v5; // rdx\n\n  *((_BYTE *)this + 441) = a2;\n  v3 = *((_QWORD *)this + 59);\n  if ( v3 )\n  {\n    v4 = v3 + 320;\n    v5 = 128;\n    if ( a2 )\n      v5 = 255;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 40LL))(v4, v5);\n  }\n}", "assembly": "; \n; cocos2d::extension::CCControlSwitch::setEnabled from 0x18000cfb0 to 0x18000cfe7 (55 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180026aa0\n; > <???> @ 0x18002fdf8\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\nmov     [rcx+1B9h], dl                                                 ; +0x0, 0x18000cfb0\nmovzx   r8d, dl                                                        ; +0x6, 0x18000cfb6\nmov     rcx, [rcx+1D8h]                                                ; +0xa, 0x18000cfba\ntest    rcx, rcx                                                       ; +0x11, 0x18000cfc1\njz      short locret_18000CFE6                                         ; +0x14, 0x18000cfc4\nadd     rcx, 140h                                                      ; +0x16, 0x18000cfc6\nmov     edx, 80h                                                       ; +0x1d, 0x18000cfcd\ntest    r8b, r8b                                                       ; +0x22, 0x18000cfd2\nmov     r9d, 0FFh                                                      ; +0x25, 0x18000cfd5\ncmovnz  edx, r9d                                                       ; +0x2b, 0x18000cfdb\nmov     rax, [rcx]                                                     ; +0x2f, 0x18000cfdf\njmp     qword ptr [rax+28h]                                            ; +0x32, 0x18000cfe2\nretn                                                                   ; +0x36, 0x18000cfe6", "xrefs": ["<???> @ 0x180026aa0", "<???> @ 0x18002fdf8"], "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"}