//
// sub_1800A1E40 from 0x1800a1e40 to 0x1800a1e69 (41 bytes)
//
// 2 xrefs:
// > cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x1800b64de
// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b660e
//
// 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:22:13 +0000
//
bool __fastcall sub_1800A1E40(__int64 a1, __int64 a2)
{
__int64 v2; // rax
v2 = 0;
if ( *(_DWORD *)a1 )
{
while ( *(_QWORD *)(*(_QWORD *)(a1 + 16) + 8 * v2) != a2 )
{
v2 = (unsigned int)(v2 + 1);
if ( (unsigned int)v2 >= *(_DWORD *)a1 )
goto LABEL_4;
}
}
else
{
LABEL_4:
LODWORD(v2) = -1;
}
return (_DWORD)v2 != -1;
}