//
// cocos2d::CCMenuItemLabel::setLabel from 0x18005b960 to 0x18005b9ef (143 bytes)
//
// 7 xrefs:
// > ??> @ 0x1800f7a48
// > ??> @ 0x1800f7e90
// > ??> @ 0x1800f82d8
// > ??> @ 0x180138b88
// > ??> @ 0x180138b98
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b2eec
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCMenuItemLabel::setLabel(
cocos2d::CCMenuItemLabel *this,
struct cocos2d::CCNode *a2,
__int64 a3)
{
cocos2d::CCNode_vtbl *v5; // rbx
float *v6; // rax
cocos2d::CCMenuItemLabel_vtbl *v7; // rbx
__int64 v8; // rax
__int64 v9; // rdx
float v10; // [rsp+30h] [rbp+8h] BYREF
if ( a2 )
{
((void (*)(void))this->addChild_1)();
v5 = a2->__vftable;
v6 = kmVec2Fill(&v10, 0.0, 0.0);
((void (__fastcall *)(struct cocos2d::CCNode *, float *))v5->setAnchorPoint)(a2, v6);
v7 = this->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v8 = ((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->getContentSize)(a2);
((void (__fastcall *)(cocos2d::CCMenuItemLabel *, __int64))v7->setContentSize)(this, v8);
}
v9 = *((_QWORD *)this + 48);
if ( v9 )
{
LOBYTE(a3) = 1;
((void (__fastcall *)(cocos2d::CCMenuItemLabel *, __int64, __int64))this->removeChild)(this, v9, a3);
}
*((_QWORD *)this + 48) = a2;
}