{"type": "func", "start": 6442502896, "end": 6442502949, "name": "cocos2d::extension::CCControlSwitch::setEnabled", "pseudocode": "// \n// cocos2d::extension::CCControlSwitch::setEnabled from 0x18000caf0 to 0x18000cb25 (53 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800290c8\n// > <???> @ 0x180032408\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::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 0x18000caf0 to 0x18000cb25 (53 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800290c8\n; > <???> @ 0x180032408\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     [rcx+1B9h], dl                                                 ; +0x0, 0x18000caf0\nmovzx   eax, dl                                                        ; +0x6, 0x18000caf6\nmov     rcx, [rcx+1D8h]                                                ; +0x9, 0x18000caf9\ntest    rcx, rcx                                                       ; +0x10, 0x18000cb00\njz      short locret_18000CB24                                         ; +0x13, 0x18000cb03\nadd     rcx, 140h                                                      ; +0x15, 0x18000cb05\nmov     edx, 80h                                                       ; +0x1c, 0x18000cb0c\ntest    al, al                                                         ; +0x21, 0x18000cb11\nmov     r8d, 0FFh                                                      ; +0x23, 0x18000cb13\ncmovnz  edx, r8d                                                       ; +0x29, 0x18000cb19\nmov     rax, [rcx]                                                     ; +0x2d, 0x18000cb1d\njmp     qword ptr [rax+28h]                                            ; +0x30, 0x18000cb20\nretn                                                                   ; +0x34, 0x18000cb24", "xrefs": ["<???> @ 0x1800290c8", "<???> @ 0x180032408"], "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"}