//
// cocos2d::CCLabelBMFont::setOpacity from 0xae2b2c to 0xae2bc4 (152 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::CCLabelBMFont::setOpacity @ 0xae2bc8
// > ??> @ 0x8f7a8
// > ??> @ 0x1137bc0
// > ??> @ 0x1202df0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::CCLabelBMFont::setOpacity(cocos2d::CCLabelBMFont *a1, unsigned __int8 a2)
{
_BOOL4 m_bCascadeOpacityEnabled; // w2
cocos2d::CCNode *m_pParent; // x0
void *v5; // x0
void *v6; // x20
__int64 v7; // x1
m_bCascadeOpacityEnabled = a1->m_bCascadeOpacityEnabled;
a1->m_cRealOpacity = a2;
a1->m_cDisplayedOpacity = a2;
if ( m_bCascadeOpacityEnabled )
{
m_pParent = a1->m_pParent;
if ( m_pParent
&& (v5 = _dynamic_cast(
m_pParent,
(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;
}
a1->updateDisplayedOpacity(a1, v7);
}
}