//
// SimplePlayer::setOpacity from 0x14027a7f0 to 0x14027a8b3 (195 bytes)
//
// 2 xrefs:
// > ??> @ 0x14056a888
// > ??> @ 0x1406d10dc
//
// 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 SimplePlayer::setOpacity(SimplePlayer *a1, unsigned __int8 a2)
{
cocos2d::CCRGBAProtocol_vtbl *v4; // rcx
__int64 v5; // rcx
(*(void (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)&a1->m_fTransformY + 320LL) + 40LL))(*(_QWORD *)&a1->m_fTransformY + 320LL);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_bReorderChildDirty + 320LL) + 40LL))(
*(_QWORD *)&a1->m_bReorderChildDirty + 320LL,
a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_nUpdateScriptHandler + 320LL) + 40LL))(
*(_QWORD *)&a1->m_nUpdateScriptHandler + 320LL,
a2);
(*(void (__fastcall **)(cocos2d::CCDictionary **, _QWORD))&a1->m_pComponentContainer[13].m_pComponents->m_unknown2)(
&a1->m_pComponentContainer[13].m_pComponents,
a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_bUseChildIndex + 320LL) + 40LL))(
*(_QWORD *)&a1->m_bUseChildIndex + 320LL,
a2);
v4 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable;
if ( v4 )
(*((void (__fastcall **)(__int64, _QWORD))v4[2].setCascadeOpacityEnabled + 5))(
(__int64)&v4[2].setCascadeOpacityEnabled,
a2);
v5 = *(_QWORD *)&a1->_displayedOpacity;
if ( v5 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(v5 + 320) + 40LL))(v5 + 320, a2);
}