//
// BoomScrollLayer::ccTouchBegan from 0x3c12e0 to 0x3c1388 (168 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x3c139c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:31 +0000
//
int __fastcall BoomScrollLayer::ccTouchBegan(int a1, int a2)
{
int v2; // r9
cocos2d::CCDirector *LocationInView; // r0
const cocos2d::CCPoint *v6; // r0
int v7; // r5
int v8; // s15
int v9; // r3
_DWORD v11[2]; // [sp+4h] [bp-14h] BYREF
float v12[2]; // [sp+Ch] [bp-Ch] BYREF
v2 = *(unsigned __int8 *)(a1 + 492);
if ( *(_BYTE *)(a1 + 492) )
return 0;
LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView((cocos2d::CCTouch *)v11);
v6 = (const cocos2d::CCPoint *)cocos2d::CCDirector::sharedDirector(LocationInView);
cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)v12, v6);
cocos2d::CCPoint::operator=(v11, v12);
v7 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 388), (const cocos2d::CCPoint *)v11);
if ( v7 )
{
if ( *(_DWORD *)(a1 + 360) )
{
return v2;
}
else
{
*(_DWORD *)(a1 + 360) = a2;
clock_gettime(0, (struct timespec *)v12);
v8 = LODWORD(v12[0]);
v9 = v11[0];
*(_DWORD *)(a1 + 352) = 0;
*(_DWORD *)(a1 + 328) = v9;
*(double *)(a1 + 368) = (double)v8 + (double)SLODWORD(v12[1]) / 1000000000.0;
}
}
return v7;
}