//
// TableView::claimTouch from 0x696f34 to 0x696f9c (104 bytes)
//
// 2 xrefs:
// > TableView::cancelAndStoleTouch @ 0x697020
// > ??> @ 0x9fd60
//
// 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:38 +0000
//
__int64 __fastcall TableView::claimTouch(TableView *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,
(TableView *)((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;
}