//
// GJBaseGameLayer::processMoveActions from 0x100124900 to 0x100124aef (495 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::processMoveActionsStep @ 0x100122c17
// > GJBaseGameLayer::update @ 0x10012fec7
//
// 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 12:24:40 +0000
//
__int64 __fastcall GJBaseGameLayer::processMoveActions(_QWORD *a1)
{
__int64 result; // rax
_QWORD *v3; // r13
_QWORD *v4; // r12
__int64 v5; // r14
__int64 v6; // rdi
int v7; // eax
__int64 v8; // r15
__int64 v9; // rsi
__int64 v10; // r12
float v11; // xmm0_4
float v12; // xmm1_4
int v13; // eax
__int64 v14; // r15
__int64 v15; // rsi
__int64 v16; // r12
float v17; // xmm0_4
float v18; // xmm1_4
_QWORD *v19; // [rsp+0h] [rbp-30h]
GJEffectManager::processMoveCalculations(a1[269]);
result = a1[269];
v3 = *(_QWORD **)(result + 1504);
v4 = *(_QWORD **)(result + 1512);
if ( v3 != v4 )
{
v19 = *(_QWORD **)(result + 1512);
do
{
v5 = *v3;
if ( !*(_BYTE *)(*v3 + 208LL) )
{
v6 = *v3;
v7 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v5 + 64LL))(*v3);
v8 = (unsigned int)v7;
if ( v7 >= 9999 )
v8 = 9999;
if ( (int)v8 <= 0 )
v8 = 0;
v9 = *(_QWORD *)(a1[455] + 8 * v8);
if ( v9
|| (v10 = sub_1007FE900(v6),
cocos2d::CCDictionary::setObject_1(a1[450], v10, v8),
v9 = v10,
v4 = v19,
(*(_QWORD *)(a1[455] + 8 * v8) = v9) != 0) )
{
v11 = *(double *)(v5 + 56);
v12 = *(double *)(v5 + 64);
if ( v11 != 0.0 || v12 != 0.0 || *(_BYTE *)(v5 + 120) == 1 )
GJBaseGameLayer::moveObjects(a1, v9, 0, v11, v12);
}
v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5);
v14 = (unsigned int)v13;
if ( v13 >= 9999 )
v14 = 9999;
if ( (int)v14 <= 0 )
v14 = 0;
result = a1[458];
v15 = *(_QWORD *)(result + 8 * v14);
if ( v15
|| (v16 = sub_1007FE900(v5),
cocos2d::CCDictionary::setObject_1(a1[451], v16, v14),
v15 = v16,
v4 = v19,
result = a1[458],
(*(_QWORD *)(result + 8 * v14) = v15) != 0) )
{
v17 = *(double *)(v5 + 144);
v18 = *(double *)(v5 + 152);
if ( v17 != 0.0 || v18 != 0.0 || *(_BYTE *)(v5 + 120) == 1 )
result = GJBaseGameLayer::moveObjects(a1, v15, 0, v17, v18);
}
}
++v3;
}
while ( v3 != v4 );
}
return result;
}