//
// GJBaseGameLayer::resetStoppedAreaObjects from 0x100121d20 to 0x100121dbc (156 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::onStopPlaytest @ 0x1000c6c35
//
// 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:24:39 +0000
//
__int64 __fastcall GJBaseGameLayer::resetStoppedAreaObjects(__int64 a1)
{
__int64 v1; // r15
__int64 result; // rax
__int64 v3; // r14
if ( *(int *)(a1 + 3564) > 0 )
{
v1 = 0;
do
{
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 3400) + 8 * v1);
*(_BYTE *)(v3 + 840) = 1;
*(_WORD *)(v3 + 864) = 257;
if ( (unsigned __int8)GJBaseGameLayer::resetAreaObjectValues(a1, v3, 0) )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1368LL))(a1, v3);
(*(void (__fastcall **)(__int64, double))(*(_QWORD *)v3 + 1480LL))(v3, 0.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 1456LL))(v3, 1.0);
++v1;
result = *(int *)(a1 + 3564);
}
while ( v1 < result );
}
return result;
}