//
// cocos2d::CCLabelBMFont::setOpacity from 0x18004e250 to 0x18004e2e1 (145 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800f27b0
// > ??> @ 0x180140bb4
// > ??> @ 0x180140bc4
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bbd10
//
// 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::setOpacity(cocos2d::CCLabelBMFont *this, char a2)
{
bool v2; // zf
unsigned __int8 v4; // si
__int64 v5; // rax
__int64 v6; // rdi
v2 = *((_BYTE *)this + 137) == 0;
*((_BYTE *)this + 129) = a2;
*((_BYTE *)this + 128) = a2;
if ( !v2 )
{
v4 = -1;
v5 = _RTDynamicCast(
*((_QWORD *)this - 19),
0,
&cocos2d::CCNode `RTTI Type Descriptor',
&cocos2d::CCRGBAProtocol `RTTI Type Descriptor',
0);
v6 = v5;
if ( v5 )
{
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v5 + 88LL))(v5) )
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 24LL))(v6);
}
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, _QWORD))(*(_QWORD *)this + 104LL))(this, v4);
}
}