//
// GJBaseGameLayer::activateResetTrigger from 0x1002976d8 to 0x1002977c4 (236 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x10042bbd0
//
// 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:06 +0000
//
__int64 __fastcall GJBaseGameLayer::activateResetTrigger(__int64 *a1, __int64 a2)
{
__int64 result; // x0
__int64 v4; // x20
unsigned int *v5; // x9
__int64 v6; // x8
unsigned int **v7; // x21
unsigned __int64 v8; // x22
unsigned int *v9; // x20
__int64 v10; // x0
unsigned int v11; // w1
__int64 v12; // x2
result = GJBaseGameLayer::getGroup((__int64)a1, *(_DWORD *)(a2 + 1464));
if ( result )
{
v4 = result;
result = sub_1002E757C(result);
if ( (_DWORD)result )
{
v5 = *(unsigned int **)(v4 + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((unsigned int ***)v5 + 2);
v8 = (unsigned __int64)&v7[v6 - 1];
do
{
v9 = *v7;
if ( !*v7 )
return result;
if ( v9[257] == 2063 )
{
sub_100015054(a1[269], v9[229], *(unsigned int *)(a1[407] + 916));
v10 = a1[269];
v11 = v9[229];
v12 = *(unsigned int *)(a1[408] + 916);
}
else
{
if ( (*(unsigned int (__fastcall **)(unsigned int *))(*(_QWORD *)v9 + 1800LL))(*v7) != 30 )
{
result = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)v9 + 1800LL))(v9);
if ( (_DWORD)result != 21 )
goto LABEL_12;
}
v10 = a1[269];
v11 = v9[229];
v12 = 0;
}
sub_100015054(v10, v11, v12);
result = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)v9 + 1512LL))(v9);
LABEL_12:
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
}
}
return result;
}