//
// CreateParticlePopup::ccTouchBegan from 0x663da4 to 0x663e4c (168 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CreateParticlePopup::ccTouchBegan @ 0x663e60
//
// 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:55:39 +0000
//
int __fastcall CreateParticlePopup::ccTouchBegan(_DWORD *a1, int a2, int a3)
{
int v6; // r0
int v7; // r0
_BYTE v9[8]; // [sp+Ch] [bp-2Ch] BYREF
_BYTE v10[8]; // [sp+14h] [bp-24h] BYREF
_BYTE v11[8]; // [sp+1Ch] [bp-1Ch] BYREF
_BYTE v12[16]; // [sp+24h] [bp-14h] BYREF
cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v9);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v10, (const cocos2d::CCPoint *)a1[147]);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, 0.0, 0.0, 120.0, 180.0);
if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v12, (const cocos2d::CCPoint *)v10) )
{
v6 = a1[136];
a1[138] = *(_DWORD *)(a2 + 52);
v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 96))(v6);
cocos2d::CCPoint::operator-(v11, v7, v10);
cocos2d::CCPoint::operator=(a1 + 139, v11);
cocos2d::CCPoint::operator=(a1 + 139, &unk_D2D178);
(*(void (__fastcall **)(_DWORD *, int, int))(*a1 + 452))(a1, a2, a3);
}
return FLAlertLayer::ccTouchBegan(a1, a2, a3);
}