// // GJEffectManager::removeTriggeredID from 0x8a85d8 to 0x8a8788 (432 bytes) // // 4 xrefs: // > GJBaseGameLayer::activateResetTrigger @ 0x865348 // > GJBaseGameLayer::activateResetTrigger @ 0x865370 // > GJBaseGameLayer::playerTouchedTrigger @ 0x887770 // > @ 0xc2820 // // 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 GJEffectManager::removeTriggeredID(GJEffectManager *a1, int a2, int a3) { std::_Rb_tree_node_base::_Base_ptr M_parent; // x20 std::_Rb_tree_node_base *p_M_header; // x21 std::_Rb_tree_node_base *v6; // x22 std::_Rb_tree_node_base::_Base_ptr v7; // x0 int M_color; // w3 int v9; // w3 std::_Rb_tree_node_base *v10; // x19 std::_Rb_tree_node_base::_Base_ptr M_left; // x0 std::_Rb_tree_node_base::_Base_ptr M_right; // x3 int v13; // w4 int v14; // w0 __int64 v15; // x2 std::_Rb_tree_node_base *v16; // x0 void *v17; // x0 std::set> *p_m_unkMap498; // x24 std::_Rb_tree_node_base::_Base_ptr v19; // x0 M_parent = a1->m_unkMap498._M_t._M_impl._M_header._M_parent; p_M_header = &a1->m_unkMap498._M_t._M_impl._M_header; if ( !M_parent ) { p_m_unkMap498 = &a1->m_unkMap498; if ( p_M_header == a1->m_unkMap498._M_t._M_impl._M_header._M_left ) { LABEL_30: a1->m_unkMap498._M_t._M_impl._M_header._M_left = p_M_header; a1->m_unkMap498._M_t._M_impl._M_header._M_right = p_M_header; a1->m_unkMap498._M_t._M_impl._M_header._M_parent = nullptr; p_m_unkMap498->_M_t._M_impl._M_node_count = 0; } return; } v6 = &a1->m_unkMap498._M_t._M_impl._M_header; v7 = a1->m_unkMap498._M_t._M_impl._M_header._M_parent; do { while ( 1 ) { M_color = v7[1]._M_color; if ( a2 <= M_color ) { if ( a2 < M_color ) goto LABEL_31; v9 = *((_DWORD *)&v7[1]._M_color + 1); if ( a3 <= v9 ) break; } v7 = v7->_M_right; if ( !v7 ) goto LABEL_26; } if ( a3 >= v9 ) { v10 = v7; M_left = v7->_M_left; M_right = v10->_M_right; while ( M_left ) { while ( 1 ) { v13 = M_left[1]._M_color; if ( a2 <= v13 && (a2 < v13 || a3 <= *((_DWORD *)&M_left[1]._M_color + 1)) ) break; M_left = M_left->_M_right; if ( !M_left ) goto LABEL_13; } v10 = M_left; M_left = M_left->_M_left; } LABEL_13: while ( M_right ) { while ( 1 ) { v14 = M_right[1]._M_color; if ( a2 >= v14 && (a2 > v14 || a3 >= *((_DWORD *)&M_right[1]._M_color + 1)) ) break; v6 = M_right; M_right = M_right->_M_left; if ( !M_right ) goto LABEL_18; } M_right = M_right->_M_right; } LABEL_18: if ( p_M_header == v6 && v10 == a1->m_unkMap498._M_t._M_impl._M_header._M_left ) goto LABEL_28; for ( ; v6 != v10; --a1->m_unkMap498._M_t._M_impl._M_node_count ) { v15 = sub_CFAB74(v10); v16 = v10; v10 = (std::_Rb_tree_node_base *)v15; v17 = (void *)sub_CFAF34(v16, p_M_header); operator delete(v17); } return; } LABEL_31: v6 = v7; v7 = v7->_M_left; } while ( v7 ); LABEL_26: if ( p_M_header == v6 && v6 == a1->m_unkMap498._M_t._M_impl._M_header._M_left ) { LABEL_28: p_m_unkMap498 = &a1->m_unkMap498; do { std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_erase( (__int64)&a1->m_unkMap498, M_parent->_M_right); v19 = M_parent; M_parent = M_parent->_M_left; operator delete(v19); } while ( M_parent ); goto LABEL_30; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source