//
// cocos2d::CCMenuItemLabel::setString from 0xd66830 to 0xd668b0 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x9f010
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:07:54 +0000
//
__int64 __fastcall cocos2d::CCMenuItemLabel::setString(cocos2d::CCMenuItemLabel *this, const char *a2)
{
const void *v3; // x0
void (__fastcall ***v5)(void *, const char *); // x0
__int64 (__fastcall *v6)(cocos2d::CCMenuItemLabel *, __int64); // x20
__int64 v7; // x0
v3 = *((const void **)this + 48);
if ( v3 )
{
v5 = (void (__fastcall ***)(void *, const char *))_dynamic_cast(
v3,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
-2);
(**v5)(v5, a2);
v6 = *(__int64 (__fastcall **)(cocos2d::CCMenuItemLabel *, __int64))(*(_QWORD *)this + 320LL);
v7 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 48) + 328LL))(*((_QWORD *)this + 48));
return v6(this, v7);
}
else
{
__break(0x3E8u);
return cocos2d::CCMenuItemAtlasFont::initWithString(0x10102464C457FLL, a2);
}
}