//
// PlayLayer::loadActiveSaveObjects from 0x6f6758 to 0x6f6804 (172 bytes)
//
// 2 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x70f848
// > ??> @ 0x454c0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:51:51 +0000
//
__int64 __fastcall PlayLayer::loadActiveSaveObjects(__int64 a1, __int64 *a2, unsigned int **a3)
{
__int64 v3; // x4
__int64 result; // x0
__int64 v5; // x1
unsigned int *v6; // x20
unsigned int *v7; // x19
v3 = a2[1];
for ( result = *a2; v3 != result; *(_BYTE *)(v5 + 1445) = *(_BYTE *)(result - 7) )
{
v5 = *(_QWORD *)result;
result += 16;
*(_BYTE *)(v5 + 1444) = *(_BYTE *)(result - 8);
}
v6 = a3[1];
v7 = *a3;
if ( *a3 != v6 )
{
while ( 1 )
{
result = *(_QWORD *)v7;
if ( *(_DWORD *)(*(_QWORD *)v7 + 1248LL) == 2 )
break;
if ( *(_DWORD *)(result + 1028) == 1615 )
{
v7 += 4;
*(_BYTE *)(result + 1904) = 1;
if ( v6 == v7 )
return result;
}
else
{
LABEL_5:
v7 += 4;
if ( v6 == v7 )
return result;
}
}
result = AnimatedGameObject::playAnimation((AnimatedGameObject *)result, (AnimatedGameObject *)v7[2]);
goto LABEL_5;
}
return result;
}