//
// BoomScrollLayer::ccTouchBegan from 0x6892b8 to 0x6893ac (244 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x6893bc
// > ??> @ 0xab460
// > ??> @ 0x1412df0
//
// 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::ccTouchBegan(__int64 a1, cocos2d::CCTouch *this)
{
unsigned int v4; // w20
cocos2d::CCDirector *LocationInView; // x0
cocos2d::CCDirector *v7; // x0
unsigned __int8 v8; // w0
__int64 v9; // x0
double v10; // d1
__int64 v11; // [xsp+40h] [xbp+40h] BYREF
_QWORD v12[2]; // [xsp+48h] [xbp+48h] BYREF
v4 = *(unsigned __int8 *)(a1 + 628);
if ( *(_BYTE *)(a1 + 628) )
{
return 0;
}
else
{
LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView(&v11, this);
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(LocationInView);
cocos2d::CCDirector::convertToGL(v7, (const cocos2d::CCPoint *)&v11);
cocos2d::CCPoint::operator=(&v11, v12);
v8 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 512), (const cocos2d::CCPoint *)&v11);
if ( v8 && !*(_QWORD *)(a1 + 472) )
{
*(_QWORD *)(a1 + 472) = this;
v4 = v8;
clock_gettime(0, (struct timespec *)v12);
*(_DWORD *)(a1 + 460) = 0;
v9 = v12[1];
v10 = (double)v12[0];
*(_DWORD *)(a1 + 428) = v11;
*(double *)(a1 + 488) = v10 + (double)v9 / 1000000000.0;
}
}
return v4;
}