//
// cocos2d::extension::CCControlButton::getTitleTTFSizeForState from 0x10033fd80 to 0x10033fde2 (98 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1e060
// > ??> @ 0x100b52748
//
// 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
//
double __fastcall cocos2d::extension::CCControlButton::getTitleTTFSizeForState(__int64 a1)
{
const void *v1; // rax
void *v2; // rax
void *v3; // rax
double result; // xmm0_8
v1 = (const void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1472LL))(a1);
if ( !v1 )
return 0.0;
v2 = __dynamic_cast(
v1,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
-2);
if ( !v2 )
return 0.0;
v3 = __dynamic_cast(
v2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelTTF,
600);
if ( !v3 )
return 0.0;
sub_1003A7320(v3);
return result;
}