//
// cocos2d::CCLabelBMFont::updateDisplayedColor from 0x18004cb00 to 0x18004cbe7 (231 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800ec6b8
// > ??> @ 0x180137a30
// > ??> @ 0x180137a40
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b1b60
//
// 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 __fastcall cocos2d::CCLabelBMFont::updateDisplayedColor(
cocos2d::CCLabelBMFont *this,
const struct cocos2d::_ccColor3B *a2)
{
char *v2; // rsi
__int64 v3; // rbx
int v4; // r8d
unsigned int *v5; // rbx
__int64 v6; // rax
unsigned __int64 v7; // rbx
unsigned __int64 i; // rdi
v2 = (char *)&this->m_sAdditionalTransform.d + 2;
v3 = *((_QWORD *)this - 20);
v4 = BYTE2(this->m_sAdditionalTransform.tx);
BYTE2(this->m_sAdditionalTransform.d) = (int)((double)(a2->r * BYTE1(this->m_sAdditionalTransform.tx)) / 255.0);
HIBYTE(this->m_sAdditionalTransform.d) = (int)((double)(a2->g * v4) / 255.0);
LOBYTE(this->m_sAdditionalTransform.tx) = (int)((double)(a2->b * HIBYTE(this->m_sAdditionalTransform.tx)) / 255.0);
if ( v3 )
{
v5 = *(unsigned int **)(v3 + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((_QWORD *)v5 + 2);
for ( i = v7 + 8 * (v6 - 1); v7 <= i; v7 += 8LL )
{
if ( !*(_QWORD *)v7 )
break;
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)(*(_QWORD *)v7 + 320LL) + 80LL))(*(_QWORD *)v7 + 320LL, v2);
}
}
}
}