//
// BoomScrollLayer::claimTouch from 0x68a73c to 0x68a7a4 (104 bytes)
//
// 2 xrefs:
// > BoomScrollLayer::cancelAndStoleTouch @ 0x68a828
// > ??> @ 0xe74a8
//
// 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 12:50:32 +0000
//
__int64 __fastcall BoomScrollLayer::claimTouch(BoomScrollLayer *this, cocos2d::CCTouch *a2)
{
__int64 v4; // x0
cocos2d::CCTouchDispatcher *v5; // x0
cocos2d::CCTargetedTouchHandler *Handler; // x20
cocos2d::CCSet *ClaimedTouches; // x0
__int64 result; // x0
cocos2d::CCSet *v9; // x0
v4 = cocos2d::CCDirector::sharedDirector(this);
v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);
Handler = (cocos2d::CCTargetedTouchHandler *)cocos2d::CCTouchDispatcher::findHandler(
v5,
(BoomScrollLayer *)((char *)this + 320));
ClaimedTouches = (cocos2d::CCSet *)cocos2d::CCTargetedTouchHandler::getClaimedTouches(Handler);
result = (unsigned __int8)cocos2d::CCSet::containsObject(ClaimedTouches, a2);
if ( !(_BYTE)result )
{
v9 = (cocos2d::CCSet *)cocos2d::CCTargetedTouchHandler::getClaimedTouches(Handler);
return cocos2d::CCSet::addObject(v9, a2);
}
return result;
}