//
// cocos2d::CCLabelBMFont::updateDisplayedOpacity from 0x7d29e8 to 0x7d2a40 (88 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::CCLabelBMFont::updateDisplayedOpacity @ 0x7d2a4c
//
// 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::updateDisplayedOpacity(int this, int a2)
{
int v2; // r6
int v3; // r3
_DWORD *v4; // r2
int *v5; // r5
int *v6; // r4
int v7; // t1
v2 = this;
*(_BYTE *)(this + 356) = (unsigned int)((double)(a2 * *(unsigned __int8 *)(this + 357)) / 255.0);
v3 = *(_DWORD *)(this + 192);
if ( v3 )
{
v4 = *(_DWORD **)(v3 + 52);
if ( *v4 )
{
v5 = (int *)v4[3];
v6 = &v5[*v4 - 1];
while ( v5 <= v6 )
{
v7 = *v5++;
this = v7;
if ( !v7 )
break;
this = (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)this + 460))(this, *(unsigned __int8 *)(v2 + 356));
}
}
}
return this;
}