//
// LevelEditorLayer::resetMovingObjects from 0x462044 to 0x4620b2 (110 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::onStopPlaytest @ 0x462b6c
//
// 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:48:53 +0000
//
unsigned int __fastcall LevelEditorLayer::resetMovingObjects(LevelEditorLayer *this, int a2, int a3, int a4)
{
unsigned int v5; // r4
cocos2d::CCArray *AllObjects; // r7
unsigned int result; // r0
int v8; // r0
int v9; // r5
void (__fastcall *v10)(int, _DWORD *); // r10
_DWORD v11[3]; // [sp+4h] [bp-Ch] BYREF
v11[0] = a2;
v11[1] = a3;
v11[2] = a4;
v5 = 0;
AllObjects = (cocos2d::CCArray *)LevelEditorLayer::getAllObjects(this);
while ( 1 )
{
result = cocos2d::CCArray::count(AllObjects);
if ( v5 >= result )
break;
v8 = cocos2d::CCArray::objectAtIndex(AllObjects, v5++);
v9 = v8;
GameObject::resetMoveOffset(v8);
v10 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v9 + 92);
(*(void (__fastcall **)(_DWORD *, int))(*(_DWORD *)v9 + 680))(v11, v9);
v10(v9, v11);
(*(void (__fastcall **)(LevelEditorLayer *, int))(*(_DWORD *)this + 684))(this, v9);
}
return result;
}