{"type": "func", "start": 6442833728, "end": 6442833942, "name": "cocos2d::CCMenuItemLabel::setEnabled", "pseudocode": "// \n// cocos2d::CCMenuItemLabel::setEnabled from 0x18005d740 to 0x18005d816 (214 bytes)\n// \n// 8 xrefs:\n// > <???> @ 0x1800fdea8\n// > <???> @ 0x1800fe300\n// > <???> @ 0x1800fe758\n// > <???> @ 0x180141f0c\n// > <???> @ 0x180141f20\n// > <???> @ 0x180141f30\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd138\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 11:21:49 +0000\n// \n\nvoid __fastcall cocos2d::CCMenuItemLabel::setEnabled(cocos2d::CCMenuItemLabel *this, char a2)\n{\n  __int64 *v4; // rax\n  __int64 v5; // rcx\n  __int64 v6; // rax\n  __int64 v7; // rcx\n  void (__fastcall ***v8)(_QWORD, char *); // rax\n\n  if ( *((_BYTE *)this + 345) == a2 )\n  {\n    *((_BYTE *)this + 345) = a2;\n  }\n  else\n  {\n    v4 = (__int64 *)_RTDynamicCast(\n                      *((_QWORD *)this + 48),\n                      0,\n                      &cocos2d::CCNode `RTTI Type Descriptor',\n                      &cocos2d::CCRGBAProtocol `RTTI Type Descriptor',\n                      0);\n    v5 = *v4;\n    if ( a2 )\n    {\n      (*(void (__fastcall **)(__int64 *, char *))v5)(v4, (char *)this + 392);\n    }\n    else\n    {\n      v6 = (*(__int64 (__fastcall **)(__int64 *))(v5 + 8))(v4);\n      *((_WORD *)this + 196) = *(_WORD *)v6;\n      v7 = *((_QWORD *)this + 48);\n      *((_BYTE *)this + 394) = *(_BYTE *)(v6 + 2);\n      v8 = (void (__fastcall ***)(_QWORD, char *))_RTDynamicCast(\n                                                    v7,\n                                                    0,\n                                                    &cocos2d::CCNode `RTTI Type Descriptor',\n                                                    &cocos2d::CCRGBAProtocol `RTTI Type Descriptor',\n                                                    0);\n      (**v8)(v8, (char *)this + 376);\n    }\n    *((_BYTE *)this + 345) = a2;\n  }\n}", "assembly": "; \n; cocos2d::CCMenuItemLabel::setEnabled from 0x18005d740 to 0x18005d816 (214 bytes)\n; \n; 8 xrefs:\n; > <???> @ 0x1800fdea8\n; > <???> @ 0x1800fe300\n; > <???> @ 0x1800fe758\n; > <???> @ 0x180141f0c\n; > <???> @ 0x180141f20\n; > <???> @ 0x180141f30\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd138\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 11:21:49 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18005d740\npush    rdi                                                            ; +0x5, 0x18005d745\nsub     rsp, 30h                                                       ; +0x6, 0x18005d746\nmovzx   edi, dl                                                        ; +0xa, 0x18005d74a\nmov     rbx, rcx                                                       ; +0xd, 0x18005d74d\ncmp     [rcx+159h], dl                                                 ; +0x10, 0x18005d750\njz      loc_18005D804                                                  ; +0x16, 0x18005d756\nmov     rcx, [rcx+180h]                                                ; +0x1c, 0x18005d75c\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x23, 0x18005d763\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x2a, 0x18005d76a\nmov     [rsp+38h+arg_0], rsi                                           ; +0x31, 0x18005d771\nxor     edx, edx                                                       ; +0x36, 0x18005d776\nmov     [rsp+38h+var_18], 0                                            ; +0x38, 0x18005d778\ncall    __RTDynamicCast                                                ; +0x40, 0x18005d780\nmov     rcx, [rax]                                                     ; +0x45, 0x18005d785\ntest    dil, dil                                                       ; +0x48, 0x18005d788\njnz     short loc_18005D7F8                                            ; +0x4b, 0x18005d78b\nmov     rdx, [rcx+8]                                                   ; +0x4d, 0x18005d78d\nmov     rcx, rax                                                       ; +0x51, 0x18005d791\ncall    rdx                                                            ; +0x54, 0x18005d794\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x56, 0x18005d796\nmov     [rsp+38h+var_18], 0                                            ; +0x5d, 0x18005d79d\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x65, 0x18005d7a5\nxor     edx, edx                                                       ; +0x6c, 0x18005d7ac\nmovzx   ecx, word ptr [rax]                                            ; +0x6e, 0x18005d7ae\nmov     [rbx+188h], cx                                                 ; +0x71, 0x18005d7b1\nmovzx   eax, byte ptr [rax+2]                                          ; +0x78, 0x18005d7b8\nmov     rcx, [rbx+180h]                                                ; +0x7c, 0x18005d7bc\nmov     [rbx+18Ah], al                                                 ; +0x83, 0x18005d7c3\ncall    __RTDynamicCast                                                ; +0x89, 0x18005d7c9\nlea     rdx, [rbx+178h]                                                ; +0x8e, 0x18005d7ce\nmov     rcx, [rax]                                                     ; +0x95, 0x18005d7d5\nmov     r8, [rcx]                                                      ; +0x98, 0x18005d7d8\nmov     rcx, rax                                                       ; +0x9b, 0x18005d7db\ncall    r8                                                             ; +0x9e, 0x18005d7de\nmov     rsi, [rsp+38h+arg_0]                                           ; +0xa1, 0x18005d7e1\nmov     [rbx+159h], dil                                                ; +0xa6, 0x18005d7e6\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xad, 0x18005d7ed\nadd     rsp, 30h                                                       ; +0xb2, 0x18005d7f2\npop     rdi                                                            ; +0xb6, 0x18005d7f6\nretn                                                                   ; +0xb7, 0x18005d7f7\nmov     r8, [rcx]                                                      ; +0xb8, 0x18005d7f8\nlea     rdx, [rbx+188h]                                                ; +0xbb, 0x18005d7fb\njmp     short loc_18005D7DB                                            ; +0xc2, 0x18005d802\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xc4, 0x18005d804\nmov     [rcx+159h], dil                                                ; +0xc9, 0x18005d809\nadd     rsp, 30h                                                       ; +0xd0, 0x18005d810\npop     rdi                                                            ; +0xd4, 0x18005d814\nretn                                                                   ; +0xd5, 0x18005d815", "xrefs": ["<???> @ 0x1800fdea8", "<???> @ 0x1800fe300", "<???> @ 0x1800fe758", "<???> @ 0x180141f0c", "<???> @ 0x180141f20", "<???> @ 0x180141f30", "<???> @ 0x18014cf68", "<???> @ 0x1801bd138"], "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"}