//
// cocos2d::CCSet::containsObject from 0x18000fc30 to 0x18000fc73 (67 bytes)
//
// 2 xrefs:
// > cocos2d::CCTouchDispatcher::touches @ 0x1800b702c
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:21 +0000
//
bool __fastcall cocos2d::CCSet::containsObject(cocos2d::CCSet *this, struct cocos2d::CCObject *a2)
{
__int64 *v2; // rax
__int64 *v3; // r8
__int64 *i; // rcx
v2 = **((__int64 ***)this + 7);
v3 = v2;
for ( i = (__int64 *)v2[1]; !*((_BYTE *)i + 25); i = (__int64 *)*i )
{
if ( i[4] >= (unsigned __int64)a2 )
v3 = i;
else
i += 2;
}
if ( *((_BYTE *)v3 + 25) || (unsigned __int64)a2 < v3[4] )
v3 = v2;
return v3 != v2;
}