//
// cocos2d::CCSet::anyObject from 0xad2df4 to 0xad2e80 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x762d8
//
// 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
//
cocos2d::CCObject *cocos2d::CCSet::anyObject(cocos2d::CCSet *a1)
{
std::set *m_pSet; // x19
cocos2d::CCObject *v2; // x20
__int64 M_left; // x0
std::_Rb_tree_node_base *p_M_header; // x19
cocos2d::CCObject *v6; // x1
m_pSet = a1->m_pSet;
if ( !m_pSet )
return nullptr;
v2 = nullptr;
if ( !m_pSet->_M_t._M_impl._M_node_count )
return v2;
M_left = (__int64)m_pSet->_M_t._M_impl._M_header._M_left;
p_M_header = &m_pSet->_M_t._M_impl._M_header;
if ( p_M_header == (std::_Rb_tree_node_base *)M_left )
return v2;
v2 = *(cocos2d::CCObject **)(M_left + 32);
if ( !v2 )
{
while ( 1 )
{
M_left = sub_CFAB74(M_left);
if ( p_M_header == (std::_Rb_tree_node_base *)M_left )
break;
v6 = *(cocos2d::CCObject **)(M_left + 32);
if ( v6 )
return v6;
}
return v2;
}
return *(cocos2d::CCObject **)(M_left + 32);
}