//
// GJBaseGameLayer::moveObjects from 0x59464c to 0x594736 (234 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::moveObject @ 0x594762
// > GJBaseGameLayer::processMoveActions @ 0x59481e
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x5bc530
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x5bc5f2
//
// 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:53:08 +0000
//
int __fastcall GJBaseGameLayer::moveObjects(int this, cocos2d::CCArray *a2, double a3, double a4, bool a5)
{
_DWORD *v5; // r7
_DWORD *v8; // r3
int *v9; // r5
int *v10; // r6
int v11; // r4
int v12; // t1
float v13; // s14
float v14; // s14
v5 = (_DWORD *)this;
if ( a2 )
{
*(_DWORD *)(this + 11504) += cocos2d::CCArray::count(a2);
v8 = *((_DWORD **)a2 + 13);
if ( *v8 )
{
v9 = (int *)v8[3];
v10 = &v9[*v8 - 1];
while ( v9 <= v10 )
{
v12 = *v9++;
v11 = v12;
if ( !v12 )
break;
if ( !*(_BYTE *)(v11 + 1110) && *(_DWORD *)(v11 + 1072) != v5[202] )
{
v13 = *(double *)(v11 + 808);
*(float *)(v11 + 1060) = v13;
v14 = *(double *)(v11 + 816);
*(float *)(v11 + 1064) = v14;
*(_DWORD *)(v11 + 1072) = v5[202];
GameObject::dirtifyObjectRect(v11);
}
if ( a3 != 0.0 && !*(_BYTE *)(v11 + 608) )
*(double *)(v11 + 808) = *(double *)(v11 + 808) + a3;
if ( a4 != 0.0 )
*(double *)(v11 + 816) = *(double *)(v11 + 816) + a4;
GameObject::dirtifyObjectPos(v11);
(*(void (__fastcall **)(_DWORD *, int))(*v5 + 684))(v5, v11);
}
}
return (*(int (__fastcall **)(_DWORD *, cocos2d::CCArray *))(*v5 + 688))(v5, a2);
}
return this;
}