//
// cocos2d::extension::CCControlButton::setTitleForState from 0x10033f950 to 0x10033f9b3 (99 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1e020
// > ??> @ 0x100b52708
//
// 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::setTitleForState(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v4; // r15
v4 = a3;
cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(a1 + 528), a3);
if ( a2 )
cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 528), a2, v4);
if ( *(_DWORD *)(a1 + 428) == a3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1312LL))(a1);
}