//
// cocos2d::extension::CCControlButton::getTitleColorForState from 0x10033f9c0 to 0x10033fa11 (81 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1e028
// > ??> @ 0x100b52710
//
// 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:28:43 +0000
//
__int64 __fastcall cocos2d::extension::CCControlButton::getTitleColorForState(__int64 a1, unsigned int a2)
{
__int64 v3; // rdi
unsigned int v4; // ebx
__int64 v5; // rax
v3 = *(_QWORD *)(a1 + 536);
v4 = 0xFFFFFF;
if ( v3 )
{
v5 = cocos2d::CCDictionary::objectForKey_1(v3, a2);
if ( v5 )
return *(unsigned __int16 *)(v5 + 56) | (*(unsigned __int8 *)(v5 + 58) << 16);
v5 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 536), 1);
if ( v5 )
return *(unsigned __int16 *)(v5 + 56) | (*(unsigned __int8 *)(v5 + 58) << 16);
}
return v4;
}