//
// BoomScrollLayer::ccTouchBegan from 0x14003e760 to 0x14003e815 (181 bytes)
//
// 2 xrefs:
// > ??> @ 0x14052b690
// > ??> @ 0x1406c40c8
//
// 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)
{
cocos2d::CCDirector *v5; // rax
struct cocos2d::CCPoint v6; // rax
double v7; // xmm0_8
struct cocos2d::CCPoint v9; // [rsp+30h] [rbp+8h] BYREF
struct cocos2d::CCPoint v10; // [rsp+48h] [rbp+20h] BYREF
if ( LOBYTE(a1->m_eScriptType) )
return 0;
cocos2d::CCTouch::getLocationInView(a2);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector();
v6 = cocos2d::CCDirector::convertToGL(v5, &v10);
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v9, v6);
if ( !cocos2d::CCRect::containsPoint((cocos2d::CCRect *)&a1->m_sInverse.ty, &v9) || *(_QWORD *)&a1->m_sTransform.b )
return 0;
*(_QWORD *)&a1->m_sTransform.b = a2;
v7 = sub_14003CF30();
a1->m_obAnchorPoint.x = v9.x;
*(double *)&a1->m_sTransform.ty = v7;
a1->m_sAdditionalTransform.tx = 0.0;
return 1;
}