//
// sub_4CAC84 from 0x4cac84 to 0x4cacb8 (52 bytes)
//
// 4 xrefs:
// > GameLevelManager::clearPlatformerSaves @ 0x4cacf0
// > GameLevelManager::clearPlatformerSaves @ 0x4cacfa
// > GameLevelManager::clearPlatformerSaves @ 0x4cad04
// > GameLevelManager::clearPlatformerSaves @ 0x4cad0e
//
// 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:50:37 +0000
//
int __fastcall sub_4CAC84(int result, int a2)
{
int *v2; // r5
int v3; // r3
int v4; // r4
int v5; // r2
v2 = (int *)result;
if ( a2 )
{
v3 = *(_DWORD *)(a2 + 52);
if ( v3 )
v4 = *(_DWORD *)(v3 + 272);
else
v4 = 0;
while ( v3 )
{
result = sub_4CAC34(*v2, *(GJGameLevel **)(v3 + 260));
if ( v4 )
v5 = *(_DWORD *)(v4 + 272);
else
v5 = 0;
v3 = v4;
v4 = v5;
}
}
return result;
}