//
// cocos2d::CCLabelBMFont::setColor from 0x5cb8fc to 0x5cb996 (154 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::CCLabelBMFont::setColor @ 0x5cb9ac
//
// 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
//
void cocos2d::CCLabelBMFont::setColor(cocos2d::CCLabelBMFont *a1, const cocos2d::ccColor3B *a2)
{
GLubyte b; // r3
__int16 v4; // r1
_BOOL4 m_bCascadeColorEnabled; // r3
cocos2d::CCNode *m_pParent; // r0
void *v7; // r0
void *v8; // r7
int v9; // r0
char v10; // r3
_DWORD v11[3]; // [sp+0h] [bp-Ch] BYREF
v11[0] = a1;
v11[1] = a2;
*(_WORD *)&a1->m_tRealColor.r = *(_WORD *)&a2->r;
b = a2->b;
v4 = *(_WORD *)&a1->m_tRealColor.r;
a1->m_tRealColor.b = b;
a1->m_tDisplayedColor.b = b;
m_bCascadeColorEnabled = a1->m_bCascadeColorEnabled;
*(_WORD *)&a1->m_tDisplayedColor.r = v4;
if ( m_bCascadeColorEnabled )
{
m_pParent = a1->m_pParent;
LOWORD(v11[0]) = -1;
BYTE2(v11[0]) = -1;
if ( m_pParent )
{
v7 = _dynamic_cast(
m_pParent,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
v8 = v7;
if ( v7 )
{
if ( (*(int (__fastcall **)(void *))(*(_DWORD *)v7 + 32))(v7) )
{
v9 = (*(int (__fastcall **)(void *))(*(_DWORD *)v8 + 8))(v8);
v10 = *(_BYTE *)(v9 + 2);
LOWORD(v11[0]) = *(_WORD *)v9;
BYTE2(v11[0]) = v10;
}
}
}
a1->updateDisplayedColor(a1, (const cocos2d::ccColor3B *)v11);
}
}