//
// CCPartAnimSprite::setOpacity from 0x10007f630 to 0x10007f704 (212 bytes)
//
// 2 xrefs:
// > sub_10007F704 @ 0x10007f708
// > ??> @ 0x10077b560
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall CCPartAnimSprite::setOpacity(CCPartAnimSprite *a1, unsigned __int8 a2)
{
__int64 v2; // x19
_QWORD *v4; // x21
__int64 v5; // x22
unsigned __int64 v6; // x20
v2 = a2;
cocos2d::CCSprite::setOpacity(a1, a2);
if ( ((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1)
&& **(_DWORD **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) )
{
v4 = *(_QWORD **)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);
v5 = *(_QWORD *)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);
v6 = v5 + 8LL * **(unsigned int **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) - 8;
while ( (unsigned __int64)v4 <= v6 && *v4 )
{
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v4 + 896LL))(*v4, v2);
++v4;
}
}
}