//
// GJGameState::processStateTriggers from 0x5a2ede to 0x5a2f36 (88 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::update @ 0x5be0e4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:18 +0000
//
void __fastcall GJGameState::processStateTriggers(GJGameState *this)
{
int *v1; // r7
int *i; // r4
int *v4; // r0
int *v5; // r3
int *v6; // r6
v1 = (int *)((char *)this + 648);
for ( i = *((int **)this + 161); i != v1; i = v6 )
{
if ( i[6] >= *((_DWORD *)this + 120) )
{
v6 = std::__tree_next *>(i);
}
else
{
v4 = std::__tree_next *>(i);
v5 = *((int **)this + 161);
--*((_DWORD *)this + 163);
if ( v5 == i )
*((_DWORD *)this + 161) = v4;
v6 = v4;
std::__tree_remove *>(*((int **)this + 162), i);
operator delete(i);
}
}
}