//
// CCPartAnimSprite::setOpacity from 0x140046910 to 0x1400469e7 (215 bytes)
//
// 4 xrefs:
// > ??> @ 0x14052f1d0
// > ??> @ 0x140662c98
// > ??> @ 0x140662ca8
// > ??> @ 0x1406c4848
//
// 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)
{
char *v4; // rsi
unsigned __int64 v5; // rbx
__int64 v6; // rdi
unsigned __int64 i; // rdi
cocos2d::CCSprite::setOpacity(a1, a2);
v4 = (char *)&a1[-1].cocos2d::CCRGBAProtocol;
if ( (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v4 + 464LL))(v4) )
{
if ( **(_DWORD **)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)v4 + 464LL))(v4) + 56) )
{
v5 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)v4 + 464LL))(v4) + 56) + 16LL);
v6 = 8LL * **(unsigned int **)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)v4 + 464LL))(v4) + 56);
for ( i = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)v4 + 464LL))(v4) + 56) + 16LL)
- 8LL
+ v6; v5 <= i; v5 += 8LL )
{
if ( !*(_QWORD *)v5 )
break;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)v5 + 320LL) + 40LL))(*(_QWORD *)v5 + 320LL, a2);
}
}
}
}