//
// cocos2d::extension::CCControlButton::getTitleColorForState from 0x1003542b0 to 0x100354301 (81 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009161b8
// > ??> @ 0x100947900
//
// 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 __fastcall cocos2d::extension::CCControlButton::getTitleColorForState(
cocos2d::extension::CCControlButton *a1,
unsigned int a2)
{
cocos2d::CCDictionary *v3; // rdi
int v4; // ebx
cocos2d::CCObject *v5; // rax
v3 = *(cocos2d::CCDictionary **)&a1[1].m_fScaleX;
v4 = 0xFFFFFF;
if ( v3 )
{
v5 = cocos2d::CCDictionary::objectForKey(v3, a2);
if ( v5 )
return (cocos2d::ccColor3B)(LOWORD(v5[1].__vftable) | (BYTE2(v5[1].__vftable) << 16));
v5 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)&a1[1].m_fScaleX, 1);
if ( v5 )
return (cocos2d::ccColor3B)(LOWORD(v5[1].__vftable) | (BYTE2(v5[1].__vftable) << 16));
}
return (cocos2d::ccColor3B)v4;
}