//
// cocos2d::CCLabelBMFont::setOpacity from 0x1006ab540 to 0x1006ab5d4 (148 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b6aae0
// > ??> @ 0x100b87040
//
// 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 12:35:22 +0000
//
__int64 __fastcall cocos2d::CCLabelBMFont::setOpacity(__int64 a1, char a2)
{
__int64 result; // rax
unsigned __int8 v3; // bl
void *v4; // rax
void *v5; // r14
*(_BYTE *)(a1 + 481) = a2;
*(_BYTE *)(a1 + 480) = a2;
if ( *(_BYTE *)(a1 + 489) == 1 )
{
v3 = -1;
if ( *(_QWORD *)(a1 + 216) )
{
v4 = __dynamic_cast(
*(const void **)(a1 + 216),
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v4 )
{
v5 = v4;
if ( (*(unsigned __int8 (__fastcall **)(void *))(*(_QWORD *)v4 + 88LL))(v4) )
v3 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v5 + 24LL))(v5);
}
}
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1032LL))(a1, v3);
}
return result;
}