// // SetupTriggerPopup::shouldLimitValue from 0x10023e0c0 to 0x10023e179 (185 bytes) // // 0 xrefs: // // 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 __fastcall SetupTriggerPopup::shouldLimitValue(SetupTriggerPopup *a1, int a2) { std::__tree_end_node *>::pointer left; // rax std::__compressed_pair *>> *p_pair1; // r12 std::__compressed_pair *>> *v4; // r14 std::__tree_node_base *v5; // r13 std::__tree_end_node *> *v6; // rax left = a1->m_shouldLimitValues.__tree_.__pair1_.__value_.__left_; if ( left ) { while ( 1 ) { while ( 1 ) { v4 = (std::__compressed_pair *>> *)left; if ( *((_DWORD *)left + 7) <= a2 ) break; left = *(std::__tree_end_node *>::pointer *)left; p_pair1 = v4; if ( !v4->__value_.__left_ ) goto LABEL_8; } if ( *((_DWORD *)left + 7) >= a2 ) break; left = *((std::__tree_end_node *>::pointer *)left + 1); if ( !left ) { p_pair1 = v4 + 1; goto LABEL_8; } } } else { p_pair1 = &a1->m_shouldLimitValues.__tree_.__pair1_; v4 = &a1->m_shouldLimitValues.__tree_.__pair1_; LABEL_8: v5 = (std::__tree_node_base *)v4; v4 = (std::__compressed_pair *>> *)operator new(0x28u); HIDWORD(v4[3].__value_.__left_) = a2; LOBYTE(v4[4].__value_.__left_) = 0; *(_OWORD *)&v4->__value_.__left_ = 0; v4[2].__value_.__left_ = v5; p_pair1->__value_.__left_ = (std::__tree_end_node *>::pointer)v4; v6 = (std::__tree_end_node *> *)a1->m_shouldLimitValues.__tree_.__begin_node_->__left_; if ( v6 ) a1->m_shouldLimitValues.__tree_.__begin_node_ = v6; sub_100054DD0((__int64 *)a1->m_shouldLimitValues.__tree_.__pair1_.__value_.__left_, (__int64 *)v4); ++a1->m_shouldLimitValues.__tree_.__pair3_.__value_; } return (bool)v4[4].__value_.__left_; }
GD Web Decomp Icon

GD Web Decomp

Raw Source