//
// cocos2d::extension::CCControlButton::setTitleColorForState from 0x180006000 to 0x1800060a2 (162 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800266f8
// > ??> @ 0x18002a670
// > ??> @ 0x180032408
// > ??> @ 0x18004b5a0
//
// 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
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::extension::CCControlButton::setTitleColorForState(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v6; // [rsp+40h] [rbp+8h]
cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)(a1 + 536), a3);
v6 = sub_18001F040(0x40u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v6);
*(_QWORD *)v6 = &cocos2d::extension::CCColor3bObject::`vftable';
*(_WORD *)(v6 + 56) = *(_WORD *)a2;
*(_BYTE *)(v6 + 58) = *(_BYTE *)(a2 + 2);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 536), (struct cocos2d::CCObject *)v6, a3);
if ( *(_DWORD *)(a1 + 436) == a3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1080LL))(a1);
}