//
// cocos2d::CCSet::containsObject from 0x1002412f4 to 0x100241340 (76 bytes)
//
// 3 xrefs:
// > sub_100155E94 @ 0x100155ecc
// > cocos2d::CCTouchDispatcher::touches @ 0x1001cdf6c
// > sub_10039BEA0 @ 0x10039bed8
//
// 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 11:01:24 +0000
//
bool __fastcall cocos2d::CCSet::containsObject(__int64 a1, unsigned __int64 a2)
{
__int64 v2; // x8
__int64 v3; // x8
__int64 v4; // x10
__int64 v5; // t1
__int64 v6; // x9
unsigned __int64 v7; // x11
bool v8; // cf
_BOOL4 v9; // w11
v2 = *(_QWORD *)(a1 + 56);
v5 = *(_QWORD *)(v2 + 8);
v3 = v2 + 8;
v4 = v5;
if ( !v5 )
goto LABEL_9;
v6 = v3;
do
{
v7 = *(_QWORD *)(v4 + 32);
v8 = v7 >= a2;
v9 = v7 < a2;
if ( v8 )
v6 = v4;
v4 = *(_QWORD *)(v4 + 8LL * v9);
}
while ( v4 );
if ( v6 == v3 || *(_QWORD *)(v6 + 32) > a2 )
LABEL_9:
v6 = v3;
return v6 != v3;
}