//
// cocos2d::extension::CCControlButton::setTitleTTFSizeForState from 0x10033fd00 to 0x10033fd75 (117 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1e058
// > ??> @ 0x100b52740
//
// 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
//
void *__fastcall cocos2d::extension::CCControlButton::setTitleTTFSizeForState(__int64 a1, float a2)
{
void *result; // rax
result = (void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1472LL))(a1);
if ( result )
{
result = __dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
-2);
if ( result )
{
result = __dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelTTF,
600);
if ( result )
return (void *)sub_1003A7330(result, a2);
}
}
return result;
}