//
// CreateParticlePopup::ccTouchBegan from 0x9c0aa8 to 0x9c0bdc (308 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CreateParticlePopup::ccTouchBegan @ 0x9c0be8
// > ??> @ 0x676e0
// > ??> @ 0x11c8940
//
// 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 CreateParticlePopup::ccTouchBegan(CreateParticlePopup *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
cocos2d::CCParticleSystemQuad *m_particle; // x1
__int64 v7; // x0
float v8; // s0
float v9; // s1
float v10; // s0
float v11; // s1
cocos2d::CCPoint v13; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCPoint v14; // [xsp+68h] [xbp+68h] BYREF
__int64 v15; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCRect v16; // [xsp+78h] [xbp+78h] BYREF
cocos2d::CCTouch::getLocation(a2);
cocos2d::CCNode::convertToNodeSpace(a1->m_previewLayer, &v13);
cocos2d::CCRect::CCRect(&v16, 0.0, 0.0, 120.0, 180.0);
if ( (unsigned __int8)cocos2d::CCRect::containsPoint(&v16, &v14) )
{
m_particle = a1->m_particle;
a1->m_touchID = a2->m_nId;
v7 = (__int64)m_particle->getPosition(m_particle);
cocos2d::CCPoint::operator-(&v15, v7, &v14);
cocos2d::CCPoint::operator=(&a1->m_touchDelta, v8, v9);
cocos2d::CCPoint::operator=(&a1->m_touchDelta, v10, v11);
a1->ccTouchMoved(a1, a2, a3);
}
return FLAlertLayer::ccTouchBegan(a1, a2, a3);
}