{"type": "func", "start": 6442827520, "end": 6442827740, "name": "cocos2d::CCMenuItemSprite::updateImagesVisibility", "pseudocode": "// \n// cocos2d::CCMenuItemSprite::updateImagesVisibility from 0x18005bf00 to 0x18005bfdc (220 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800f8738\n// > <???> @ 0x1800f8b98\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2fdc\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::CCMenuItemSprite::updateImagesVisibility(cocos2d::CCMenuItemSprite *this, __int64 a2)\n{\n  cocos2d::CCNode **p_m_pNormalImage; // rdi\n  cocos2d::CCNode **p_m_pSelectedImage; // rbx\n  cocos2d::CCNode **v4; // rsi\n  bool v5; // zf\n  __int64 v6; // rcx\n  cocos2d::CCNode *v7; // rcx\n  cocos2d::CCNode *v8; // rcx\n\n  p_m_pNormalImage = &this->m_pNormalImage;\n  p_m_pSelectedImage = &this->m_pSelectedImage;\n  if ( this->m_pNormalImage )\n  {\n    v4 = &this->m_pNormalImage;\n  }\n  else\n  {\n    if ( !*p_m_pSelectedImage )\n      return;\n    v4 = &this->m_pNormalImage;\n  }\n  v5 = !this->m_bEnabled;\n  v6 = *(_QWORD *)&this->m_nScriptTapHandler;\n  if ( !v5 )\n  {\n    if ( v6 )\n    {\n      LOBYTE(a2) = 1;\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 320LL))(v6, a2);\n    }\n    v7 = *p_m_pNormalImage;\n    goto LABEL_19;\n  }\n  if ( !*p_m_pSelectedImage )\n  {\n    if ( v6 )\n    {\n      LOBYTE(a2) = 1;\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 320LL))(v6, a2);\n    }\n    v7 = *v4;\nLABEL_19:\n    if ( v7 )\n      ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v7->setVisible)(v7, 0);\n    v8 = *p_m_pSelectedImage;\n    if ( *p_m_pSelectedImage )\n    {\n      a2 = 0;\n      goto LABEL_23;\n    }\n    return;\n  }\n  if ( v6 )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 320LL))(v6, 0);\n    p_m_pNormalImage = v4;\n  }\n  if ( *p_m_pNormalImage )\n    ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))(*p_m_pNormalImage)->setVisible)(*p_m_pNormalImage, 0);\n  v8 = *p_m_pSelectedImage;\n  if ( *p_m_pSelectedImage )\n  {\n    LOBYTE(a2) = 1;\nLABEL_23:\n    ((void (__fastcall *)(cocos2d::CCNode *, __int64))v8->setVisible)(v8, a2);\n  }\n}", "assembly": "; \n; cocos2d::CCMenuItemSprite::updateImagesVisibility from 0x18005bf00 to 0x18005bfdc (220 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800f8738\n; > <???> @ 0x1800f8b98\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2fdc\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     [rsp+arg_0], rbx                                               ; +0x0, 0x18005bf00\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18005bf05\npush    rdi                                                            ; +0xa, 0x18005bf0a\nsub     rsp, 20h                                                       ; +0xb, 0x18005bf0b\nlea     rdi, [rcx+180h]                                                ; +0xf, 0x18005bf0f\ncmp     qword ptr [rdi], 0                                             ; +0x16, 0x18005bf16\nlea     rbx, [rcx+188h]                                                ; +0x1a, 0x18005bf1a\njnz     short loc_18005BF36                                            ; +0x21, 0x18005bf21\ncmp     qword ptr [rbx], 0                                             ; +0x23, 0x18005bf23\njz      loc_18005BFCC                                                  ; +0x27, 0x18005bf27\nlea     rsi, [rcx+180h]                                                ; +0x2d, 0x18005bf2d\njmp     short loc_18005BF39                                            ; +0x34, 0x18005bf34\nmov     rsi, rdi                                                       ; +0x36, 0x18005bf36\ncmp     byte ptr [rcx+159h], 0                                         ; +0x39, 0x18005bf39\nmov     rcx, [rcx+178h]                                                ; +0x40, 0x18005bf40\njz      short loc_18005BF5E                                            ; +0x47, 0x18005bf47\ntest    rcx, rcx                                                       ; +0x49, 0x18005bf49\njz      short loc_18005BF59                                            ; +0x4c, 0x18005bf4c\nmov     rax, [rcx]                                                     ; +0x4e, 0x18005bf4e\nmov     dl, 1                                                          ; +0x51, 0x18005bf51\ncall    qword ptr [rax+140h]                                           ; +0x53, 0x18005bf53\nmov     rcx, [rdi]                                                     ; +0x59, 0x18005bf59\njmp     short loc_18005BFA9                                            ; +0x5c, 0x18005bf5c\ncmp     qword ptr [rbx], 0                                             ; +0x5e, 0x18005bf5e\njz      short loc_18005BF96                                            ; +0x62, 0x18005bf62\ntest    rcx, rcx                                                       ; +0x64, 0x18005bf64\njz      short loc_18005BF77                                            ; +0x67, 0x18005bf67\nmov     rax, [rcx]                                                     ; +0x69, 0x18005bf69\nxor     edx, edx                                                       ; +0x6c, 0x18005bf6c\ncall    qword ptr [rax+140h]                                           ; +0x6e, 0x18005bf6e\nmov     rdi, rsi                                                       ; +0x74, 0x18005bf74\nmov     rcx, [rdi]                                                     ; +0x77, 0x18005bf77\ntest    rcx, rcx                                                       ; +0x7a, 0x18005bf7a\njz      short loc_18005BF8A                                            ; +0x7d, 0x18005bf7d\nmov     rax, [rcx]                                                     ; +0x7f, 0x18005bf7f\nxor     edx, edx                                                       ; +0x82, 0x18005bf82\ncall    qword ptr [rax+140h]                                           ; +0x84, 0x18005bf84\nmov     rcx, [rbx]                                                     ; +0x8a, 0x18005bf8a\ntest    rcx, rcx                                                       ; +0x8d, 0x18005bf8d\njz      short loc_18005BFCC                                            ; +0x90, 0x18005bf90\nmov     dl, 1                                                          ; +0x92, 0x18005bf92\njmp     short loc_18005BFC3                                            ; +0x94, 0x18005bf94\ntest    rcx, rcx                                                       ; +0x96, 0x18005bf96\njz      short loc_18005BFA6                                            ; +0x99, 0x18005bf99\nmov     rax, [rcx]                                                     ; +0x9b, 0x18005bf9b\nmov     dl, 1                                                          ; +0x9e, 0x18005bf9e\ncall    qword ptr [rax+140h]                                           ; +0xa0, 0x18005bfa0\nmov     rcx, [rsi]                                                     ; +0xa6, 0x18005bfa6\ntest    rcx, rcx                                                       ; +0xa9, 0x18005bfa9\njz      short loc_18005BFB9                                            ; +0xac, 0x18005bfac\nmov     rax, [rcx]                                                     ; +0xae, 0x18005bfae\nxor     edx, edx                                                       ; +0xb1, 0x18005bfb1\ncall    qword ptr [rax+140h]                                           ; +0xb3, 0x18005bfb3\nmov     rcx, [rbx]                                                     ; +0xb9, 0x18005bfb9\ntest    rcx, rcx                                                       ; +0xbc, 0x18005bfbc\njz      short loc_18005BFCC                                            ; +0xbf, 0x18005bfbf\nxor     edx, edx                                                       ; +0xc1, 0x18005bfc1\nmov     rax, [rcx]                                                     ; +0xc3, 0x18005bfc3\ncall    qword ptr [rax+140h]                                           ; +0xc6, 0x18005bfc6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xcc, 0x18005bfcc\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xd1, 0x18005bfd1\nadd     rsp, 20h                                                       ; +0xd6, 0x18005bfd6\npop     rdi                                                            ; +0xda, 0x18005bfda\nretn                                                                   ; +0xdb, 0x18005bfdb", "xrefs": ["<???> @ 0x1800f8738", "<???> @ 0x1800f8b98", "<???> @ 0x1801438a8", "<???> @ 0x1801b2fdc"], "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"}