//
// CreateParticlePopup::textChanged from 0x1002d07f8 to 0x1002d08d8 (224 bytes)
//
// 2 xrefs:
// > sub_1002D08D8 @ 0x1002d08dc
// > ??> @ 0x1007d78e0
//
// 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
//
void __fastcall CreateParticlePopup::textChanged(CreateParticlePopup *a1, CCTextInputNode *a2)
{
double v4; // d8
char *v5; // x21
float v6; // s8
int v7; // w0
gjParticleValue v9; // w0
gjParticleValue v10; // w0
char *v11[2]; // [xsp+8h] [xbp-48h] BYREF
char v12; // [xsp+1Fh] [xbp-31h]
if ( !a1->m_disableTextDelegate )
{
CCTextInputNode::getString((__int64)a2, v11);
if ( v12 < 0 )
{
v5 = v11[0];
v4 = atof(v11[0]);
operator delete(v5);
}
else
{
v4 = atof((const char *)v11);
}
v6 = v4;
v7 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);
if ( v6 < 1.0 && v7 == 5 )
v6 = 1.0;
v9 = ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);
CreateParticlePopup::updateParticleValueForType(a1, v6, v9, nullptr);
v10 = ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);
CreateParticlePopup::updateSliderForType(a1, v10);
}
}