//
// cocos2d::CCSet::containsObject from 0xad2d84 to 0xad2ddc (88 bytes)
//
// 4 xrefs:
// > BoomScrollLayer::claimTouch @ 0x56e5ec
// > TableView::claimTouch @ 0x57b880
// > cocos2d::CCTouchDispatcher::touches @ 0xb3f308
// > ??> @ 0x94248
//
// 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 cocos2d::CCSet::containsObject(cocos2d::CCSet *a1, cocos2d::CCObject *a2)
{
std::set *m_pSet; // x0
std::_Rb_tree_node_base *p_M_header; // x4
std::_Rb_tree_node_base *M_parent; // x0
std::_Rb_tree_node_base *v5; // x3
m_pSet = a1->m_pSet;
p_M_header = &m_pSet->_M_t._M_impl._M_header;
M_parent = m_pSet->_M_t._M_impl._M_header._M_parent;
if ( !M_parent )
return 0;
v5 = p_M_header;
do
{
while ( *(_QWORD *)&M_parent[1]._M_color >= (unsigned __int64)a2 )
{
v5 = M_parent;
M_parent = M_parent->_M_left;
if ( !M_parent )
return v5 != p_M_header && *(_QWORD *)&v5[1]._M_color <= (unsigned __int64)a2;
}
M_parent = M_parent->_M_right;
}
while ( M_parent );
return v5 != p_M_header && *(_QWORD *)&v5[1]._M_color <= (unsigned __int64)a2;
}