//
// PlayLayer::loadDynamicSaveObjects from 0x6f65dc to 0x6f6758 (380 bytes)
//
// 2 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x70f838
// > ??> @ 0x6ece0
//
// 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::loadDynamicSaveObjects(__int64 a1, __int64 ***a2)
{
__int64 **v3; // x20
__int64 **v4; // x24
__int64 *v5; // x1
__int64 *v6; // x19
__int64 v7; // x1
void (__fastcall *v8)(__int64 *, _BYTE *); // x27
_BYTE v10[8]; // [xsp+60h] [xbp+60h] BYREF
v3 = *a2;
v4 = a2[1];
if ( *a2 != v4 )
{
do
{
v5 = v3[1];
v6 = *v3;
v3 += 6;
v6[118] = (__int64)v5;
v6[119] = (__int64)*(v3 - 4);
*((_DWORD *)v6 + 169) = *((_DWORD *)v3 - 6);
*((_DWORD *)v6 + 171) = *((_DWORD *)v3 - 5);
GameObject::addToCustomScaleX((GameObject *)v6, *((float *)v3 - 4));
GameObject::addToCustomScaleY((GameObject *)v6, *((float *)v3 - 3));
(*(void (__fastcall **)(__int64 *, float))(*v6 + 1480))(v6, 0.0);
(*(void (__fastcall **)(__int64 *, float))(*v6 + 1456))(v6, 1.0);
*((_DWORD *)v6 + 309) = -1;
v7 = *v6;
*((_DWORD *)v6 + 311) = -1;
v8 = *(void (__fastcall **)(__int64 *, _BYTE *))(v7 + 184);
(*(void (__fastcall **)(__int64 *))(v7 + 1360))(v6);
v8(v6, v10);
(*(void (__fastcall **)(__int64 *))(*v6 + 1360))(v6);
GameObject::setLastPosition((GameObject *)v6, (const cocos2d::CCPoint *)v10);
(*(void (__fastcall **)(__int64 *, __int64))(*v6 + 1776))(v6, 1);
*((_BYTE *)v6 + 840) = 1;
(*(void (__fastcall **)(__int64 *, __int64))(*v6 + 1792))(v6, 1);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1 + 1368LL))(a1, v6);
}
while ( v4 != v3 );
}
return _stack_chk_guard;
}