//
// CreateParticlePopup::textChanged from 0x100476750 to 0x100476809 (185 bytes)
//
// 2 xrefs:
// > sub_100476810 @ 0x10047681c
// > ??> @ 0x10093a4c8
//
// 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 v2; // xmm0_8
double v3; // xmm0_8
char *v4; // r14
float v5; // xmm0_4
gjParticleValue v6; // eax
gjParticleValue v7; // eax
_QWORD v8[2]; // [rsp-40h] [rbp-40h] BYREF
char *v9; // [rsp-30h] [rbp-30h]
double v10; // [rsp-28h] [rbp-28h]
if ( !a1->m_disableTextDelegate )
{
CCTextInputNode::getString(v8, (__int64)a2, v2);
if ( (v8[0] & 1) != 0 )
{
v4 = v9;
v10 = atof(v9);
operator delete(v4);
v3 = v10;
}
else
{
v3 = atof((const char *)v8 + 1);
}
v5 = v3;
*(float *)&v10 = v5;
if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) == 5 )
LODWORD(v10) = fmaxf(1.0, *(float *)&v10);
v6 = ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);
CreateParticlePopup::updateParticleValueForType(a1, *(float *)&v10, v6, nullptr);
v7 = ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);
CreateParticlePopup::updateSliderForType(a1, v7);
}
}