//
// cocos2d::CCSet::anyObject from 0x18000fb80 to 0x18000fc0b (139 bytes)
//
// 2 xrefs:
// > cocos2d::CCTouchDispatcher::touchesBegan @ 0x1800b7396
// > ??> @ 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
//
struct cocos2d::CCObject *__fastcall cocos2d::CCSet::anyObject(cocos2d::CCSet *this)
{
__int64 v1; // r8
_QWORD *v2; // rax
__int64 **v3; // rdx
__int64 i; // rcx
__int64 *j; // rdx
v1 = *((_QWORD *)this + 7);
if ( !v1 )
return nullptr;
if ( !*(_QWORD *)(v1 + 8) )
return nullptr;
v2 = **(_QWORD ***)v1;
if ( v2 == *(_QWORD **)v1 )
return nullptr;
while ( !v2[4] )
{
v3 = (__int64 **)v2[2];
if ( *((_BYTE *)v3 + 25) )
{
for ( i = v2[1]; !*(_BYTE *)(i + 25); i = *(_QWORD *)(i + 8) )
{
if ( v2 != *(_QWORD **)(i + 16) )
break;
v2 = (_QWORD *)i;
}
v2 = (_QWORD *)i;
}
else
{
v2 = (_QWORD *)v2[2];
for ( j = *v3; !*((_BYTE *)j + 25); j = (__int64 *)*j )
v2 = j;
}
if ( v2 == *(_QWORD **)v1 )
return nullptr;
}
return (struct cocos2d::CCObject *)v2[4];
}