// // SetupTriggerPopup::shouldLimitValue from 0x9eb468 to 0x9eb664 (508 bytes) // // 2 xrefs: // > SetupTriggerPopup::valueChanged @ 0x9eb6fc // > @ 0xa4250 // // 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 // bool SetupTriggerPopup::shouldLimitValue(SetupTriggerPopup *a1, int a2) { std::map *p_m_shouldLimitValues; // x24 std::_rb_tree_base *p_m_header; // x22 std::_rb_tree_base *m_parent; // x0 std::_rb_tree_base *v6; // x19 std::_rb_tree_base *m_right; // x20 __int64 v8; // x0 int v9; // w1 __int64 v10; // x23 int *v11; // x26 int v12; // w25 __int64 insert_unique_pos; // x0 __int64 v14; // x0 std::_rb_tree_base *v15; // x2 _BOOL8 v16; // x0 std::_rb_tree_base *v18; // x1 std::_rb_tree_base *v19; // x2 p_m_shouldLimitValues = &a1->m_shouldLimitValues; p_m_header = &a1->m_shouldLimitValues.m_header; m_parent = a1->m_shouldLimitValues.m_header.m_parent; if ( !m_parent ) goto LABEL_23; v6 = p_m_header; do { while ( *(_DWORD *)&m_parent[1].m_isblack >= a2 ) { v6 = m_parent; m_parent = m_parent->m_left; if ( !m_parent ) goto LABEL_5; } m_parent = m_parent->m_right; } while ( m_parent ); LABEL_5: m_right = v6; if ( p_m_header == v6 ) { LABEL_23: v10 = operator new(0x28u); *(_DWORD *)(v10 + 32) = a2; *(_BYTE *)(v10 + 36) = 0; if ( a1->m_shouldLimitValues.m_nodecount ) { m_right = a1->m_shouldLimitValues.m_header.m_right; if ( a2 > *(_DWORD *)&m_right[1].m_isblack ) { insert_unique_pos = 0; goto LABEL_13; } } insert_unique_pos = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos( (__int64)p_m_shouldLimitValues, (int *)(v10 + 32)); v19 = (std::_rb_tree_base *)insert_unique_pos; m_right = v18; LABEL_31: if ( !v18 ) { m_right = v19; goto LABEL_22; } LABEL_13: if ( insert_unique_pos || p_m_header == m_right ) { v15 = m_right; v16 = 1; m_right = (std::_rb_tree_base *)v10; goto LABEL_17; } v9 = *(_DWORD *)(v10 + 32); v12 = *(_DWORD *)&m_right[1].m_isblack; LABEL_16: v15 = m_right; v16 = v9 < v12; m_right = (std::_rb_tree_base *)v10; LABEL_17: sub_CFAD74(v16, v10, v15, p_m_header); ++p_m_shouldLimitValues->m_nodecount; return *(&m_right[1].m_isblack + 4); } if ( a2 < *(_DWORD *)&v6[1].m_isblack ) { v8 = operator new(0x28u); *(_BYTE *)(v8 + 36) = 0; v9 = a2; v10 = v8; *(_DWORD *)(v8 + 32) = a2; v11 = (int *)(v8 + 32); v12 = *(_DWORD *)&v6[1].m_isblack; if ( a2 >= v12 ) { if ( a2 <= v12 ) { LABEL_22: operator delete((void *)v10); return *(&m_right[1].m_isblack + 4); } if ( v6 == a1->m_shouldLimitValues.m_header.m_right ) goto LABEL_16; insert_unique_pos = sub_CFAB14(v6); v9 = a2; if ( a2 < *(_DWORD *)(insert_unique_pos + 32) ) { if ( !v6->m_right ) goto LABEL_16; m_right = (std::_rb_tree_base *)insert_unique_pos; goto LABEL_13; } } else { insert_unique_pos = (__int64)a1->m_shouldLimitValues.m_header.m_left; if ( v6 == (std::_rb_tree_base *)insert_unique_pos ) goto LABEL_13; v14 = sub_CFABD4(v6); if ( a2 > *(_DWORD *)(v14 + 32) ) { if ( *(_QWORD *)(v14 + 24) ) { insert_unique_pos = (__int64)v6; } else { m_right = (std::_rb_tree_base *)v14; insert_unique_pos = 0; } goto LABEL_13; } } insert_unique_pos = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos( (__int64)p_m_shouldLimitValues, v11); v19 = (std::_rb_tree_base *)insert_unique_pos; m_right = v18; goto LABEL_31; } return *(&m_right[1].m_isblack + 4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source