//
// cocos2d::CCMenuItemFont::recreateLabel from 0x7dda54 to 0x7ddaac (88 bytes)
//
// 2 xrefs:
// > cocos2d::CCMenuItemFont::setFontSizeObj @ 0x7ddab8
// > cocos2d::CCMenuItemFont::setFontNameObj @ 0x7de288
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:46 +0000
//
int __fastcall cocos2d::CCMenuItemFont::recreateLabel(cocos2d::CCMenuItemFont *this)
{
const void *v2; // r0
void *v3; // r0
cocos2d::CCLabelTTF *v4; // r0
const char *v5; // r1
cocos2d::CCLabelTTF *v6; // r0
v2 = *((const void **)this + 76);
if ( !v2 )
__und(0xFFu);
v3 = _dynamic_cast(
v2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
-2);
v4 = (cocos2d::CCLabelTTF *)(*(int (__fastcall **)(void *))(*(_DWORD *)v3 + 4))(v3);
if ( (*((_BYTE *)this + 320) & 1) != 0 )
v5 = *((const char **)this + 82);
else
v5 = (char *)this + 321;
v6 = cocos2d::CCLabelTTF::create(
v4,
v5,
COERCE_CONST_CHAR_((float)*((unsigned int *)this + 79)),
COERCE_FLOAT(*((unsigned __int8 *)this + 320) << 31));
return (*(int (__fastcall **)(cocos2d::CCMenuItemFont *, cocos2d::CCLabelTTF *))(*(_DWORD *)this + 548))(this, v6);
}