//
// GJBaseGameLayer::processFollowActions from 0x100294c00 to 0x100294e60 (608 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::processMoveActionsStep @ 0x1002933bc
//
// 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
//
void __fastcall GJBaseGameLayer::processFollowActions(__int64 a1)
{
__int64 v1; // x8
_QWORD *v2; // x24
_QWORD *i; // x25
__int64 v5; // x20
int v6; // w0
__int64 Group; // x21
__int64 MainObject; // x0
__int64 v9; // x23
int v10; // w8
float64x2_t v11; // q0
double v12; // d8
int v13; // w22
float64x2_t *v14; // x8
__int64 v15; // x23
int v16; // w0
unsigned int *v17; // x9
__int64 v18; // x8
__int64 *v19; // x23
unsigned __int64 v20; // x26
__int64 v21; // x22
int v22; // w8
__n128 v23; // q0
__int64 v24; // x23
int v25; // w0
float64x2_t v26; // [xsp+0h] [xbp-60h]
v1 = *(_QWORD *)(a1 + 2152);
v2 = *(_QWORD **)(v1 + 1528);
for ( i = *(_QWORD **)(v1 + 1536); v2 != i; ++v2 )
{
v5 = *v2;
v6 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v2 + 64LL))(*v2);
Group = GJBaseGameLayer::getGroup(a1, v6);
MainObject = GJBaseGameLayer::tryGetMainObject(a1, *(unsigned int *)(v5 + 116));
if ( MainObject )
{
v9 = MainObject;
v10 = *(_DWORD *)(a1 + 944);
if ( *(_DWORD *)(MainObject + 1236) != v10 )
{
*(float32x2_t *)(MainObject + 1224) = vcvt_f32_f64(*(float64x2_t *)(MainObject + 944));
*(_DWORD *)(MainObject + 1236) = v10;
sub_1002F7D6C(MainObject);
}
v11 = vmulq_f64(
*(float64x2_t *)(v5 + 128),
vsubq_f64(*(float64x2_t *)(v9 + 944), vcvtq_f64_f32(*(float32x2_t *)(v9 + 1224))));
*(float64x2_t *)(v5 + 56) = v11;
v26 = v11;
v12 = v11.f64[1];
v13 = v11.f64[1] != 0.0 || v11.f64[0] != 0.0;
if ( (v13 & 1) != 0
|| (*(_BYTE *)(v5 + 120) & 1) != 0
|| *(_BYTE *)(v9 + 1291) == 1
&& (v24 = *(_QWORD *)(a1 + 2152),
v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5),
sub_100016F48(v24, v25, *(_DWORD *)(v5 + 116))) )
{
v14 = *(float64x2_t **)(v5 + 200);
if ( v14 )
v14[3] = vaddq_f64(*(float64x2_t *)(v5 + 56), v14[3]);
v15 = *(_QWORD *)(a1 + 2152);
v16 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5);
sub_100016F08(v15, v16, *(_DWORD *)(v5 + 116), v13);
*(_DWORD *)(a1 + 13752) += sub_1002E757C(Group);
if ( Group )
{
v17 = *(unsigned int **)(Group + 56);
v18 = *v17;
if ( (_DWORD)v18 )
{
v19 = *((__int64 **)v17 + 2);
v20 = (unsigned __int64)&v19[v18 - 1];
do
{
v21 = *v19;
if ( !*v19 )
break;
if ( (*(_BYTE *)(v21 + 1290) & 1) == 0 )
{
v22 = *(_DWORD *)(a1 + 944);
if ( *(_DWORD *)(v21 + 1236) != v22 )
{
*(float32x2_t *)(v21 + 1224) = vcvt_f32_f64(*(float64x2_t *)(v21 + 944));
*(_DWORD *)(v21 + 1236) = v22;
sub_1002F7D6C(v21);
}
}
if ( v12 != 0.0 )
*(double *)(v21 + 952) = *(double *)(v5 + 64) + *(double *)(v21 + 952);
sub_1002F7D78(v21);
v23 = (__n128)v26;
if ( v26.f64[0] != 0.0 && (*(_BYTE *)(v21 + 708) & 1) == 0 )
{
v23.n128_f64[0] = *(double *)(v5 + 56) + *(double *)(v21 + 944);
*(_QWORD *)(v21 + 944) = v23.n128_u64[0];
}
(*(void (__fastcall **)(__int64, __int64, __n128))(*(_QWORD *)a1 + 1368LL))(a1, v21, v23);
++v19;
}
while ( (unsigned __int64)v19 <= v20 );
}
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1376LL))(a1, Group);
}
}
}
}