//
// cocos2d::extension::CCControlButton::setTitleTTFForState from 0x10033fbf0 to 0x10033fc74 (132 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1e048
// > ??> @ 0x100b52730
//
// 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
//
__int64 __fastcall cocos2d::extension::CCControlButton::setTitleTTFForState(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v4; // rax
__int64 v5; // r12
__int64 CString; // rax
__int64 v7; // rax
_WORD v9[8]; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
v4 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1440LL))(a1, a3);
if ( !v4 )
{
v9[0] = 0;
v4 = sub_10088E600(v9);
if ( (v9[0] & 1) != 0 )
{
v5 = v4;
operator delete(__p);
v4 = v5;
}
}
CString = cocos2d::CCString::getCString(v4);
v7 = cocos2d::CCLabelTTF::create_2(CString, a2, 12.0);
return (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1480LL))(a1, v7, a3);
}