//
// CCPartAnimSprite::setOpacity from 0x2e6e96 to 0x2e6f0e (120 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x2e6f12
//
// 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)
{
int v3; // r7
cocos2d::CCObject **arr; // r5
cocos2d::CCObject **v5; // r6
cocos2d::CCObject **v6; // r4
int v7; // r0
int v8; // t1
v3 = a2;
cocos2d::CCSprite::setOpacity(a1, a2);
if ( a1->getChildren(a1) && a1->getChildren(a1)->data->num )
{
arr = a1->getChildren(a1)->data->arr;
v5 = a1->getChildren(a1)->data->arr;
v6 = &v5[a1->getChildren(a1)->data->num] + 0x3FFFFFFF;
while ( arr <= v6 )
{
v8 = (int)*arr++;
v7 = v8;
if ( !v8 )
break;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 448))(v7, v3);
}
}
}