//
// sub_8F470 from 0x8f470 to 0x8f4ae (62 bytes)
//
// 3 xrefs:
// > sub_8EEA4 @ 0x8eeaa
// > ??> @ 0x8f450
// > sub_8F4EC @ 0x8f69e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:25 +0000
//
int __fastcall sub_8F470(int a1)
{
int v1; // r1
int v2; // r2
int v3; // r3
int v4; // r3
v1 = 0;
*(_DWORD *)(a1 + 592) = 0;
while ( v1 != 16 )
{
v2 = a1 + 4 * v1++;
v3 = *(_DWORD *)(v2 + 512);
if ( v3 )
v4 = *(_DWORD *)(a1 + 588) - v3;
else
v4 = 0;
*(_DWORD *)(v2 + 596) = v4;
}
if ( *(_DWORD *)(a1 + 576) )
memset(*(void **)(a1 + 576), 0, *(_DWORD *)(a1 + 584));
return 0;
}