//
// LevelEditorLayer::resetMovingObjects from 0x78ced4 to 0x78cfa4 (208 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::onStopPlaytest @ 0x78e054
// > ??> @ 0x704f8
//
// 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:53:27 +0000
//
__int64 __fastcall LevelEditorLayer::resetMovingObjects(LevelEditorLayer *this)
{
unsigned int v1; // w20
cocos2d::CCArray *AllObjects; // x21
unsigned int v4; // w1
GameObject *v5; // x19
double v6; // d0
void (__fastcall *v7)(GameObject *, __int64 *); // x24
__int64 v9; // [xsp+50h] [xbp+50h] BYREF
v1 = 0;
AllObjects = (cocos2d::CCArray *)LevelEditorLayer::getAllObjects(this);
while ( v1 < (unsigned int)cocos2d::CCArray::count(AllObjects) )
{
v4 = v1++;
v5 = (GameObject *)cocos2d::CCArray::objectAtIndex(AllObjects, v4);
v6 = GameObject::resetMoveOffset(v5);
v7 = *(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)v5 + 184LL);
(*(void (__fastcall **)(__int64 *__return_ptr, GameObject *, double))(*(_QWORD *)v5 + 1360LL))(&v9, v5, v6);
v7(v5, &v9);
(*(void (__fastcall **)(LevelEditorLayer *, GameObject *))(*(_QWORD *)this + 1368LL))(this, v5);
}
return _stack_chk_guard;
}