//
// GJGameState::processStateTriggers from 0x9bf890 to 0x9bf984 (244 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x9ede08
// > ??> @ 0x9a900
//
// 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 12:58:28 +0000
//
void __fastcall GJGameState::processStateTriggers(GJGameState *this)
{
__int64 **v2; // x22
__int64 **v3; // x19
__int64 **v4; // x20
_QWORD *v5; // x0
__int64 **v6; // x0
__int64 *v7; // x0
__int64 **v8; // x0
bool v9; // zf
__int64 **v10; // x0
v2 = (__int64 **)((char *)this + 752);
v3 = *((__int64 ***)this + 93);
while ( v3 != v2 )
{
while ( *((_DWORD *)v3 + 9) < *((_DWORD *)this + 130) )
{
v4 = (__int64 **)v3[1];
if ( v4 )
{
while ( *v4 )
v4 = (__int64 **)*v4;
}
else
{
v8 = v3;
do
{
v4 = (__int64 **)v8[2];
v9 = v8 == (__int64 **)*v4;
v8 = v4;
}
while ( !v9 );
}
v5 = std::__tree_next *>(v3);
if ( v3 == *((__int64 ***)this + 93) )
*((_QWORD *)this + 93) = v5;
--*((_QWORD *)this + 95);
std::__tree_remove *>(*v2, (__int64 *)v3);
v6 = v3;
v3 = v4;
operator delete(v6);
if ( v4 == v2 )
return;
}
v7 = v3[1];
if ( v7 )
{
do
{
v3 = (__int64 **)v7;
v7 = (__int64 *)*v7;
}
while ( v7 );
}
else
{
v10 = v3;
do
{
v3 = (__int64 **)v3[2];
v9 = v10 == (__int64 **)*v3;
v10 = v3;
}
while ( !v9 );
}
}
}