//
// BoomScrollLayer::cancelAndStoleTouch from 0x1003903b0 to 0x10039047d (205 bytes)
//
// 1 xrefs:
// > BoomScrollLayer::ccTouchMoved @ 0x10039081a
//
// This function is hookable on this platform (idp: pc, 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:29:13 +0000
//
__int64 __fastcall BoomScrollLayer::cancelAndStoleTouch(__int64 a1, __int64 a2, __int64 a3)
{
void *v5; // r12
__int64 v6; // rax
__int64 v7; // rdi
__int64 v8; // rax
__int64 v9; // rax
__int64 Handler_1; // r14
__int64 ClaimedTouches; // rax
__int64 result; // rax
__int64 v13; // rax
v5 = operator new(0x40u);
cocos2d::CCSet::CCSet(v5);
cocos2d::CCSet::addObject(v5, a2);
cocos2d::CCObject::autorelease(v5);
*(_BYTE *)(a1 + 464) = 1;
v6 = cocos2d::CCDirector::sharedDirector(v5, a2);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 160LL))(v6);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v7 + 104LL))(v7, v5, a3);
*(_BYTE *)(a1 + 464) = 0;
v8 = cocos2d::CCDirector::sharedDirector(v7, v5);
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 160LL))(v8);
Handler_1 = cocos2d::CCTouchDispatcher::findHandler_1(v9, a1 + 320);
ClaimedTouches = cocos2d::CCTargetedTouchHandler::getClaimedTouches(Handler_1);
result = cocos2d::CCSet::containsObject(ClaimedTouches, a2);
if ( !(_BYTE)result )
{
v13 = cocos2d::CCTargetedTouchHandler::getClaimedTouches(Handler_1);
return cocos2d::CCSet::addObject(v13, a2);
}
return result;
}