//
// cocos2d::extension::CCControlButton::getTitleTTFForState from 0x10033fc90 to 0x10033fcf6 (102 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1e050
// > ??> @ 0x100b52738
//
// This function is hookable on this platform (idp: pc, 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 12:28:43 +0000
//
const char *__fastcall cocos2d::extension::CCControlButton::getTitleTTFForState(__int64 a1)
{
const void *v1; // rax
void *v2; // rax
void *v3; // rax
v1 = (const void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1472LL))(a1);
if ( v1
&& (v2 = __dynamic_cast(
v1,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
-2)) != nullptr
&& (v3 = __dynamic_cast(
v2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelTTF,
600)) != nullptr )
{
return (const char *)cocos2d::CCLabelTTF::getFontName(v3);
}
else
{
return "";
}
}