{"type": "func", "start": 6442826080, "end": 6442826223, "name": "cocos2d::CCMenuItemLabel::setLabel", "pseudocode": "// \n// cocos2d::CCMenuItemLabel::setLabel from 0x18005b960 to 0x18005b9ef (143 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800f7a48\n// > <???> @ 0x1800f7e90\n// > <???> @ 0x1800f82d8\n// > <???> @ 0x180138b88\n// > <???> @ 0x180138b98\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2eec\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::CCMenuItemLabel::setLabel(\n        cocos2d::CCMenuItemLabel *this,\n        struct cocos2d::CCNode *a2,\n        __int64 a3)\n{\n  cocos2d::CCNode_vtbl *v5; // rbx\n  float *v6; // rax\n  cocos2d::CCMenuItemLabel_vtbl *v7; // rbx\n  __int64 v8; // rax\n  __int64 v9; // rdx\n  float v10; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( a2 )\n  {\n    ((void (*)(void))this->addChild_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    v7 = this->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v8 = ((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->getContentSize)(a2);\n    ((void (__fastcall *)(cocos2d::CCMenuItemLabel *, __int64))v7->setContentSize)(this, v8);\n  }\n  v9 = *((_QWORD *)this + 48);\n  if ( v9 )\n  {\n    LOBYTE(a3) = 1;\n    ((void (__fastcall *)(cocos2d::CCMenuItemLabel *, __int64, __int64))this->removeChild)(this, v9, a3);\n  }\n  *((_QWORD *)this + 48) = a2;\n}", "assembly": "; \n; cocos2d::CCMenuItemLabel::setLabel from 0x18005b960 to 0x18005b9ef (143 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800f7a48\n; > <???> @ 0x1800f7e90\n; > <???> @ 0x1800f82d8\n; > <???> @ 0x180138b88\n; > <???> @ 0x180138b98\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2eec\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, 0x18005b960\npush    rdi                                                            ; +0x5, 0x18005b965\nsub     rsp, 20h                                                       ; +0x6, 0x18005b966\nmov     rsi, rdx                                                       ; +0xa, 0x18005b96a\nmov     rdi, rcx                                                       ; +0xd, 0x18005b96d\ntest    rdx, rdx                                                       ; +0x10, 0x18005b970\njz      short loc_18005B9C2                                            ; +0x13, 0x18005b973\nmov     rax, [rcx]                                                     ; +0x15, 0x18005b975\nmov     [rsp+28h+arg_8], rbx                                           ; +0x18, 0x18005b978\ncall    qword ptr [rax+1C0h]                                           ; +0x1d, 0x18005b97d\nmov     rbx, [rsi]                                                     ; +0x23, 0x18005b983\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x26, 0x18005b986\nxorps   xmm2, xmm2                                                     ; +0x2b, 0x18005b98b\nxorps   xmm1, xmm1                                                     ; +0x2e, 0x18005b98e\ncall    kmVec2Fill                                                     ; +0x31, 0x18005b991\nmov     rdx, rax                                                       ; +0x36, 0x18005b996\nmov     rcx, rsi                                                       ; +0x39, 0x18005b999\ncall    qword ptr [rbx+110h]                                           ; +0x3c, 0x18005b99c\nmov     rax, [rsi]                                                     ; +0x42, 0x18005b9a2\nmov     rcx, rsi                                                       ; +0x45, 0x18005b9a5\nmov     rbx, [rdi]                                                     ; +0x48, 0x18005b9a8\ncall    qword ptr [rax+130h]                                           ; +0x4b, 0x18005b9ab\nmov     rdx, rax                                                       ; +0x51, 0x18005b9b1\nmov     rcx, rdi                                                       ; +0x54, 0x18005b9b4\ncall    qword ptr [rbx+128h]                                           ; +0x57, 0x18005b9b7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x5d, 0x18005b9bd\nmov     rdx, [rdi+180h]                                                ; +0x62, 0x18005b9c2\ntest    rdx, rdx                                                       ; +0x69, 0x18005b9c9\njz      short loc_18005B9DD                                            ; +0x6c, 0x18005b9cc\nmov     rax, [rdi]                                                     ; +0x6e, 0x18005b9ce\nmov     r8b, 1                                                         ; +0x71, 0x18005b9d1\nmov     rcx, rdi                                                       ; +0x74, 0x18005b9d4\ncall    qword ptr [rax+208h]                                           ; +0x77, 0x18005b9d7\nmov     [rdi+180h], rsi                                                ; +0x7d, 0x18005b9dd\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x84, 0x18005b9e4\nadd     rsp, 20h                                                       ; +0x89, 0x18005b9e9\npop     rdi                                                            ; +0x8d, 0x18005b9ed\nretn                                                                   ; +0x8e, 0x18005b9ee", "xrefs": ["<???> @ 0x1800f7a48", "<???> @ 0x1800f7e90", "<???> @ 0x1800f82d8", "<???> @ 0x180138b88", "<???> @ 0x180138b98", "<???> @ 0x1801438a8", "<???> @ 0x1801b2eec"], "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"}