//
// SongInfoObject::containsTag from 0x82de94 to 0x82dee8 (84 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::filterMusicByTag @ 0x82df48
// > ??> @ 0x4cb30
//
// 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 SongInfoObject::containsTag(SongInfoObject *a1, int a2)
{
std::_Rb_tree_node_base *p_M_header; // x4
std::_Rb_tree_node_base::_Base_ptr M_parent; // x0
std::_Rb_tree_node_base *v4; // x3
p_M_header = &a1->m_tags._M_t._M_impl._M_header;
M_parent = a1->m_tags._M_t._M_impl._M_header._M_parent;
if ( !M_parent )
return 0;
v4 = p_M_header;
do
{
while ( (int)M_parent[1]._M_color >= a2 )
{
v4 = M_parent;
M_parent = M_parent->_M_left;
if ( !M_parent )
return v4 != p_M_header && (int)v4[1]._M_color <= a2;
}
M_parent = M_parent->_M_right;
}
while ( M_parent );
return v4 != p_M_header && (int)v4[1]._M_color <= a2;
}