//
// cocos2d::CCLabelBMFont::setOpacity from 0x100398a50 to 0x100398ae4 (148 bytes)
//
// 3 xrefs:
// > sub_100398AE4 @ 0x100398ae8
// > ??> @ 0x1008b9148
// > ??> @ 0x100941ff0
//
// 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 11:03:42 +0000
//
__int64 __fastcall cocos2d::CCLabelBMFont::setOpacity(__int64 result, char a2)
{
__int64 v2; // x19
const void *v3; // x0
void *v4; // x0
void *v5; // x20
__int64 v6; // x1
*(_BYTE *)(result + 481) = a2;
*(_BYTE *)(result + 480) = a2;
if ( *(_BYTE *)(result + 489) == 1 )
{
v2 = result;
v3 = *(const void **)(result + 216);
if ( v3
&& (v4 = __dynamic_cast(
v3,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&off_1008BD768,
-2)) != nullptr
&& (v5 = v4, (*(unsigned int (__fastcall **)(void *))(*(_QWORD *)v4 + 88LL))(v4)) )
{
v6 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v5 + 24LL))(v5);
}
else
{
v6 = 255;
}
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1032LL))(v2, v6);
}
return result;
}