//
// GJBaseGameLayer::processPlayerFollowActions from 0x10029485c to 0x100294a5c (512 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::processMoveActionsStep @ 0x1002933a8
//
// 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::processPlayerFollowActions(__int64 result, float a2)
{
__int64 v2; // x8
_QWORD *v3; // x23
_QWORD *v4; // x24
__int64 v5; // x19
double v6; // d8
__int64 v7; // x20
int v8; // w0
__int64 Group; // x0
__int64 v10; // x21
double v11; // d0
_BOOL4 v12; // w8
_BOOL4 v13; // w9
float v14; // s1
float v15; // s0
float v16; // s12
unsigned int *v17; // x9
__int64 v18; // x8
float v19; // s13
__int64 *v20; // x25
unsigned __int64 v21; // x26
__int64 v22; // x22
int v23; // w8
float v24; // s0
float v25; // s0
float v26; // s15
float v27; // s0
float v28; // s1
__int64 v29; // [xsp+8h] [xbp-88h] BYREF
v2 = *(_QWORD *)(result + 2152);
v3 = *(_QWORD **)(v2 + 1552);
v4 = *(_QWORD **)(v2 + 1560);
if ( v3 != v4 )
{
v5 = result;
v6 = (float)(a2 * 60.0);
do
{
v7 = *v3;
v8 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v3 + 64LL))(*v3);
Group = GJBaseGameLayer::getGroup(v5, v8);
v10 = Group;
v11 = *(double *)(v7 + 168) * v6;
v12 = v11 >= 1.0;
v13 = v11 > 0.0 || v11 >= 1.0;
if ( v11 <= 0.0 )
v12 = 1;
if ( v13 )
v14 = 1.0;
else
v14 = 0.0;
v15 = v11;
if ( v12 )
v16 = v14;
else
v16 = v15;
if ( Group )
{
v17 = *(unsigned int **)(Group + 56);
v18 = *v17;
if ( (_DWORD)v18 )
{
v19 = *(double *)(v7 + 192) * v6;
v20 = *((__int64 **)v17 + 2);
v21 = (unsigned __int64)&v20[v18 - 1];
do
{
v22 = *v20;
if ( !*v20 )
break;
if ( (*(_BYTE *)(v22 + 1290) & 1) == 0 )
{
v23 = *(_DWORD *)(v5 + 944);
if ( *(_DWORD *)(v22 + 1236) != v23 )
{
*(float32x2_t *)(v22 + 1224) = vcvt_f32_f64(*(float64x2_t *)(v22 + 944));
*(_DWORD *)(v22 + 1236) = v23;
sub_1002F7D6C(v22);
}
}
v24 = *(double *)(v7 + 176);
v25 = sub_1002BA230(*(_QWORD *)(v5 + 3256), v24);
if ( v25 != 0.0 )
{
v26 = v25 + (float)*(int *)(v7 + 184);
(*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)v22 + 1360LL))(&v29, v22);
v27 = v16 * (float)(v26 - *((float *)&v29 + 1));
if ( v27 != 0.0 )
{
if ( v19 <= 0.0 )
{
v28 = v16 * (float)(v26 - *((float *)&v29 + 1));
}
else
{
v28 = v19;
if ( v27 <= v19 )
{
v28 = v16 * (float)(v26 - *((float *)&v29 + 1));
if ( v27 < (float)-v19 )
v28 = -v19;
}
}
*(double *)(v22 + 952) = *(double *)(v22 + 952) + v28;
sub_1002F7D78(v22);
}
}
++v20;
}
while ( (unsigned __int64)v20 <= v21 );
}
}
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 1376LL))(v5, v10);
++v3;
}
while ( v3 != v4 );
}
return result;
}