//
// sub_645B00 from 0x645b00 to 0x645b54 (84 bytes)
//
// 2 xrefs:
// > sub_61E55C @ 0x61e610
// > sub_628A24 @ 0x628aa4
//
// 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
//
void __fastcall sub_645B00(int a1)
{
int v1; // r4
int v2; // r3
int v4; // r5
int v5; // r6
v2 = *(_DWORD *)(a1 + 34940);
if ( v2 )
{
if ( v2 > 0 )
v1 = 0;
if ( v2 <= 0 )
{
v4 = a1 + 34940;
}
else
{
v4 = a1 + 34940;
v5 = v1;
do
{
sub_63611C(*(_DWORD *)(*(_DWORD *)(v4 + 4) + 4 * v1));
*(_DWORD *)(*(_DWORD *)(v4 + 4) + 4 * v1++) = v5;
}
while ( v1 < *(_DWORD *)v4 );
}
off_ABAEB0(*(void **)(v4 + 4));
*(_DWORD *)(v4 + 4) = 0;
*(_DWORD *)(a1 + 34940) = 0;
}
}