//
// cocos2d::CCSet::containsObject from 0x100898dd0 to 0x100898e1d (77 bytes)
//
// 5 xrefs:
// > sub_100390340 @ 0x100390381
// > BoomScrollLayer::cancelAndStoleTouch @ 0x100390450
// > cocos2d::CCTouchDispatcher::touches @ 0x1004c8207
// > sub_1006FF300 @ 0x1006ff341
// > TableView::cancelAndStoleTouch @ 0x1006ff410
//
// 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 12:37:08 +0000
//
bool __fastcall cocos2d::CCSet::containsObject(__int64 a1, unsigned __int64 a2)
{
__int64 v2; // rax
__int64 v3; // rdx
__int64 v4; // rax
__int64 v5; // rcx
v2 = *(_QWORD *)(a1 + 56);
v3 = *(_QWORD *)(v2 + 8);
v4 = v2 + 8;
if ( !v3 )
goto LABEL_8;
v5 = v4;
do
{
if ( *(_QWORD *)(v3 + 32) >= a2 )
v5 = v3;
v3 = *(_QWORD *)(v3 + 8LL * (*(_QWORD *)(v3 + 32) < a2));
}
while ( v3 );
if ( v5 == v4 || *(_QWORD *)(v5 + 32) > a2 )
LABEL_8:
v5 = v4;
return v5 != v4;
}