//
// GJBaseGameLayer::triggerAreaEffectAnimation from 0x100290270 to 0x100290438 (456 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::triggerAreaEffect @ 0x10028ffd8
//
// 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:02 +0000
//
void __fastcall GJBaseGameLayer::triggerAreaEffectAnimation(__int64 a1, __int64 a2)
{
int v4; // w21
int v5; // w23
__int64 *v6; // x8
__int64 *v7; // x9
__int64 v8; // x22
__int64 v9; // x24
__int64 Group; // x0
unsigned int *v11; // x9
__int64 v12; // x8
__int64 *v13; // x22
unsigned __int64 v14; // x23
__int64 v15; // x24
int v16; // w8
__int64 *v17; // x9
__int64 v18; // x21
__int64 v19; // x27
__int64 *v20; // [xsp+8h] [xbp-58h]
v4 = *(_DWORD *)(a2 + 1464);
if ( *(_BYTE *)(a2 + 2036) != 1 )
{
Group = GJBaseGameLayer::getGroup(a1, *(_DWORD *)(a2 + 1464));
if ( !Group )
return;
v11 = *(unsigned int **)(Group + 56);
v12 = *v11;
if ( !(_DWORD)v12 )
return;
v13 = *((__int64 **)v11 + 2);
v14 = (unsigned __int64)&v13[v12 - 1];
while ( 1 )
{
v15 = *v13;
if ( !*v13 )
return;
if ( *(_DWORD *)(v15 + 928) == 45 )
{
v16 = *(_DWORD *)(v15 + 1028);
if ( v16 <= 3007 )
{
v17 = (__int64 *)(a1 + 1480);
if ( v16 == 3006 )
goto LABEL_31;
v17 = (__int64 *)(a1 + 1504);
if ( v16 == 3007 )
goto LABEL_31;
}
else
{
v17 = (__int64 *)(a1 + 1528);
if ( v16 == 3008 )
goto LABEL_31;
v17 = (__int64 *)(a1 + 1552);
if ( v16 == 3009 )
goto LABEL_31;
if ( v16 == 3010 )
{
v17 = (__int64 *)(a1 + 1576);
LABEL_31:
v18 = *v17;
v19 = v17[1];
while ( v18 != v19 )
{
if ( *(_QWORD *)(v18 + 168) == v15 )
sub_100053F18((float *)v18, a2);
v18 += 240;
}
}
}
}
if ( (unsigned __int64)++v13 > v14 )
return;
}
}
v5 = 0;
v20 = (__int64 *)(a1 + 1576);
do
{
v6 = v20;
if ( v5 == 3 )
v6 = (__int64 *)(a1 + 1552);
if ( v5 == 2 )
v6 = (__int64 *)(a1 + 1528);
if ( v5 )
v7 = (__int64 *)(a1 + 1504);
else
v7 = (__int64 *)(a1 + 1480);
if ( v5 <= 1 )
v6 = v7;
v8 = *v6;
v9 = v6[1];
while ( v8 != v9 )
{
if ( *(_DWORD *)(*(_QWORD *)(v8 + 168) + 1992LL) == v4 )
{
sub_100053F18((float *)v8, a2);
if ( v4 > 0 )
break;
}
v8 += 240;
}
++v5;
}
while ( v5 != 5 );
}