//
// cocos2d::CCSet::removeAllObjects from 0xad2d20 to 0xad2d84 (100 bytes)
//
// 2 xrefs:
// > cocos2d::CCSet::~CCSet @ 0xad2ee8
// > ??> @ 0x2ca78
//
// 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
//
void cocos2d::CCSet::removeAllObjects(cocos2d::CCSet *a1)
{
std::set *m_pSet; // x1
std::_Rb_tree_node_base *M_left; // x19
cocos2d::CCObject *i; // x0
std::set *v5; // x0
m_pSet = a1->m_pSet;
M_left = m_pSet->_M_t._M_impl._M_header._M_left;
if ( M_left != &m_pSet->_M_t._M_impl._M_header )
{
for ( i = *(cocos2d::CCObject **)&M_left[1]._M_color; i; i = (cocos2d::CCObject *)v5->_M_t._M_impl._M_header._M_right )
{
cocos2d::CCObject::release(i);
v5 = (std::set *)sub_CFAB74(M_left);
M_left = (std::_Rb_tree_node_base *)v5;
if ( v5 == (std::set *)&a1->m_pSet->_M_t._M_impl._M_header )
break;
}
}
}