//
// cocos2d::extension::CCControlButton::setTitleLabelForState from 0x10033fb20 to 0x10033fbee (206 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1e040
// > ??> @ 0x100b52728
//
// 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::setTitleLabelForState(__int64 *a1, __int64 a2, unsigned int a3)
{
__int64 v4; // r12
__int64 v5; // rax
__int64 result; // rax
float v7[10]; // [rsp+8h] [rbp-28h] BYREF
v4 = a3;
v5 = cocos2d::CCDictionary::objectForKey_1(a1[68], a3);
if ( v5 )
{
(*(void (__fastcall **)(__int64 *, __int64, __int64))(*a1 + 552))(a1, v5, 1);
cocos2d::CCDictionary::removeObjectForKey_1(a1[68], v4);
}
cocos2d::CCDictionary::setObject_1(a1[68], a2, v4);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 344LL))(a2, 0);
sub_100278250(v7, 0.5, 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a2 + 296LL))(a2, v7);
result = (*(__int64 (__fastcall **)(__int64 *, __int64, __int64))(*a1 + 464))(a1, a2, 1);
if ( *((_DWORD *)a1 + 107) == a3 )
return (*(__int64 (__fastcall **)(__int64 *))(*a1 + 1312))(a1);
return result;
}