//
// sub_AD888 from 0xad888 to 0xad8e4 (92 bytes)
//
// 3 xrefs:
// > sub_AD1C0 @ 0xad1cc
// > sub_AD73C @ 0xad86c
// > sub_AD938 @ 0xadb10
//
// 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
//
__int64 __fastcall sub_AD888(__int64 a1)
{
__int64 v1; // x8
int v2; // w10
v1 = 0;
*(_DWORD *)(a1 + 768) = 0;
while ( v1 != 64 )
{
v2 = *(_DWORD *)(a1 + v1 + 680);
if ( v2 )
v2 = *(_DWORD *)(a1 + 764) - v2;
*(_DWORD *)(a1 + v1 + 772) = v2;
v1 += 4;
}
if ( *(_QWORD *)(a1 + 744) )
memset(*(void **)(a1 + 744), 0, *(unsigned int *)(a1 + 760));
return 0;
}