//
// CCPartAnimSprite::setOpacity from 0x692684 to 0x692764 (224 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x692768
// > ??> @ 0xeaac0
// > ??> @ 0x1417550
//
// 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 12:50:36 +0000
//
__int64 __fastcall CCPartAnimSprite::setOpacity(CCPartAnimSprite *this, unsigned __int8 a2)
{
unsigned int v2; // w21
__int64 result; // x0
__int64 *v5; // x19
__int64 v6; // x2
__int64 v7; // x1
CCPartAnimSprite *v8; // x0
__int64 v9; // x20
unsigned __int64 i; // x20
v2 = a2;
cocos2d::CCSprite::setOpacity(this, a2);
result = (*(__int64 (__fastcall **)(CCPartAnimSprite *))(*(_QWORD *)this + 488LL))(this);
if ( result )
{
result = **(unsigned int **)((*(__int64 (__fastcall **)(CCPartAnimSprite *))(*(_QWORD *)this + 488LL))(this) + 56);
if ( (_DWORD)result )
{
v5 = *(__int64 **)(*(_QWORD *)((*(__int64 (__fastcall **)(CCPartAnimSprite *))(*(_QWORD *)this + 488LL))(this) + 56)
+ 16LL);
v6 = *(_QWORD *)((*(__int64 (__fastcall **)(CCPartAnimSprite *))(*(_QWORD *)this + 488LL))(this) + 56);
v7 = *(_QWORD *)this;
v8 = this;
v9 = *(_QWORD *)(v6 + 16);
result = *(_QWORD *)((*(__int64 (__fastcall **)(CCPartAnimSprite *))(v7 + 488))(v8) + 56);
for ( i = v9 + 8LL * *(unsigned int *)result - 8;
i >= (unsigned __int64)v5;
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 912LL))(result, v2) )
{
result = *v5;
if ( !*v5 )
break;
++v5;
}
}
}
return result;
}