//
// AnimatedGameObject::setOpacity from 0x74af98 to 0x74b064 (204 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AnimatedGameObject::setOpacity @ 0x74b068
// > ??> @ 0xb0aa8
// > ??> @ 0x1168180
//
// 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; // w0
unsigned int v4; // w21
cocos2d::CCSprite *m_childSprite; // x1
cocos2d::CCSprite_vtbl *v6; // x1
unsigned int v7; // w19
cocos2d::CCArray *v8; // x20
__int64 v9; // x0
bool v10; // cf
unsigned int v11; // w1
GameObject::setOpacity(a1, a2);
v3 = ((__int64 (__fastcall *)(AnimatedGameObject *))a1->getOpacity)(a1);
v4 = (unsigned __int8)v3;
a1->m_animatedSprite->setOpacity(a1->m_animatedSprite, v3);
m_childSprite = a1->m_childSprite;
if ( m_childSprite )
{
v6 = m_childSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v7 = 0;
if ( a1->m_hasNoGlow )
v4 = 0;
v6->setOpacity(a1->m_childSprite, v4);
v8 = a1->m_childSprite->getChildren(a1->m_childSprite);
while ( 1 )
{
v10 = v7 >= (unsigned int)cocos2d::CCArray::count(v8);
v11 = v7++;
if ( v10 )
break;
v9 = cocos2d::CCArray::objectAtIndex(v8, v11);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 896LL))(v9, v4);
}
}
}