//
// cocos2d::CCLabelBMFont::updateDisplayedColor from 0x1006ab900 to 0x1006ab9d8 (216 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b6ab18
// > ??> @ 0x100b87078
//
// 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 12:35:22 +0000
//
unsigned int *__fastcall cocos2d::CCLabelBMFont::updateDisplayedColor(__int64 a1, unsigned __int8 *a2)
{
unsigned int *result; // rax
_QWORD *v3; // r14
unsigned __int64 v4; // r15
*(_BYTE *)(a1 + 482) = (int)((double)(*(unsigned __int8 *)(a1 + 485) * *a2) / 255.0);
*(_BYTE *)(a1 + 483) = (int)((double)(*(unsigned __int8 *)(a1 + 486) * a2[1]) / 255.0);
*(_BYTE *)(a1 + 484) = (int)((double)(*(unsigned __int8 *)(a1 + 487) * a2[2]) / 255.0);
result = *(unsigned int **)(a1 + 208);
if ( result )
{
result = *((unsigned int **)result + 7);
if ( *result )
{
v3 = *((_QWORD **)result + 2);
v4 = (unsigned __int64)&v3[*result - 1];
do
{
if ( !*v3 )
break;
result = (unsigned int *)(*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v3 + 968LL))(*v3, a1 + 482);
++v3;
}
while ( (unsigned __int64)v3 <= v4 );
}
}
return result;
}