//
// PlayLayer::loadActiveSaveObjects from 0x10008b760 to 0x10008b805 (165 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:20:06 +0000
//
__int64 __fastcall PlayLayer::loadActiveSaveObjects(__int64 a1, __int64 *a2, unsigned int **a3)
{
__int64 result; // rax
__int64 v4; // rcx
__int64 v5; // rsi
unsigned int *v6; // rbx
unsigned int *v7; // r14
__int64 v8; // rdi
result = *a2;
v4 = a2[1];
if ( *a2 != v4 )
{
do
{
v5 = *(_QWORD *)result;
*(_BYTE *)(v5 + 1444) = *(_BYTE *)(result + 8);
*(_BYTE *)(v5 + 1445) = *(_BYTE *)(result + 9);
result += 16;
}
while ( result != v4 );
}
v6 = *a3;
v7 = a3[1];
if ( *a3 != v7 )
{
do
{
while ( 1 )
{
v8 = *(_QWORD *)v6;
if ( *(_DWORD *)(*(_QWORD *)v6 + 1248LL) != 2 )
break;
result = AnimatedGameObject::playAnimation(v8, v6[2]);
v6 += 4;
if ( v6 == v7 )
return result;
}
if ( *(_DWORD *)(v8 + 1028) == 1615 )
*(_BYTE *)(v8 + 1904) = 1;
v6 += 4;
}
while ( v6 != v7 );
}
return result;
}