//
// CreateParticlePopup::textChanged from 0x9c3368 to 0x9c34ac (324 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CreateParticlePopup::textChanged @ 0x9c34b0
// > ??> @ 0x68da8
// > ??> @ 0x11c8b10
//
// 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 CreateParticlePopup::textChanged(CreateParticlePopup *a1, CCTextInputNode *a2)
{
float v4; // s8
char *v5; // x0
gjParticleValue v6; // w0
gjParticleValue v7; // w0
unsigned int *v8; // x2
int v9; // w1
char *v10; // [xsp+40h] [xbp+40h] BYREF
if ( !a1->m_disableTextDelegate )
{
CCTextInputNode::getString(a2, (__int64)&v10);
v4 = atof(v10);
v5 = v10 - 24;
if ( v10 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v8 = (unsigned int *)(v10 - 8);
do
v9 = __ldaxr(v8);
while ( __stlxr(v9 - 1, v8) );
}
else
{
v9 = *((_DWORD *)v10 - 2);
*((_DWORD *)v10 - 2) = v9 - 1;
}
if ( v9 <= 0 )
operator delete(v5);
}
if ( a2->getTag(a2) == 5 && v4 < 1.0 )
v4 = 1.0;
v6 = a2->getTag(a2);
CreateParticlePopup::updateParticleValueForType(a1, v4, v6, nullptr);
v7 = a2->getTag(a2);
CreateParticlePopup::updateSliderForType(a1, v7);
}
}