//
// cocos2d::extension::CCControlButton::getTitleColorForState from 0x180006540 to 0x1800065af (111 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800241a8
// > ??> @ 0x180027ff0
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049648
//
// 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
//
__int64 __fastcall cocos2d::extension::CCControlButton::getTitleColorForState(__int64 a1, __int64 a2, unsigned int a3)
{
cocos2d::CCDictionary *v4; // rcx
struct cocos2d::CCObject *v6; // rax
__int16 v7; // cx
char v8; // al
v4 = *(cocos2d::CCDictionary **)(a1 + 536);
*(_WORD *)a2 = -1;
*(_BYTE *)(a2 + 2) = -1;
if ( v4 )
{
v6 = cocos2d::CCDictionary::objectForKey(v4, a3);
if ( v6 || (v6 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 536), 1)) != nullptr )
{
v7 = *((_WORD *)v6 + 28);
v8 = *((_BYTE *)v6 + 58);
*(_WORD *)a2 = v7;
*(_BYTE *)(a2 + 2) = v8;
}
}
return a2;
}