//
// cocos2d::extension::CCControlButton::getTitleBMFontForState from 0xa9aef4 to 0xa9af68 (116 bytes)
//
// 3 xrefs:
// > ??> @ 0x319b0
// > ??> @ 0x11f52b8
// > ??> @ 0x11fa8c8
//
// 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
//
const char *cocos2d::extension::CCControlButton::getTitleBMFontForState(
cocos2d::extension::CCControlButton *a1,
unsigned int a2)
{
cocos2d::CCNode *v2; // x0
void *v3; // x0
cocos2d::CCLabelBMFont *v4; // x0
v2 = a1->getTitleLabelForState(a1, a2);
if ( v2
&& (v3 = _dynamic_cast(
v2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
-2)) != nullptr
&& (v4 = (cocos2d::CCLabelBMFont *)_dynamic_cast(
v3,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelBMFont,
360)) != nullptr )
{
return cocos2d::CCLabelBMFont::getFntFile(v4);
}
else
{
return &byte_F288A0;
}
}