//
// sub_58B818 from 0x58b818 to 0x58b844 (44 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::regenerateEnterEasingBuffers @ 0x5a73b8
// > GJGameState::operator= @ 0x5b404e
// > GJBaseGameLayer::prepareSavePositionObjects @ 0x5c02d6
//
// 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:53:02 +0000
//
_DWORD *__fastcall sub_58B818(_DWORD *a1)
{
_DWORD *result; // r0
_DWORD *v3; // r5
_DWORD *v4; // r3
for ( result = (_DWORD *)a1[2]; result; result = v3 )
{
v3 = (_DWORD *)*result;
operator delete(result);
}
v4 = (_DWORD *)a1[1];
a1[2] = 0;
while ( result != v4 )
{
*(_DWORD *)(*a1 + 4 * (_DWORD)result) = 0;
result = (_DWORD *)((char *)result + 1);
}
a1[3] = 0;
return result;
}