//
// cocos2d::extension::CCControlButton::setTitleTTFSizeForState from 0x180006360 to 0x1800063d8 (120 bytes)
//
// 4 xrefs:
// > ??> @ 0x180026720
// > ??> @ 0x18002a698
// > ??> @ 0x180032408
// > ??> @ 0x18004b5dc
//
// 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:15:36 +0000
//
void __fastcall cocos2d::extension::CCControlButton::setTitleTTFSizeForState(
cocos2d::extension::CCControlButton *this,
float a2,
unsigned int a3)
{
__int64 v3; // rax
__int64 v4; // rax
cocos2d::CCLabelTTF *v5; // rax
v3 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControlButton *, _QWORD))(*(_QWORD *)this + 1240LL))(this, a3);
v4 = _RTDynamicCast(
v3,
0,
&cocos2d::CCNode `RTTI Type Descriptor',
&cocos2d::CCLabelProtocol `RTTI Type Descriptor',
0);
if ( v4 )
{
v5 = (cocos2d::CCLabelTTF *)_RTDynamicCast(
v4,
0,
&cocos2d::CCLabelProtocol `RTTI Type Descriptor',
&cocos2d::CCLabelTTF `RTTI Type Descriptor',
0);
if ( v5 )
cocos2d::CCLabelTTF::setFontSize(v5, a2);
}
}