//
// CreateParticlePopup::textChanged from 0x10046afb0 to 0x10046b069 (185 bytes)
//
// 2 xrefs:
// > sub_10046B070 @ 0x10046b07c
// > ??> @ 0x100b44650
//
// This function is hookable on this platform (idp: pc, 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 12:30:31 +0000
//
void __fastcall CreateParticlePopup::textChanged(__int64 a1, __int64 a2)
{
double v2; // xmm0_8
char *v3; // r14
float v4; // xmm0_4
unsigned int v5; // eax
float v6; // xmm0_4
unsigned int v7; // eax
_QWORD v8[2]; // [rsp-40h] [rbp-40h] BYREF
char *v9; // [rsp-30h] [rbp-30h]
double v10; // [rsp-28h] [rbp-28h]
if ( !*(_BYTE *)(a1 + 704) )
{
CCTextInputNode::getString(v8, a2);
if ( (v8[0] & 1) != 0 )
{
v3 = v9;
v10 = atof(v9);
operator delete(v3);
v2 = v10;
}
else
{
v2 = atof((const char *)v8 + 1);
}
v4 = v2;
*(float *)&v10 = v4;
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 5 )
LODWORD(v10) = fmaxf(1.0, *(float *)&v10);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
CreateParticlePopup::updateParticleValueForType(a1, v5, nullptr, (__m128)LODWORD(v10));
v6 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
CreateParticlePopup::updateSliderForType(a1, v7, v6);
}
}