//
// GJBaseGameLayer::moveObjects from 0x9a63f0 to 0x9a6524 (308 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::moveObject @ 0x9a655c
// > GJBaseGameLayer::processMoveActions @ 0x9a662c
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x9eb714
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x9eb740
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x9eb7e8
// > ??> @ 0xc9fe8
//
// 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:58:10 +0000
//
_DWORD *__fastcall GJBaseGameLayer::moveObjects(_DWORD *this, cocos2d::CCArray *a2, double a3, double a4)
{
_DWORD *v5; // x20
unsigned int *v8; // x1
__int64 *v9; // x21
__int64 *v10; // x23
__int64 v11; // x19
__int64 v12; // x0
float v13; // s1
float v14; // s0
if ( a2 )
{
v5 = this;
*(this + 3435) += cocos2d::CCArray::count(a2);
v8 = *((unsigned int **)a2 + 7);
if ( *v8 )
{
v9 = *((__int64 **)v8 + 2);
v10 = &v9[*v8 - 1];
while ( v10 >= v9 )
{
v11 = *v9;
if ( !*v9 )
break;
if ( !*(_BYTE *)(v11 + 1290) && *(_DWORD *)(v11 + 1236) != v5[236] )
{
v12 = *v9;
v13 = *(double *)(v11 + 944);
v14 = *(double *)(v11 + 952);
*(float *)(v11 + 1224) = v13;
*(float *)(v11 + 1228) = v14;
*(_DWORD *)(v11 + 1236) = v5[236];
GameObject::dirtifyObjectRect(v12);
}
if ( a3 != 0.0 && !*(_BYTE *)(v11 + 708) )
*(double *)(v11 + 944) = *(double *)(v11 + 944) + a3;
if ( a4 != 0.0 )
*(double *)(v11 + 952) = *(double *)(v11 + 952) + a4;
++v9;
GameObject::dirtifyObjectPos(v11);
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v5 + 1368LL))(v5, v11);
}
}
return (_DWORD *)(*(__int64 (__fastcall **)(_DWORD *, cocos2d::CCArray *))(*(_QWORD *)v5 + 1376LL))(v5, a2);
}
return this;
}