//
// GJBaseGameLayer::processMoveActionsStep from 0x9ebac4 to 0x9ebbf4 (304 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::loadUpToPosition @ 0x9ebe40
// > GJBaseGameLayer::update @ 0x9edbc0
// > ??> @ 0x867e8
//
// 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:59:03 +0000
//
__int64 __fastcall GJBaseGameLayer::processMoveActionsStep(GJBaseGameLayer *this, float a2, unsigned __int8 a3)
{
__int64 *v5; // x21
__int64 *v6; // x19
bool v8; // zf
__int64 v9; // x1
__int64 MoveCommandNode; // x0
__int64 result; // x0
__int64 v12; // x21
int v13; // w19
GameObject *v14; // x0
v5 = *((__int64 **)this + 210);
v6 = *((__int64 **)this + 209);
*((_DWORD *)this + 888) = 0;
*((_DWORD *)this + 889) = 0;
v8 = v6 == v5;
*((_DWORD *)this + 890) = 0;
*((_DWORD *)this + 891) = 0;
while ( !v8 )
{
while ( 1 )
{
v9 = *v6;
v6 += 12;
MoveCommandNode = GJEffectManager::tryGetMoveCommandNode(
*((GJEffectManager **)this + 269),
*(_DWORD *)(v9 + 1464));
v8 = v5 == v6;
if ( !MoveCommandNode )
break;
*(_BYTE *)(MoveCommandNode + 209) = 1;
if ( v5 == v6 )
goto LABEL_5;
}
}
LABEL_5:
GJBaseGameLayer::processDynamicObjectActions((GJEffectManager **)this, 1, a2);
GJBaseGameLayer::processTransformActions(this, a3);
GJBaseGameLayer::processRotationActions(this);
GJBaseGameLayer::processDynamicObjectActions((GJEffectManager **)this, 0, a2);
GJBaseGameLayer::processMoveActions((GJEffectManager **)this);
GJBaseGameLayer::processPlayerFollowActions(this, a2);
GJBaseGameLayer::processAdvancedFollowActions(this, a2);
GJBaseGameLayer::processFollowActions(this);
GJBaseGameLayer::processAreaActions(this, a2, a3);
result = *((unsigned __int8 *)this + 12236);
if ( *((_BYTE *)this + 12236) )
{
result = *((unsigned int *)this + 889);
if ( (int)result > 0 )
{
v12 = 0;
v13 = 0;
do
{
++v13;
v14 = *(GameObject **)(*((_QWORD *)this + 419) + v12);
v12 += 8;
GameObject::quickUpdatePosition(v14);
result = *((unsigned int *)this + 889);
}
while ( (int)result > v13 );
}
}
return result;
}