//
// sub_100155E94 from 0x100155e94 to 0x100155ef8 (100 bytes)
//
// 1 xrefs:
// > sub_100155EF8 @ 0x100155f7c
//
// This function is hookable on this platform (idp: arm, 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 10:59:41 +0000
//
__int64 __fastcall sub_100155E94(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 Handler_1; // x20
__int64 ClaimedTouches; // x0
__int64 result; // x0
__int64 v9; // x0
v4 = cocos2d::CCDirector::sharedDirector(a1);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);
Handler_1 = cocos2d::CCTouchDispatcher::findHandler_1(v5, a1 + 320);
ClaimedTouches = cocos2d::CCTargetedTouchHandler::getClaimedTouches(Handler_1);
result = cocos2d::CCSet::containsObject(ClaimedTouches, a2);
if ( (result & 1) == 0 )
{
v9 = cocos2d::CCTargetedTouchHandler::getClaimedTouches(Handler_1);
return cocos2d::CCSet::addObject(v9, a2);
}
return result;
}