//
// sub_1002A9170 from 0x1002a9170 to 0x1002a91f8 (136 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::spawnGroup @ 0x100287c74
//
// 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:16 +0000
//
__int64 __fastcall sub_1002A9170(__int64 a1, int *a2)
{
__int64 *v2; // x8
int v3; // w9
int v4; // w10
__int64 result; // x0
int v6; // w11
int v7; // w12
int v8; // w12
int v9; // w12
v2 = *(__int64 **)(a1 + 8);
if ( v2 )
{
v3 = *a2;
v4 = a2[1];
result = 1;
v6 = a2[2];
do
{
v7 = *((_DWORD *)v2 + 7);
if ( v3 >= v7 )
{
if ( v7 >= v3 )
{
v8 = *((_DWORD *)v2 + 8);
if ( v4 < v8 || v8 >= v4 && v6 < *((_DWORD *)v2 + 9) )
goto LABEL_7;
v9 = *((_DWORD *)v2 + 8);
if ( v9 >= v4 && (v4 < v9 || *((_DWORD *)v2 + 9) >= v6) )
return result;
}
++v2;
}
LABEL_7:
v2 = (__int64 *)*v2;
}
while ( v2 );
}
return 0;
}