//
// CreateParticlePopup::ccTouchMoved from 0xb00f58 to 0xb01384 (1068 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CreateParticlePopup::ccTouchMoved @ 0xb0139c
// > ??> @ 0xd30f0
// > ??> @ 0x14b0168
//
// 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:20 +0000
//
__int64 __fastcall CreateParticlePopup::ccTouchMoved(__int64 a1, cocos2d::CCTouch *this)
{
__int64 v2; // x20
cocos2d::CCTouch *v3; // x21
int v5; // w25
int v6; // w0
__int64 v7; // x0
long double v8; // q0
long double v9; // q0
long double v10; // q0
__int64 v11; // x0
long double v12; // q0
const cocos2d::CCPoint *v13; // x1
long double v14; // q0
__int64 v15; // x25
void (__fastcall *v16)(__int64, __int64 *); // x23
__int64 v17; // x0
long double v18; // q0
const cocos2d::CCPoint *v19; // x1
long double v20; // q0
const cocos2d::CCPoint *v21; // x1
long double v22; // q0
__int64 v23; // x0
long double v24; // q0
const cocos2d::CCPoint *v25; // x1
const cocos2d::CCPoint *v26; // x1
long double v27; // q0
long double v28; // q0
float v29; // s0
long double v30; // q0
__int64 v31; // [xsp+50h] [xbp+50h] BYREF
__int64 v32; // [xsp+58h] [xbp+58h] BYREF
__int64 x; // [xsp+60h] [xbp+60h] BYREF
__int64 v34[2]; // [xsp+68h] [xbp+68h] BYREF
v2 = a1;
v3 = this;
if ( *((_DWORD *)this + 14) == *(_DWORD *)(a1 + 728) )
{
cocos2d::CCTouch::getLocation(&v31, this);
cocos2d::CCNode::convertToNodeSpace(v34, *(cocos2d::CCNode **)(v2 + 792), (const cocos2d::CCPoint *)&v31);
cocos2d::CCPoint::operator=(&v31, v34);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v34, 0.0, 0.0, 120.0, 180.0);
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v2 + 712) + 1592LL))(*(_QWORD *)(v2 + 712));
if ( (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v34, (const cocos2d::CCPoint *)&v31) )
{
v6 = *(_DWORD *)(v2 + 828);
if ( v6 )
{
if ( v6 == 1 )
{
v17 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v2 + 712) + 192LL))(*(_QWORD *)(v2 + 712));
cocos2d::CCPoint::operator-(&x, v17, &v31, v18);
if ( v5 )
{
cocos2d::ccpLength((cocos2d *)&x, v19);
cocos2d::ccpLength((cocos2d *)&x, v21);
CreateParticlePopup::updateParticleValueForType(v2, 0x32u, nullptr, v22);
CreateParticlePopup::updateInputNodeStringForType(v2, 0x32u);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)v2, 0x32u);
}
else
{
*(float *)&v20 = fabsf(*(float *)&x);
CreateParticlePopup::updateParticleValueForType(v2, 0xAu, nullptr, v20);
*(float *)&v28 = fabsf(*((float *)&x + 1));
CreateParticlePopup::updateParticleValueForType(v2, 0xBu, nullptr, v28);
CreateParticlePopup::updateInputNodeStringForType(v2, 0xAu);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)v2, 0xAu);
CreateParticlePopup::updateInputNodeStringForType(v2, 0xBu);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)v2, 0xBu);
}
}
else if ( v5 || v6 != 2 )
{
if ( v6 == 2 )
{
if ( v5 )
{
v23 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v2 + 712) + 192LL))(*(_QWORD *)(v2 + 712));
cocos2d::CCPoint::operator-(&x, v23, &v31, v24);
cocos2d::ccpLength((cocos2d *)&x, v25);
cocos2d::ccpLength((cocos2d *)&x, v26);
CreateParticlePopup::updateParticleValueForType(v2, 0x34u, nullptr, v27);
CreateParticlePopup::updateInputNodeStringForType(v2, 0x34u);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)v2, 0x34u);
}
}
else if ( v6 == 3 )
{
v11 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v2 + 712) + 192LL))(*(_QWORD *)(v2 + 712));
cocos2d::CCPoint::operator-(&x, v11, &v31, v12);
if ( v5 )
{
*(float *)&v14 = atan2f(*((float *)&x + 1), *(float *)&x) * 57.296;
}
else
{
cocos2d::ccpLength((cocos2d *)&x, v13);
*(float *)&v30 = v29 * 4.0;
CreateParticlePopup::updateParticleValueForType(v2, 8u, nullptr, v30);
*(float *)&v14 = (float)(atan2f(*((float *)&x + 1), *(float *)&x) * 57.296) + 180.0;
}
if ( *(float *)&v14 <= 180.0 )
{
if ( *(float *)&v14 < -180.0 )
*(float *)&v14 = *(float *)&v14 + 360.0;
}
else
{
*(float *)&v14 = *(float *)&v14 - 360.0;
}
*(float *)&v14 = -*(float *)&v14;
CreateParticlePopup::updateParticleValueForType(v2, 6u, nullptr, v14);
if ( !v5 )
{
CreateParticlePopup::updateInputNodeStringForType(v2, 8u);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)v2, 8u);
}
CreateParticlePopup::updateInputNodeStringForType(v2, 6u);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)v2, 6u);
}
}
else
{
v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v2 + 712) + 192LL))(*(_QWORD *)(v2 + 712));
cocos2d::CCPoint::operator-(&v32, v7, &v31, v8);
*(__n128 *)&v9 = cocos2d::CCPoint::operator*(&v32, -10.0);
LODWORD(v9) = x;
CreateParticlePopup::updateParticleValueForType(v2, 0xCu, nullptr, v9);
LODWORD(v10) = HIDWORD(x);
CreateParticlePopup::updateParticleValueForType(v2, 0xDu, nullptr, v10);
CreateParticlePopup::updateInputNodeStringForType(v2, 0xCu);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)v2, 0xCu);
CreateParticlePopup::updateInputNodeStringForType(v2, 0xDu);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)v2, 0xDu);
}
}
else
{
v15 = *(_QWORD *)(v2 + 712);
v16 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL);
cocos2d::CCPoint::operator+(&x, &v31);
v16(v15, &x);
}
}
a1 = v2;
this = v3;
}
FLAlertLayer::ccTouchMoved(a1, (__int64)this);
return _stack_chk_guard;
}