//
// GJGameState::processStateTriggers from 0x46cc6e to 0x46ccb4 (70 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::update @ 0x497a86
//
// 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 *p_m_header; // r6
std::_rb_tree_base *m_left; // r4
int v4; // r7
void *v5; // r0
p_m_header = &a1->m_activatedObjectIDs.m_header;
m_left = a1->m_activatedObjectIDs.m_header.m_left;
while ( m_left != p_m_header )
{
if ( (int)m_left[1].m_left >= (signed int)a1->m_commandIndex )
{
m_left = (std::_rb_tree_base *)sub_761FA8(m_left);
}
else
{
v4 = sub_761FA8(m_left);
v5 = (void *)sub_7621E4(m_left, p_m_header);
m_left = (std::_rb_tree_base *)v4;
operator delete(v5);
--a1->m_activatedObjectIDs.m_nodecount;
}
}
}