//
// CreateParticlePopup::ccTouchBegan from 0xafc890 to 0xafc9c4 (308 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CreateParticlePopup::ccTouchBegan @ 0xafc9d0
// > ??> @ 0x8c548
// > ??> @ 0x14b0160
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:01:18 +0000
//
__int64 __fastcall CreateParticlePopup::ccTouchBegan(__int64 a1, cocos2d::CCTouch *this, __int64 a3)
{
__int64 v6; // x1
__int64 v7; // x0
long double v8; // q0
long double v9; // q0
__int64 v11; // [xsp+60h] [xbp+60h] BYREF
__int64 v12; // [xsp+68h] [xbp+68h] BYREF
__int64 v13; // [xsp+70h] [xbp+70h] BYREF
_BYTE v14[16]; // [xsp+78h] [xbp+78h] BYREF
cocos2d::CCTouch::getLocation(&v11, this);
cocos2d::CCNode::convertToNodeSpace(&v12, *(cocos2d::CCNode **)(a1 + 792), (const cocos2d::CCPoint *)&v11);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, 0.0, 0.0, 120.0, 180.0);
if ( (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v14, (const cocos2d::CCPoint *)&v12) )
{
v6 = *(_QWORD *)(a1 + 712);
*(_DWORD *)(a1 + 728) = *((_DWORD *)this + 14);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6);
cocos2d::CCPoint::operator-(&v13, v7, &v12, v8);
cocos2d::CCPoint::operator=(a1 + 732, &v13);
*(__n128 *)&v9 = cocos2d::CCPoint::operator=(a1 + 732, &unk_155E048);
(*(void (__fastcall **)(__int64, cocos2d::CCTouch *, __int64, long double))(*(_QWORD *)a1 + 904LL))(
a1,
this,
a3,
v9);
}
return FLAlertLayer::ccTouchBegan(a1, (__int64)this, a3);
}