//
// sub_97E28 from 0x97e28 to 0x97ee4 (188 bytes)
//
// 4 xrefs:
// > sub_9673C @ 0x9673c
// > sub_96AB0 @ 0x97054
// > sub_97644 @ 0x97684
// > sub_97644 @ 0x97690
//
// 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_97E28(__int64 a1)
{
__int64 v1; // x8
__int64 v3; // x20
__int64 v4; // x21
__int64 v5; // x27
__int64 v6; // x9
v1 = *(_QWORD *)(a1 + 376);
if ( v1 )
{
v3 = 0;
v4 = 0;
v5 = (*(_DWORD *)(a1 + 456) + 1) / 2;
while ( v4 < v5 )
{
memset((void *)(v1 + v3), 0, 0x48D0u);
v1 = *(_QWORD *)(a1 + 376);
++v4;
v6 = v1 + v3;
*(_DWORD *)(v6 + 18632) = -1;
*(_DWORD *)(v6 + 18596) = 1;
*(_QWORD *)(v6 + 9280) = (v1 + v3 + 4623) & 0xFFFFFFFFFFFFFFF0LL;
v3 += 18640;
}
}
return 0;
}