//
// CCPartAnimSprite::dirtify from 0x10035eb90 to 0x10035ec3a (170 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:55 +0000
//
__int64 __fastcall CCPartAnimSprite::dirtify(__int64 a1)
{
__int64 result; // rax
_QWORD *v2; // r14
__int64 v3; // r15
unsigned __int64 i; // rbx
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);
if ( result )
{
result = *(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1) + 56);
if ( *(_DWORD *)result )
{
v2 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1) + 56) + 16LL);
v3 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1) + 56) + 16LL);
result = **(unsigned int **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1) + 56);
for ( i = v3 + 8 * result - 8; (unsigned __int64)v2 <= i; ++v2 )
{
if ( !*v2 )
break;
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v2 + 1200LL))(*v2, 1);
}
}
}
return result;
}