//
// cocos2d::CCSet::containsObject from 0x18000fa70 to 0x18000fab3 (67 bytes)
//
// 2 xrefs:
// > cocos2d::CCTouchDispatcher::touches @ 0x1800b33a9
// > ??> @ 0x1801438a8
//
// 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 __fastcall cocos2d::CCSet::containsObject(
cocos2d::CCSet *this,
std::_Tree_node::value_type a2)
{
std::_Tree_val>::_Nodeptr Myhead; // rax
std::_Tree_val>::_Nodeptr v3; // r8
std::_Tree_node::_Nodeptr Parent; // rcx
Myhead = this->m_pSet->_Mypair._Myval2._Myval2._Myhead;
v3 = Myhead;
Parent = Myhead->_Parent;
while ( !Parent->_Isnil )
{
if ( Parent->_Myval >= a2 )
{
v3 = Parent;
Parent = Parent->_Left;
}
else
{
Parent = Parent->_Right;
}
}
if ( v3->_Isnil || a2 < v3->_Myval )
v3 = Myhead;
return v3 != Myhead;
}