//
// CCAnimatedSprite::cleanupSprite from 0x10033bf40 to 0x10033bfd7 (151 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:28:41 +0000
//
__int64 __fastcall CCAnimatedSprite::cleanupSprite(_QWORD *a1)
{
__int64 v2; // rdi
__int64 result; // rax
__int64 v4; // rdi
__int64 v5; // rdi
__int64 v6; // rdi
__int64 v7; // rdi
_QWORD *v8; // rbx
v2 = a1[84];
if ( v2 )
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 736LL))(v2);
v4 = a1[83];
if ( v4 )
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 736LL))(v4);
v5 = a1[81];
if ( v5 )
result = SpriteAnimationManager::doCleanup(v5);
v6 = a1[83];
if ( v6 )
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 528LL))(v6, 1);
v7 = a1[84];
v8 = a1 + 81;
if ( v7 )
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 528LL))(v7, 1);
*((_OWORD *)v8 + 1) = 0;
*(_OWORD *)v8 = 0;
*((_DWORD *)v8 + 8) = 0;
return result;
}