//
// PlayLayer::loadDynamicSaveObjects from 0x10008b610 to 0x10008b756 (326 bytes)
//
// 1 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x10008b29c
//
// 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::loadDynamicSaveObjects(__int64 a1, __int64 *a2)
{
__int64 result; // rax
__int64 v3; // r12
__int64 v4; // r13
_DWORD *v5; // r15
_QWORD v6[6]; // [rsp+0h] [rbp-30h] BYREF
v6[0] = result;
v3 = *a2;
v4 = a2[1];
if ( *a2 != v4 )
{
do
{
v5 = *(_DWORD **)v3;
*((_OWORD *)v5 + 59) = *(_OWORD *)(v3 + 8);
v5[169] = *(_DWORD *)(v3 + 24);
v5[171] = *(_DWORD *)(v3 + 28);
GameObject::addToCustomScaleX(v5, *(float *)(v3 + 32));
GameObject::addToCustomScaleY(v5, *(float *)(v3 + 36));
(*(void (__fastcall **)(_DWORD *, double))(*(_QWORD *)v5 + 1480LL))(v5, 0.0);
(*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v5 + 1456LL))(v5, 1.0);
v5[309] = -1;
v5[311] = -1;
(*(void (__fastcall **)(_QWORD *, _DWORD *))(*(_QWORD *)v5 + 1360LL))(v6, v5);
(*(void (__fastcall **)(_DWORD *, _QWORD *))(*(_QWORD *)v5 + 184LL))(v5, v6);
(*(void (__fastcall **)(_QWORD *, _DWORD *))(*(_QWORD *)v5 + 1360LL))(v6, v5);
GameObject::setLastPosition(v5, v6);
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v5 + 1776LL))(v5, 1);
*((_BYTE *)v5 + 840) = 1;
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v5 + 1792LL))(v5, 1);
result = (*(__int64 (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)a1 + 1368LL))(a1, v5);
v3 += 48;
}
while ( v3 != v4 );
}
return result;
}