//
// cocos2d::CCLabelBMFont::updateDisplayedOpacity from 0xd54f20 to 0xd54fd8 (184 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::CCLabelBMFont::updateDisplayedOpacity @ 0xd54fe4
// > ??> @ 0xacd80
// > ??> @ 0x1415318
// > ??> @ 0x1518788
//
// This function is hookable on this platform (idp: arm, 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 13:07:43 +0000
//
__int64 __fastcall cocos2d::CCLabelBMFont::updateDisplayedOpacity(__int64 this, unsigned __int8 a2)
{
__int64 v2; // x19
unsigned int *v3; // x3
__int64 *v4; // x19
__int64 *v5; // x20
__int64 v6; // x21
__int64 *v7; // x19
v2 = *(_QWORD *)(this + 208);
*(_BYTE *)(this + 480) = (unsigned int)((double)(*(unsigned __int8 *)(this + 481) * a2) / 255.0);
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
if ( *v3 )
{
v4 = *((__int64 **)v3 + 2);
v5 = &v4[*v3 - 1];
if ( v4 <= v5 )
{
v6 = this;
this = *v4;
if ( *v4 )
{
v7 = v4 + 1;
for ( this = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)this + 920LL))(this);
v5 >= v7;
this = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)this + 920LL))(
this,
*(unsigned __int8 *)(v6 + 480)) )
{
this = *v7;
if ( !*v7 )
break;
++v7;
}
}
}
}
}
return this;
}