//
// cocos2d::extension::CCControlButton::getTitleColorForState from 0xd0c788 to 0xd0c804 (124 bytes)
//
// 3 xrefs:
// > ??> @ 0xb94a0
// > ??> @ 0x150aa20
// > ??> @ 0x15101a0
//
// This function is hookable on this platform (idp: arm, 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 13:07:00 +0000
//
unsigned __int64 __fastcall cocos2d::extension::CCControlButton::getTitleColorForState(
cocos2d::extension::CCControlButton *this,
unsigned int a2)
{
cocos2d::CCDictionary *v3; // x0
cocos2d::extension::CCControlButton *v4; // x19
_BYTE *v5; // x0
unsigned __int8 v6; // w3
unsigned __int8 v7; // w2
unsigned __int8 v8; // w1
v3 = *((cocos2d::CCDictionary **)this + 67);
if ( v3
&& ((v4 = this, (v5 = (_BYTE *)cocos2d::CCDictionary::objectForKey(v3, a2)) != nullptr)
|| (v5 = (_BYTE *)cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)v4 + 67), 1)) != nullptr) )
{
v6 = v5[56];
v7 = v5[57];
v8 = v5[58];
}
else
{
v8 = -1;
v7 = -1;
v6 = -1;
}
return v6 | (unsigned __int64)(unsigned __int16)(v7 << 8) | ((unsigned __int64)v8 << 16);
}