//
// CCPartAnimSprite::setOpacity from 0x100087ddc to 0x100087eb0 (212 bytes)
//
// 2 xrefs:
// > sub_100087EB0 @ 0x100087eb4
// > ??> @ 0x1008c7c80
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:58:19 +0000
//
unsigned int **__fastcall CCPartAnimSprite::setOpacity(__int64 a1, __int64 a2)
{
unsigned int **result; // x0
unsigned int ***v5; // x21
__int64 v6; // x22
unsigned __int64 v7; // x20
cocos2d::CCSprite::setOpacity();
result = (unsigned int **)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);
if ( result )
{
result = (unsigned int **)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);
if ( *result[7] )
{
v5 = *(unsigned int ****)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1) + 56) + 16LL);
v6 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1) + 56) + 16LL);
result = (unsigned int **)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);
v7 = v6 + 8LL * *result[7] - 8;
while ( (unsigned __int64)v5 <= v7 )
{
result = *v5;
if ( !*v5 )
break;
result = (unsigned int **)(*((__int64 (__fastcall **)(unsigned int **, __int64))*result + 114))(result, a2);
++v5;
}
}
}
return result;
}