//
// sub_100353BC8 from 0x100353bc8 to 0x100353c08 (64 bytes)
//
// 2 xrefs:
// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x10014ee1c
// > cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x10014ef8c
//
// 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_100353BC8(unsigned int *a1, __int64 a2)
{
__int64 v2; // x8
_QWORD *v3; // x10
__int64 v4; // x9
v2 = *a1;
if ( !(_DWORD)v2 )
return 0;
v3 = *((_QWORD **)a1 + 2);
v4 = 0xFFFFFFFFLL;
while ( *v3 != a2 )
{
--v4;
++v3;
if ( !--v2 )
return 0;
}
return v4 != 0;
}