//
// CCPartAnimSprite::setOpacity from 0x576d20 to 0x576e00 (224 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x576e04
// > ??> @ 0xb38b0
// > ??> @ 0x11396f0
//
// 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 CCPartAnimSprite::setOpacity(CCPartAnimSprite *a1, unsigned __int8 a2)
{
unsigned int v2; // w21
cocos2d::CCObject **arr; // x19
cocos2d::ccArray *data; // x2
CCPartAnimSprite_vtbl *v6; // x1
CCPartAnimSprite *v7; // x0
cocos2d::CCObject **v8; // x20
unsigned __int64 v9; // x20
cocos2d::CCObject *v10; // x0
v2 = a2;
cocos2d::CCSprite::setOpacity(a1, a2);
if ( a1->getChildren(a1) )
{
if ( a1->getChildren(a1)->data->num )
{
arr = a1->getChildren(a1)->data->arr;
data = a1->getChildren(a1)->data;
v6 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v7 = a1;
v8 = data->arr;
v9 = (unsigned __int64)&v8[v6->getChildren(v7)->data->num - 1];
while ( v9 >= (unsigned __int64)arr )
{
v10 = *arr;
if ( !*arr )
break;
++arr;
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v10->__vftable[11].~CCObject_0)(v10, v2);
}
}
}
}