//
// CCAnimatedSprite::setOpacity from 0x1400410e0 to 0x14004113e (94 bytes)
//
// 3 xrefs:
// > ??> @ 0x14052c510
// > ??> @ 0x14057dd90
// > ??> @ 0x1406c429c
//
// 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 CCAnimatedSprite::setOpacity(CCAnimatedSprite *a1, unsigned __int8 a2)
{
__int64 v4; // rcx
cocos2d::CCSpriteBatchNode *m_pobBatchNode; // rcx
v4 = *(_QWORD *)&a1->m_uAtlasIndex;
if ( v4 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)(v4 + 320) + 40LL))(v4 + 320);
m_pobBatchNode = a1->m_pobBatchNode;
if ( m_pobBatchNode )
((void (__fastcall *)(cocos2d::CCTextureProtocol *, _QWORD))m_pobBatchNode->cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable[1].getBlendFunc)(
&m_pobBatchNode->cocos2d::CCTextureProtocol,
a2);
cocos2d::CCSprite::setOpacity(a1, a2);
}