//
// cocos2d::extension::CCControlButton::setTitleForState from 0x180005f10 to 0x180005f7e (110 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800266e8
// > ??> @ 0x18002a660
// > ??> @ 0x180032408
// > ??> @ 0x18004b588
//
// 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::setTitleForState(
cocos2d::CCDictionary **this,
struct cocos2d::CCString *a2,
unsigned int a3)
{
cocos2d::CCDictionary::removeObjectForKey(*(this + 66), a3);
if ( a2 )
cocos2d::CCDictionary::setObject(*(this + 66), a2, a3);
if ( *((_DWORD *)this + 109) == a3 )
(*((void (__fastcall **)(cocos2d::CCDictionary **))*this + 135))(this);
}