//
// cocos2d::CCLabelBMFont::updateDisplayedColor from 0x18004e600 to 0x18004e6e7 (231 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800f27d8
// > ??> @ 0x180140c20
// > ??> @ 0x180140c30
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bbdf4
//
// This function is hookable on this platform (idp: pc, 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 11:21:44 +0000
//
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 + 130;
v3 = *((_QWORD *)this - 20);
v4 = *((unsigned __int8 *)this + 134);
*((_BYTE *)this + 130) = (int)((double)(*(unsigned __int8 *)a2 * *((unsigned __int8 *)this + 133)) / 255.0);
*((_BYTE *)this + 131) = (int)((double)(*((unsigned __int8 *)a2 + 1) * v4) / 255.0);
*((_BYTE *)this + 132) = (int)((double)(*((unsigned __int8 *)a2 + 2) * *((unsigned __int8 *)this + 135)) / 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);
}
}
}
}