//
// cocos2d::CCSet::anyObject from 0x100898e40 to 0x100898eb1 (113 bytes)
//
// 1 xrefs:
// > cocos2d::CCTouchDispatcher::touchesBegan @ 0x1004c8692
//
// 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
//
__int64 __fastcall cocos2d::CCSet::anyObject(__int64 a1)
{
_QWORD *v1; // rcx
_QWORD *v2; // rdx
_QWORD *v3; // rcx
__int64 result; // rax
_QWORD *v5; // rsi
_QWORD *v6; // rax
bool v7; // zf
v1 = *(_QWORD **)(a1 + 56);
if ( !v1 )
return 0;
if ( !v1[2] )
return 0;
v2 = (_QWORD *)*v1;
v3 = v1 + 1;
if ( v2 == v3 )
return 0;
while ( 1 )
{
result = v2[4];
if ( result )
break;
v5 = (_QWORD *)v2[1];
if ( v5 )
{
do
{
v6 = v5;
v5 = (_QWORD *)*v5;
}
while ( v5 );
}
else
{
do
{
v6 = (_QWORD *)v2[2];
v7 = *v6 == (_QWORD)v2;
v2 = v6;
}
while ( !v7 );
}
v2 = v6;
if ( v6 == v3 )
return 0;
}
return result;
}