//
// cocos2d::extension::CCControlButton::setTitleColorForState from 0x1800065b0 to 0x180006652 (162 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800241b0
// > ??> @ 0x180027ff8
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049654
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::extension::CCControlButton::setTitleColorForState(__int64 a1, __int64 a2, unsigned int a3)
{
cocos2d::CCObject *v6; // [rsp+40h] [rbp+8h]
cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)(a1 + 536), a3);
v6 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject(v6);
*(_QWORD *)v6 = &cocos2d::extension::CCColor3bObject::`vftable';
*((_WORD *)v6 + 28) = *(_WORD *)a2;
*((_BYTE *)v6 + 58) = *(_BYTE *)(a2 + 2);
cocos2d::CCObject::autorelease(v6);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 536), v6, a3);
if ( *(_DWORD *)(a1 + 436) == a3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1064LL))(a1);
}