//
// BoomScrollLayer::ccTouchBegan from 0x2e1c50 to 0x2e1cf8 (168 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x2e1d0c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool BoomScrollLayer::ccTouchBegan(BoomScrollLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
char v3; // r9
cocos2d::CCDirector *v6; // r0
int v7; // r5
float x; // s15
float v9; // r3
cocos2d::CCPoint v11; // [sp+4h] [bp-14h] BYREF
cocos2d::CCPoint v12; // [sp+Ch] [bp-Ch] BYREF
v3 = *((_BYTE *)&a1->m_clippingRect + 16);
if ( v3 )
{
LOBYTE(v7) = 0;
}
else
{
cocos2d::CCTouch::getLocationInView(&v11, a2);
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToGL(&v12, v6, &v11);
cocos2d::CCPoint::operator=(&v11, &v12);
v7 = cocos2d::CCRect::containsPoint(&a1->m_rect, &v11);
if ( v7 )
{
if ( a1->m_touch )
{
LOBYTE(v7) = v3;
}
else
{
a1->m_touch = a2;
clock_gettime(0, (struct timespec *)&v12);
x = v12.x;
v9 = v11.x;
a1->m_touchType = 0;
a1->m_touchX = v9;
a1->m_touchTime = (double)SLODWORD(x) + (double)SLODWORD(v12.y) / 1000000000.0;
}
}
}
return v7;
}