//
// cocos2d::extension::CCControlButton::getTitleColorForState from 0x180005f80 to 0x180005ff1 (113 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800266f0
// > ??> @ 0x18002a668
// > ??> @ 0x180032408
// > ??> @ 0x18004b594
//
// 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
//
__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;
}