//
// cocos2d::CCLabelBMFont::setOpacity from 0xd55674 to 0xd5570c (152 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::CCLabelBMFont::setOpacity @ 0xd55710
// > ??> @ 0xbde38
// > ??> @ 0x1415310
// > ??> @ 0x1518780
//
// 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::setOpacity(__int64 this, char a2)
{
int v2; // w2
__int64 v3; // x19
const void *v4; // x0
void *v5; // x0
void *v6; // x20
__int64 v7; // x1
*(_BYTE *)(this + 481) = a2;
v2 = *(unsigned __int8 *)(this + 489);
*(_BYTE *)(this + 480) = a2;
if ( v2 )
{
v3 = this;
v4 = *(const void **)(this + 216);
if ( v4
&& (v5 = _dynamic_cast(
v4,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2),
(v6 = v5) != nullptr)
&& (*(unsigned __int8 (__fastcall **)(void *))(*(_QWORD *)v5 + 88LL))(v5) )
{
v7 = (*(unsigned __int8 (__fastcall **)(void *))(*(_QWORD *)v6 + 24LL))(v6);
}
else
{
v7 = 255;
}
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1032LL))(v3, v7);
}
return this;
}