// // GameStatsManager::accountIDForIcon from 0x596b48 to 0x596bb4 (108 bytes) // // 1 xrefs: // > ItemInfoPopup::init @ 0x405486 // // 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 // int GameStatsManager::accountIDForIcon(GameStatsManager *a1, int a2, UnlockType a3) { std::_rb_tree_base *p_m_header; // r5 std::_rb_tree_base *m_parent; // r6 std::_rb_tree_base *v5; // r4 std::_rb_tree_base *m_right; // r3 int v8; // [sp+4h] [bp-Ch] BYREF UnlockType v9; // [sp+8h] [bp-8h] v8 = a2; v9 = a3; p_m_header = &a1->m_accountIDForIcon.m_header; m_parent = a1->m_accountIDForIcon.m_header.m_parent; v8 = a2; v9 = a3; v5 = &a1->m_accountIDForIcon.m_header; while ( m_parent ) { if ( std::operator<(&m_parent[1].m_isblack, &v8) ) { m_right = m_parent->m_right; m_parent = v5; } else { m_right = m_parent->m_left; } v5 = m_parent; m_parent = m_right; } if ( v5 != p_m_header && std::operator<(&v8, &v5[1].m_isblack) ) v5 = p_m_header; if ( v5 == p_m_header ) return 0; else return (int)v5[1].m_left; }
GD Web Decomp Icon

GD Web Decomp

Raw Source