//
// cocos2d::CCSet::containsObject from 0xd451f0 to 0xd45248 (88 bytes)
//
// 4 xrefs:
// > BoomScrollLayer::claimTouch @ 0x68a774
// > TableView::claimTouch @ 0x696f6c
// > cocos2d::CCTouchDispatcher::touches @ 0xdb20d4
// > ??> @ 0xc3c70
//
// This function is hookable on this platform (idp: arm, 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 13:07:33 +0000
//
bool __fastcall cocos2d::CCSet::containsObject(cocos2d::CCSet *this, cocos2d::CCObject *a2)
{
_QWORD *v2; // x4
_QWORD *v3; // x0
_QWORD *v4; // x3
v2 = (_QWORD *)(*((_QWORD *)this + 7) + 8LL);
v3 = (_QWORD *)*v2;
if ( !*v2 )
return 0;
v4 = v2;
do
{
while ( v3[4] >= (unsigned __int64)a2 )
{
v4 = v3;
v3 = (_QWORD *)*v3;
if ( !v3 )
return v4 != v2 && v4[4] <= (unsigned __int64)a2;
}
v3 = (_QWORD *)v3[1];
}
while ( v3 );
return v4 != v2 && v4[4] <= (unsigned __int64)a2;
}