//
// cocos2d::extension::CCControlButton::getTitleTTFForState from 0x100354580 to 0x1003545e6 (102 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009161e0
// > ??> @ 0x100947928
//
// 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 *__fastcall cocos2d::extension::CCControlButton::getTitleTTFForState(
cocos2d::extension::CCControlButton *a1,
unsigned int a2)
{
const void *v2; // rax
void *v3; // rax
cocos2d::CCLabelTTF *v4; // rax
v2 = (const void *)((__int64 (__fastcall *)(cocos2d::extension::CCControlButton *, unsigned int))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::CCLabelTTF *)__dynamic_cast(
v3,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelTTF,
600)) != nullptr )
{
return cocos2d::CCLabelTTF::getFontName(v4);
}
else
{
return "";
}
}