//
// cocos2d::CCLabelBMFont::updateDisplayedOpacity from 0x18004e6f0 to 0x18004e788 (152 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800f27f0
// > ??> @ 0x180140bd8
// > ??> @ 0x180140be8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bbe18
//
// 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::updateDisplayedOpacity(cocos2d::CCLabelBMFont *this, unsigned __int8 a2)
{
__int64 v3; // rbx
unsigned int *v4; // rbx
__int64 v5; // rax
unsigned __int64 v6; // rbx
unsigned __int64 i; // rdi
v3 = *((_QWORD *)this - 20);
*((_BYTE *)this + 128) = (int)((double)(a2 * *((unsigned __int8 *)this + 129)) / 255.0);
if ( v3 )
{
v4 = *(unsigned int **)(v3 + 56);
v5 = *v4;
if ( (_DWORD)v5 )
{
v6 = *((_QWORD *)v4 + 2);
for ( i = v6 + 8 * (v5 - 1); v6 <= i; v6 += 8LL )
{
if ( !*(_QWORD *)v6 )
break;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)v6 + 320LL) + 104LL))(
*(_QWORD *)v6 + 320LL,
*((unsigned __int8 *)this + 128));
}
}
}
}