//
// cocos2d::extension::CCControlButton::getTitleColorForState from 0xa9abb0 to 0xa9ac2c (124 bytes)
//
// 3 xrefs:
// > ??> @ 0x8bdd0
// > ??> @ 0x11f5270
// > ??> @ 0x11fa880
//
// 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
//
cocos2d::ccColor3B cocos2d::extension::CCControlButton::getTitleColorForState(
cocos2d::extension::CCControlButton *a1,
unsigned int a2)
{
cocos2d::CCDictionary *v3; // x0
cocos2d::extension::CCControlButton *v4; // x19
cocos2d::CCObject *v5; // x0
unsigned __int8 v6; // w3
unsigned __int8 v7; // w2
unsigned __int8 v8; // w1
v3 = *(cocos2d::CCDictionary **)&a1[1].m_fScaleX;
if ( v3
&& ((v4 = a1, (v5 = cocos2d::CCDictionary::objectForKey(v3, a2)) != nullptr)
|| (v5 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)&v4[1].m_fScaleX, 1)) != nullptr) )
{
v6 = (unsigned __int8)v5[1].__vftable;
v7 = BYTE1(v5[1].__vftable);
v8 = BYTE2(v5[1].__vftable);
}
else
{
v8 = -1;
v7 = -1;
v6 = -1;
}
return (cocos2d::ccColor3B)(v6 | (unsigned __int16)(v7 << 8) | (v8 << 16));
}