//
// CCPartAnimSprite::setOpacity from 0x3c7096 to 0x3c710e (120 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x3c7112
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:35 +0000
//
_DWORD **__fastcall CCPartAnimSprite::setOpacity(CCPartAnimSprite *this, int a2)
{
_DWORD **result; // r0
_DWORD *v5; // r5
int v6; // r6
unsigned int v7; // r4
_DWORD **v8; // t1
cocos2d::CCSprite::setOpacity(this, a2);
result = (_DWORD **)(*(int (__fastcall **)(CCPartAnimSprite *))(*(_DWORD *)this + 244))(this);
if ( result )
{
result = (_DWORD **)(*(int (__fastcall **)(CCPartAnimSprite *))(*(_DWORD *)this + 244))(this);
if ( *result[13] )
{
v5 = *(_DWORD **)(*(_DWORD *)((*(int (__fastcall **)(CCPartAnimSprite *))(*(_DWORD *)this + 244))(this) + 52) + 12);
v6 = *(_DWORD *)(*(_DWORD *)((*(int (__fastcall **)(CCPartAnimSprite *))(*(_DWORD *)this + 244))(this) + 52) + 12);
result = (_DWORD **)(*(int (__fastcall **)(CCPartAnimSprite *))(*(_DWORD *)this + 244))(this);
v7 = v6 + 4 * (*result[13] + 0x3FFFFFFF);
while ( (unsigned int)v5 <= v7 )
{
v8 = (_DWORD **)*v5++;
result = v8;
if ( !v8 )
break;
result = (_DWORD **)((int (__fastcall *)(_DWORD **, int))(*result)[114])(result, a2);
}
}
}
return result;
}