//
// CreateParticlePopup::textChanged from 0xafeccc to 0xafede8 (284 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CreateParticlePopup::textChanged @ 0xafedec
// > ??> @ 0x8e0c0
// > ??> @ 0x14b0340
//
// 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:19 +0000
//
__int64 __fastcall CreateParticlePopup::textChanged(CreateParticlePopup *this, CCTextInputNode *a2)
{
float v5; // s8
long double v6; // q0
unsigned int v7; // w0
unsigned int v8; // w0
__int64 v9[2]; // [xsp+40h] [xbp+40h] BYREF
char *v10; // [xsp+50h] [xbp+50h]
if ( *((_BYTE *)this + 704) )
return _stack_chk_guard;
CCTextInputNode::getString(a2, v9);
if ( (v9[0] & 1) != 0 )
{
v5 = atof(v10);
if ( (v9[0] & 1) == 0 )
goto LABEL_5;
}
else
{
v5 = atof((const char *)v9 + 1);
if ( (v9[0] & 1) == 0 )
goto LABEL_5;
}
operator delete(v10);
LABEL_5:
if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 5 && v5 < 1.0 )
v5 = 1.0;
*(__n128 *)&v6 = ((__n128 (__fastcall *)(CCTextInputNode *))*(_QWORD *)(*(_QWORD *)a2 + 64LL))(a2);
*(float *)&v6 = v5;
CreateParticlePopup::updateParticleValueForType((__int64)this, v7, nullptr, v6);
v8 = (*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2);
CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)this, v8);
return _stack_chk_guard;
}