//
// GJBaseGameLayer::processAreaActions from 0x10029254c to 0x100292748 (508 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::processMoveActionsStep @ 0x1002933cc
//
// 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:04 +0000
//
void __fastcall GJBaseGameLayer::processAreaActions(__int64 a1, int a2, float a3)
{
__int64 v3; // x22
__int64 v7; // x24
__int64 v8; // x21
__int64 v9; // x8
int v10; // w9
__int64 v11; // x21
int v12; // w10
__int64 v13; // x11
__int64 *v14; // x9
__int64 v15; // t1
__int64 v16; // [xsp+8h] [xbp-58h] BYREF
v3 = a1 + 12288;
if ( (*(_BYTE *)(a1 + 12605) & 1) == 0 )
{
*(_DWORD *)(a1 + 948) = *(_DWORD *)(a1 + 944) - 1;
GJBaseGameLayer::processAreaEffects(a1, (__int64 *)(a1 + 1528), 2, a2, a3);
GJBaseGameLayer::processAreaEffects(a1, (__int64 *)(a1 + 1504), 1, a2, a3);
GJBaseGameLayer::processAreaEffects(a1, (__int64 *)(a1 + 1480), 0, a2, a3);
if ( *(int *)(a1 + 3568) >= 1 )
{
v7 = 0;
while ( 1 )
{
v8 = *(_QWORD *)(*(_QWORD *)(a1 + 3424) + 8 * v7);
if ( *(_DWORD *)(v8 + 1240) < *(_DWORD *)(a1 + 944) )
break;
if ( a2 )
goto LABEL_8;
LABEL_9:
if ( ++v7 >= *(int *)(a1 + 3568) )
goto LABEL_10;
}
*(_BYTE *)(v8 + 840) = 1;
*(_WORD *)(v8 + 864) = 257;
if ( GJBaseGameLayer::resetAreaObjectValues((_DWORD *)a1, v8, 0) )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1368LL))(a1, v8);
LABEL_8:
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 1480LL))(v8, 0.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 1456LL))(v8, 1.0);
goto LABEL_9;
}
LABEL_10:
*(_DWORD *)(a1 + 3568) = 0;
LODWORD(v9) = *(_DWORD *)(a1 + 3564);
if ( (int)v9 >= 1 )
{
v10 = 0;
v11 = 0;
v12 = *(_DWORD *)(a1 + 3588);
do
{
v13 = *(_QWORD *)(*(_QWORD *)(a1 + 3400) + 8 * v11);
v16 = v13;
if ( v12 <= v10 )
{
sub_100011A50(a1 + 3424, &v16);
v12 = *(_DWORD *)(a1 + 3588) + 1;
*(_DWORD *)(a1 + 3588) = v12;
v10 = *(_DWORD *)(a1 + 3568);
LODWORD(v9) = *(_DWORD *)(a1 + 3564);
}
else
{
*(_QWORD *)(*(_QWORD *)(a1 + 3424) + 8LL * v10) = v13;
}
*(_DWORD *)(a1 + 3568) = ++v10;
++v11;
}
while ( v11 < (int)v9 );
if ( (int)v9 >= 1 && (*(_BYTE *)(v3 + 137) & 1) != 0 )
{
v14 = *(__int64 **)(a1 + 3400);
v9 = (unsigned int)v9;
do
{
v15 = *v14++;
*(float32x2_t *)(v15 + 1224) = vcvt_f32_f64(*(float64x2_t *)(v15 + 944));
*(_QWORD *)(v15 + 988) = *(_QWORD *)(v15 + 1152);
*(_WORD *)(v15 + 864) = 257;
--v9;
}
while ( v9 );
}
}
}
}