//
// PlayLayer::loadDynamicSaveObjects from 0x401fa8 to 0x402094 (236 bytes)
//
// 1 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x411a60
//
// 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::loadDynamicSaveObjects(int result, _DWORD *a2)
{
int v2; // r10
int v3; // r8
int v4; // r5
int *v5; // r4
__int64 v6; // r2
int v7; // r3
void (__fastcall *v8)(int *, _BYTE *); // r11
int v9; // r3
_BYTE v10[8]; // [sp+4h] [bp-10h] BYREF
v2 = a2[1];
v3 = result;
v4 = *a2 + 48;
while ( v2 != v4 - 48 )
{
v5 = *(int **)(v4 - 48);
v6 = *(_QWORD *)(v4 - 40);
v4 += 48;
*((_QWORD *)v5 + 101) = v6;
*((_QWORD *)v5 + 102) = *(_QWORD *)(v4 - 80);
v5[144] = *(_DWORD *)(v4 - 72);
v5[146] = *(_DWORD *)(v4 - 68);
GameObject::addToCustomScaleX((GameObject *)v5, *(float *)(v4 - 64));
GameObject::addToCustomScaleY((GameObject *)v5, *(float *)(v4 - 60));
(*(void (__fastcall **)(int *, _DWORD))(*v5 + 740))(v5, 0);
(*(void (__fastcall **)(int *, int))(*v5 + 728))(v5, 1065353216);
v7 = *v5;
v5[268] = -1;
v5[270] = -1;
v8 = *(void (__fastcall **)(int *, _BYTE *))(v7 + 92);
(*(void (__fastcall **)(_BYTE *, int *))(v7 + 680))(v10, v5);
v8(v5, v10);
(*(void (__fastcall **)(_BYTE *, int *))(*v5 + 680))(v10, v5);
GameObject::setLastPosition((GameObject *)v5, (const cocos2d::CCPoint *)v10);
(*(void (__fastcall **)(int *, int))(*v5 + 888))(v5, 1);
v9 = *v5;
*((_BYTE *)v5 + 708) = 1;
(*(void (__fastcall **)(int *))(v9 + 896))(v5);
result = (*(int (__fastcall **)(int, int *))(*(_DWORD *)v3 + 684))(v3, v5);
}
return result;
}