//
// cocos2d::extension::CCControlButton::getTitleBMFontForState from 0x180006ae0 to 0x180006b4c (108 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800241f0
// > ??> @ 0x180028038
// > ??> @ 0x18002fdf8
// > ??> @ 0x1800496b4
//
// 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
//
char *__fastcall cocos2d::extension::CCControlButton::getTitleBMFontForState(cocos2d::extension::CCControlButton *this)
{
__int64 v1; // rax
__int64 v2; // rax
cocos2d::CCLabelBMFont *v3; // rax
v1 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1224LL))(this);
v2 = _RTDynamicCast(
v1,
0,
&cocos2d::CCNode `RTTI Type Descriptor',
&cocos2d::CCLabelProtocol `RTTI Type Descriptor',
0);
v3 = (cocos2d::CCLabelBMFont *)_RTDynamicCast(
v2,
0,
&cocos2d::CCLabelProtocol `RTTI Type Descriptor',
&cocos2d::CCLabelBMFont `RTTI Type Descriptor',
0);
if ( v3 )
return (char *)cocos2d::CCLabelBMFont::getFntFile(v3);
else
return byte_180023460;
}