//
// GJGameState::processStateTriggers from 0x85699c to 0x856a28 (140 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x89e248
// > ??> @ 0x73140
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJGameState::processStateTriggers(GJGameState *a1)
{
std::_rb_tree_base *m_left; // x19
std::_rb_tree_base *p_m_header; // x21
__int64 v4; // x0
__int64 v5; // x2
std::_rb_tree_base *v6; // x0
void *v7; // x0
m_left = a1->m_activatedObjectIDs.m_header.m_left;
p_m_header = &a1->m_activatedObjectIDs.m_header;
while ( 1 )
{
v4 = (__int64)m_left;
if ( m_left == p_m_header )
break;
while ( SLODWORD(m_left[1].m_parent) >= (signed int)a1->m_commandIndex )
{
v4 = sub_CFAB14(v4);
m_left = (std::_rb_tree_base *)v4;
if ( (std::_rb_tree_base *)v4 == p_m_header )
return;
}
v5 = sub_CFAB14(m_left);
v6 = m_left;
m_left = (std::_rb_tree_base *)v5;
v7 = (void *)sub_CFAF34(v6, p_m_header);
operator delete(v7);
--a1->m_activatedObjectIDs.m_nodecount;
}
}