//
// sub_18009E1B0 from 0x18009e1b0 to 0x18009e1d9 (41 bytes)
//
// 2 xrefs:
// > cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x1800b2ace
// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b2bb4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall sub_18009E1B0(__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;
}