//
// AnimatedGameObject::setOpacity from 0x3e4a08 to 0x3e4a76 (110 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AnimatedGameObject::setOpacity @ 0x3e4a7a
//
// 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 AnimatedGameObject::setOpacity(AnimatedGameObject *a1, unsigned __int8 a2)
{
int v3; // r5
cocos2d::CCSprite *m_childSprite; // r0
cocos2d::CCSprite *v5; // r0
unsigned int v6; // r4
cocos2d::CCArray *v7; // r6
int v8; // r0
GameObject::setOpacity(a1, a2);
v3 = ((int (__fastcall *)(AnimatedGameObject *))a1->getOpacity)(a1);
a1->m_animatedSprite->setOpacity(a1->m_animatedSprite, v3);
m_childSprite = a1->m_childSprite;
if ( m_childSprite )
{
if ( a1->m_hasNoGlow )
v3 = 0;
m_childSprite->setOpacity(m_childSprite, v3);
v5 = a1->m_childSprite;
v6 = 0;
v7 = v5->getChildren(v5);
while ( v6 < cocos2d::CCArray::count(v7) )
{
v8 = cocos2d::CCArray::objectAtIndex(v7, v6++);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 448))(v8, v3);
}
}
}