{"type": "func", "start": 6442827344, "end": 6442827464, "name": "cocos2d::CCMenuItemSprite::unselected", "pseudocode": "// \n// cocos2d::CCMenuItemSprite::unselected from 0x18005be50 to 0x18005bec8 (120 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800f86d8\n// > <???> @ 0x1800f8b38\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2fc4\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::unselected(cocos2d::CCMenuItemSprite *this, __int64 a2)\n{\n  bool v2; // zf\n  __int64 v4; // rcx\n  cocos2d::CCNode *m_pNormalImage; // rcx\n  cocos2d::CCNode *m_pSelectedImage; // rcx\n\n  v2 = this->m_pNormalImage == nullptr;\n  this->m_bSelected = 0;\n  if ( !v2 || this->m_pSelectedImage )\n  {\n    v4 = *(_QWORD *)&this->m_nScriptTapHandler;\n    if ( v4 )\n    {\n      LOBYTE(a2) = 1;\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 320LL))(v4, a2);\n      m_pNormalImage = this->m_pNormalImage;\n      if ( m_pNormalImage )\n        ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))m_pNormalImage->setVisible)(m_pNormalImage, 0);\n      m_pSelectedImage = this->m_pSelectedImage;\n      if ( m_pSelectedImage )\n        ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))m_pSelectedImage->setVisible)(m_pSelectedImage, 0);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCMenuItemSprite::unselected from 0x18005be50 to 0x18005bec8 (120 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800f86d8\n; > <???> @ 0x1800f8b38\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2fc4\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, 0x18005be50\npush    rdi                                                            ; +0x5, 0x18005be55\nsub     rsp, 20h                                                       ; +0x6, 0x18005be56\ncmp     qword ptr [rcx+180h], 0                                        ; +0xa, 0x18005be5a\nmov     rdi, rcx                                                       ; +0x12, 0x18005be62\nmov     byte ptr [rcx+158h], 0                                         ; +0x15, 0x18005be65\njnz     short loc_18005BE78                                            ; +0x1c, 0x18005be6c\ncmp     qword ptr [rcx+188h], 0                                        ; +0x1e, 0x18005be6e\njz      short loc_18005BEBD                                            ; +0x26, 0x18005be76\nmov     rcx, [rcx+178h]                                                ; +0x28, 0x18005be78\ntest    rcx, rcx                                                       ; +0x2f, 0x18005be7f\njz      short loc_18005BEBD                                            ; +0x32, 0x18005be82\nmov     rax, [rcx]                                                     ; +0x34, 0x18005be84\nmov     dl, 1                                                          ; +0x37, 0x18005be87\ncall    qword ptr [rax+140h]                                           ; +0x39, 0x18005be89\nmov     rcx, [rdi+180h]                                                ; +0x3f, 0x18005be8f\ntest    rcx, rcx                                                       ; +0x46, 0x18005be96\njz      short loc_18005BEA6                                            ; +0x49, 0x18005be99\nmov     rax, [rcx]                                                     ; +0x4b, 0x18005be9b\nxor     edx, edx                                                       ; +0x4e, 0x18005be9e\ncall    qword ptr [rax+140h]                                           ; +0x50, 0x18005bea0\nmov     rcx, [rdi+188h]                                                ; +0x56, 0x18005bea6\ntest    rcx, rcx                                                       ; +0x5d, 0x18005bead\njz      short loc_18005BEBD                                            ; +0x60, 0x18005beb0\nmov     rax, [rcx]                                                     ; +0x62, 0x18005beb2\nxor     edx, edx                                                       ; +0x65, 0x18005beb5\ncall    qword ptr [rax+140h]                                           ; +0x67, 0x18005beb7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6d, 0x18005bebd\nadd     rsp, 20h                                                       ; +0x72, 0x18005bec2\npop     rdi                                                            ; +0x76, 0x18005bec6\nretn                                                                   ; +0x77, 0x18005bec7", "xrefs": ["<???> @ 0x1800f86d8", "<???> @ 0x1800f8b38", "<???> @ 0x1801438a8", "<???> @ 0x1801b2fc4"], "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"}