//
// cocos2d::CCMenuItemLabel::setLabel from 0xaf36b4 to 0xaf3784 (208 bytes)
//
// 4 xrefs:
// > ??> @ 0x78d80
// > ??> @ 0x120ee08
// > ??> @ 0x120f2d8
// > ??> @ 0x120fc58
//
// 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 cocos2d::CCMenuItemLabel::setLabel(cocos2d::CCMenuItemLabel *a1, cocos2d::CCNode *a2)
{
void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x22
const cocos2d::CCSize *v6; // x0
cocos2d::CCNode *v7; // x1
cocos2d::CCPoint v8; // [xsp+40h] [xbp+40h] BYREF
if ( a2 )
{
((void (__fastcall *)(cocos2d::CCMenuItemLabel *))a1->addChild)(a1);
setAnchorPoint = a2->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v8, 0.0, 0.0);
setAnchorPoint(a2, &v8);
setContentSize = a1->setContentSize;
v6 = a2->getContentSize(a2);
setContentSize(a1, v6);
}
v7 = *(cocos2d::CCNode **)&a1[1].m_uID;
if ( v7 )
a1->removeChild_0(a1, v7, 1);
*(_QWORD *)&a1[1].m_uID = a2;
}