//
// PlayLayer::loadActiveSaveObjects from 0x402098 to 0x4020ea (82 bytes)
//
// 1 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x411a6e
//
// 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:47:24 +0000
//
int __fastcall PlayLayer::loadActiveSaveObjects(int a1, int *a2, int **a3)
{
int result; // r0
int i; // r3
char v5; // r4
int v6; // r1
int *v7; // r4
int *v8; // r5
result = a2[1];
for ( i = *a2; i != result; *(_BYTE *)(v6 + 1265) = *(_BYTE *)(i - 3) )
{
v5 = *(_BYTE *)(i + 4);
i += 8;
v6 = *(_DWORD *)(i - 8);
*(_BYTE *)(v6 + 1264) = v5;
}
v7 = *a3;
v8 = a3[1];
while ( v7 != v8 )
{
result = *v7;
if ( *(_DWORD *)(*v7 + 1084) == 2 )
{
result = AnimatedGameObject::playAnimation((AnimatedGameObject *)result, v7[1]);
}
else if ( *(_DWORD *)(result + 892) == 1615 )
{
*(_BYTE *)(result + 1692) = 1;
}
v7 += 2;
}
return result;
}