{"type": "func", "start": 6442826224, "end": 6442826401, "name": "cocos2d::CCMenuItemSprite::setNormalImage", "pseudocode": "// \n// cocos2d::CCMenuItemSprite::setNormalImage from 0x18005b9f0 to 0x18005baa1 (177 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800f8710\n// > <???> @ 0x1800f8b70\n// > <???> @ 0x180138d7c\n// > <???> @ 0x180138d8c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2f10\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::setNormalImage(\n        cocos2d::CCMenuItemSprite *this,\n        struct cocos2d::CCNode *a2,\n        __int64 a3)\n{\n  cocos2d::CCNode_vtbl *v5; // rbx\n  float *v6; // rax\n  __int64 v7; // rdx\n  cocos2d::CCMenuItemSprite_vtbl *v8; // rbx\n  __int64 v9; // rax\n  float v10; // [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        1);\n      v5 = a2->__vftable;\n      v6 = kmVec2Fill(&v10, 0.0, 0.0);\n      ((void (__fastcall *)(struct cocos2d::CCNode *, float *))v5->setAnchorPoint)(a2, v6);\n    }\n    v7 = *(_QWORD *)&this->m_nScriptTapHandler;\n    if ( v7 )\n    {\n      LOBYTE(a3) = 1;\n      ((void (__fastcall *)(cocos2d::CCMenuItemSprite *, __int64, __int64))this->removeChild)(this, v7, a3);\n    }\n    v8 = this->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    *(_QWORD *)&this->m_nScriptTapHandler = a2;\n    v9 = ((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->getContentSize)(a2);\n    ((void (__fastcall *)(cocos2d::CCMenuItemSprite *, __int64))v8->setContentSize)(this, v9);\n    ((void (__fastcall *)(cocos2d::CCMenuItemSprite *))this->updateImagesVisibility)(this);\n  }\n}", "assembly": "; \n; cocos2d::CCMenuItemSprite::setNormalImage from 0x18005b9f0 to 0x18005baa1 (177 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800f8710\n; > <???> @ 0x1800f8b70\n; > <???> @ 0x180138d7c\n; > <???> @ 0x180138d8c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2f10\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, 0x18005b9f0\npush    rdi                                                            ; +0x5, 0x18005b9f5\nsub     rsp, 20h                                                       ; +0x6, 0x18005b9f6\nmov     rsi, rdx                                                       ; +0xa, 0x18005b9fa\nmov     rdi, rcx                                                       ; +0xd, 0x18005b9fd\ncmp     rdx, [rcx+178h]                                                ; +0x10, 0x18005ba00\njz      loc_18005BA96                                                  ; +0x17, 0x18005ba07\nmov     [rsp+28h+arg_8], rbx                                           ; +0x1d, 0x18005ba0d\ntest    rdx, rdx                                                       ; +0x22, 0x18005ba12\njz      short loc_18005BA48                                            ; +0x25, 0x18005ba15\nmov     rax, [rcx]                                                     ; +0x27, 0x18005ba17\nmov     r9d, 1                                                         ; +0x2a, 0x18005ba1a\nxor     r8d, r8d                                                       ; +0x30, 0x18005ba20\ncall    qword ptr [rax+1B0h]                                           ; +0x33, 0x18005ba23\nmov     rbx, [rsi]                                                     ; +0x39, 0x18005ba29\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x3c, 0x18005ba2c\nxorps   xmm2, xmm2                                                     ; +0x41, 0x18005ba31\nxorps   xmm1, xmm1                                                     ; +0x44, 0x18005ba34\ncall    kmVec2Fill                                                     ; +0x47, 0x18005ba37\nmov     rdx, rax                                                       ; +0x4c, 0x18005ba3c\nmov     rcx, rsi                                                       ; +0x4f, 0x18005ba3f\ncall    qword ptr [rbx+110h]                                           ; +0x52, 0x18005ba42\nmov     rdx, [rdi+178h]                                                ; +0x58, 0x18005ba48\ntest    rdx, rdx                                                       ; +0x5f, 0x18005ba4f\njz      short loc_18005BA63                                            ; +0x62, 0x18005ba52\nmov     rax, [rdi]                                                     ; +0x64, 0x18005ba54\nmov     r8b, 1                                                         ; +0x67, 0x18005ba57\nmov     rcx, rdi                                                       ; +0x6a, 0x18005ba5a\ncall    qword ptr [rax+208h]                                           ; +0x6d, 0x18005ba5d\nmov     rbx, [rdi]                                                     ; +0x73, 0x18005ba63\nmov     rcx, rsi                                                       ; +0x76, 0x18005ba66\nmov     [rdi+178h], rsi                                                ; +0x79, 0x18005ba69\nmov     rax, [rsi]                                                     ; +0x80, 0x18005ba70\ncall    qword ptr [rax+130h]                                           ; +0x83, 0x18005ba73\nmov     rdx, rax                                                       ; +0x89, 0x18005ba79\nmov     rcx, rdi                                                       ; +0x8c, 0x18005ba7c\ncall    qword ptr [rbx+128h]                                           ; +0x8f, 0x18005ba7f\nmov     rax, [rdi]                                                     ; +0x95, 0x18005ba85\nmov     rcx, rdi                                                       ; +0x98, 0x18005ba88\ncall    qword ptr [rax+3D8h]                                           ; +0x9b, 0x18005ba8b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa1, 0x18005ba91\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xa6, 0x18005ba96\nadd     rsp, 20h                                                       ; +0xab, 0x18005ba9b\npop     rdi                                                            ; +0xaf, 0x18005ba9f\nretn                                                                   ; +0xb0, 0x18005baa0", "xrefs": ["<???> @ 0x1800f8710", "<???> @ 0x1800f8b70", "<???> @ 0x180138d7c", "<???> @ 0x180138d8c", "<???> @ 0x1801438a8", "<???> @ 0x1801b2f10"], "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"}