//
// cocos2d::CCLabelBMFont::updateDisplayedColor from 0x7d2a50 to 0x7d2af0 (160 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::CCLabelBMFont::updateDisplayedColor @ 0x7d2afc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:36 +0000
//
int __fastcall cocos2d::CCLabelBMFont::updateDisplayedColor(int result, unsigned __int8 *a2)
{
__int16 v2; // r2
int v3; // r3
__int16 v4; // r2
int v5; // r3
_DWORD *v6; // r3
int *v7; // r6
int *v8; // r5
int i; // r4
int v10; // t1
v2 = *(unsigned __int8 *)(result + 362);
*(_BYTE *)(result + 358) = (unsigned int)((double)(*(unsigned __int8 *)(result + 361) * *a2) / 255.0);
v3 = v2 * a2[1];
v4 = *(unsigned __int8 *)(result + 363);
*(_BYTE *)(result + 359) = (unsigned int)((double)v3 / 255.0);
*(_BYTE *)(result + 360) = (unsigned int)((double)(v4 * a2[2]) / 255.0);
v5 = *(_DWORD *)(result + 192);
if ( v5 )
{
v6 = *(_DWORD **)(v5 + 52);
if ( *v6 )
{
v7 = (int *)v6[3];
v8 = &v7[*v6 - 1];
for ( i = result + 358; v7 <= v8; result = (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 484))(result, i) )
{
v10 = *v7++;
result = v10;
if ( !v10 )
break;
}
}
}
return result;
}