//
// 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 (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:14:35 +0000
//
__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;
}