//
// BoomScrollLayer::ccTouchBegan from 0x56d1d0 to 0x56d2c4 (244 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x56d2d4
// > ??> @ 0x80ad8
// > ??> @ 0x1135760
//
// 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 v4; // w20
cocos2d::CCDirector *v7; // x0
char v8; // w0
__int64 v9; // x0
double v10; // d1
cocos2d::CCPoint v11; // [xsp+40h] [xbp+40h] BYREF
_QWORD v12[2]; // [xsp+48h] [xbp+48h] BYREF
cocos2d::CCPoint v13; // 0:kr08_8.8
v4 = *((_BYTE *)&a1->m_clippingRect + 16);
if ( v4 )
return 0;
cocos2d::CCTouch::getLocationInView(a2);
v7 = cocos2d::CCDirector::sharedDirector();
v13 = cocos2d::CCDirector::convertToGL(v7, &v11);
cocos2d::CCPoint::operator=(&v11, v12, v13.x, v13.y);
v8 = cocos2d::CCRect::containsPoint(&a1->m_rect, &v11);
if ( v8 && !a1->m_touch )
{
a1->m_touch = a2;
v4 = v8;
clock_gettime(0, (struct timespec *)v12);
a1->m_touchType = 0;
v9 = v12[1];
v10 = (double)v12[0];
a1->m_touchX = v11.x;
a1->m_touchTime = v10 + (double)v9 / 1000000000.0;
}
return v4;
}