//
// GJBaseGameLayer::moveObjects from 0x1002953d0 to 0x1002954e4 (276 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::processMoveActions @ 0x100294834
// > GJBaseGameLayer::moveObject @ 0x100295558
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x100295c94
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x10029685c
//
// 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 11:02:05 +0000
//
__int64 __fastcall GJBaseGameLayer::moveObjects(__int64 result, __int64 a2, double a3, double a4)
{
_DWORD *v7; // x20
unsigned int *v8; // x9
__int64 v9; // x8
__int64 *v10; // x22
unsigned __int64 v11; // x23
__int64 v12; // x21
int v13; // w8
if ( a2 )
{
v7 = (_DWORD *)result;
*(_DWORD *)(result + 13740) += sub_1002E757C(a2);
v8 = *(unsigned int **)(a2 + 56);
v9 = *v8;
if ( (_DWORD)v9 )
{
v10 = *((__int64 **)v8 + 2);
v11 = (unsigned __int64)&v10[v9 - 1];
do
{
v12 = *v10;
if ( !*v10 )
break;
if ( (*(_BYTE *)(v12 + 1290) & 1) == 0 )
{
v13 = v7[236];
if ( *(_DWORD *)(v12 + 1236) != v13 )
{
*(float32x2_t *)(v12 + 1224) = vcvt_f32_f64(*(float64x2_t *)(v12 + 944));
*(_DWORD *)(v12 + 1236) = v13;
sub_1002F7D6C(v12);
}
}
if ( a3 != 0.0 && (*(_BYTE *)(v12 + 708) & 1) == 0 )
*(double *)(v12 + 944) = *(double *)(v12 + 944) + a3;
if ( a4 != 0.0 )
*(double *)(v12 + 952) = *(double *)(v12 + 952) + a4;
sub_1002F7D78(v12);
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v7 + 1368LL))(v7, v12);
++v10;
}
while ( (unsigned __int64)v10 <= v11 );
}
return (*(__int64 (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v7 + 1376LL))(v7, a2);
}
return result;
}