//
// GJBaseGameLayer::moveObjects from 0x1403368d0 to 0x140336a50 (384 bytes)
//
// 9 xrefs:
// > GJBaseGameLayer::processMoveActions @ 0x14033645a
// > GJBaseGameLayer::processMoveActions @ 0x1403364ef
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x140338eac
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x140338f03
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x14033901f
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x140339046
// > ??> @ 0x1408b6d50
// > ??> @ 0x1408b6d84
// > ??> @ 0x14091f94c
//
// 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 11:30:35 +0000
//
void __fastcall GJBaseGameLayer::moveObjects(_DWORD *a1, cocos2d::CCArray *a2, double a3, double a4)
{
unsigned int *v6; // rdi
__int64 v7; // rax
__int64 *v8; // rdi
__int64 *i; // r14
__int64 v10; // rdx
float v11; // xmm1_4
if ( a2 )
{
a1[3593] += cocos2d::CCArray::count(a2);
v6 = *((unsigned int **)a2 + 7);
v7 = *v6;
if ( (_DWORD)v7 )
{
v8 = *((__int64 **)v6 + 2);
for ( i = &v8[v7 - 1]; v8 <= i; ++v8 )
{
v10 = *v8;
if ( !*v8 )
break;
if ( !*(_BYTE *)(v10 + 1298) && *(_DWORD *)(v10 + 1244) != a1[248] )
{
v11 = *(double *)(v10 + 960);
*(float *)(v10 + 1232) = *(double *)(v10 + 952);
*(float *)(v10 + 1236) = v11;
*(_DWORD *)(v10 + 1244) = a1[248];
*(_WORD *)(v10 + 872) = 257;
}
if ( a3 != 0.0 && !*(_BYTE *)(v10 + 712) )
*(double *)(v10 + 952) = a3 + *(double *)(v10 + 952);
if ( a4 != 0.0 )
*(double *)(v10 + 960) = a4 + *(double *)(v10 + 960);
*(_WORD *)(v10 + 849) = 257;
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 1216LL))(a1);
}
}
(*(void (__fastcall **)(_DWORD *, cocos2d::CCArray *))(*(_QWORD *)a1 + 1224LL))(a1, a2);
}
}