{"type": "func", "start": 6442825248, "end": 6442825394, "name": "cocos2d::CCMenuItemSprite::setDisabledImage", "pseudocode": "// \n// cocos2d::CCMenuItemSprite::setDisabledImage from 0x18005b620 to 0x18005b6b2 (146 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800f8730\n// > <???> @ 0x1800f8b90\n// > <???> @ 0x180138dc4\n// > <???> @ 0x180138dd4\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2e50\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::setDisabledImage(\n        cocos2d::CCMenuItemSprite *this,\n        struct cocos2d::CCNode *a2,\n        __int64 a3)\n{\n  cocos2d::CCNode_vtbl *v5; // rbx\n  float *v6; // rax\n  cocos2d::CCNode *m_pSelectedImage; // rdx\n  cocos2d::CCMenuItemSprite_vtbl *v8; // rax\n  float v9; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( a2 != *(struct cocos2d::CCNode **)&this->m_nScriptTapHandler )\n  {\n    if ( a2 )\n    {\n      ((void (__fastcall *)(cocos2d::CCMenuItemSprite *, struct cocos2d::CCNode *, _QWORD, __int64))this->addChild)(\n        this,\n        a2,\n        0,\n        3);\n      v5 = a2->__vftable;\n      v6 = kmVec2Fill(&v9, 0.0, 0.0);\n      ((void (__fastcall *)(struct cocos2d::CCNode *, float *))v5->setAnchorPoint)(a2, v6);\n    }\n    m_pSelectedImage = this->m_pSelectedImage;\n    if ( m_pSelectedImage )\n    {\n      LOBYTE(a3) = 1;\n      ((void (__fastcall *)(cocos2d::CCMenuItemSprite *, cocos2d::CCNode *, __int64))this->removeChild)(\n        this,\n        m_pSelectedImage,\n        a3);\n    }\n    v8 = this->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    this->m_pSelectedImage = a2;\n    ((void (__fastcall *)(cocos2d::CCMenuItemSprite *))v8->updateImagesVisibility)(this);\n  }\n}", "assembly": "; \n; cocos2d::CCMenuItemSprite::setDisabledImage from 0x18005b620 to 0x18005b6b2 (146 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800f8730\n; > <???> @ 0x1800f8b90\n; > <???> @ 0x180138dc4\n; > <???> @ 0x180138dd4\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2e50\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_10], rsi                                              ; +0x0, 0x18005b620\npush    rdi                                                            ; +0x5, 0x18005b625\nsub     rsp, 20h                                                       ; +0x6, 0x18005b626\nmov     rsi, rdx                                                       ; +0xa, 0x18005b62a\nmov     rdi, rcx                                                       ; +0xd, 0x18005b62d\ncmp     rdx, [rcx+178h]                                                ; +0x10, 0x18005b630\njz      short loc_18005B6A7                                            ; +0x17, 0x18005b637\ntest    rdx, rdx                                                       ; +0x19, 0x18005b639\njz      short loc_18005B679                                            ; +0x1c, 0x18005b63c\nmov     rax, [rcx]                                                     ; +0x1e, 0x18005b63e\nmov     r9d, 3                                                         ; +0x21, 0x18005b641\nxor     r8d, r8d                                                       ; +0x27, 0x18005b647\nmov     [rsp+28h+arg_8], rbx                                           ; +0x2a, 0x18005b64a\ncall    qword ptr [rax+1B0h]                                           ; +0x2f, 0x18005b64f\nmov     rbx, [rsi]                                                     ; +0x35, 0x18005b655\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x38, 0x18005b658\nxorps   xmm2, xmm2                                                     ; +0x3d, 0x18005b65d\nxorps   xmm1, xmm1                                                     ; +0x40, 0x18005b660\ncall    kmVec2Fill                                                     ; +0x43, 0x18005b663\nmov     rdx, rax                                                       ; +0x48, 0x18005b668\nmov     rcx, rsi                                                       ; +0x4b, 0x18005b66b\ncall    qword ptr [rbx+110h]                                           ; +0x4e, 0x18005b66e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x54, 0x18005b674\nmov     rdx, [rdi+188h]                                                ; +0x59, 0x18005b679\ntest    rdx, rdx                                                       ; +0x60, 0x18005b680\njz      short loc_18005B694                                            ; +0x63, 0x18005b683\nmov     rax, [rdi]                                                     ; +0x65, 0x18005b685\nmov     r8b, 1                                                         ; +0x68, 0x18005b688\nmov     rcx, rdi                                                       ; +0x6b, 0x18005b68b\ncall    qword ptr [rax+208h]                                           ; +0x6e, 0x18005b68e\nmov     rax, [rdi]                                                     ; +0x74, 0x18005b694\nmov     rcx, rdi                                                       ; +0x77, 0x18005b697\nmov     [rdi+188h], rsi                                                ; +0x7a, 0x18005b69a\ncall    qword ptr [rax+3D8h]                                           ; +0x81, 0x18005b6a1\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x87, 0x18005b6a7\nadd     rsp, 20h                                                       ; +0x8c, 0x18005b6ac\npop     rdi                                                            ; +0x90, 0x18005b6b0\nretn                                                                   ; +0x91, 0x18005b6b1", "xrefs": ["<???> @ 0x1800f8730", "<???> @ 0x1800f8b90", "<???> @ 0x180138dc4", "<???> @ 0x180138dd4", "<???> @ 0x1801438a8", "<???> @ 0x1801b2e50"], "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"}