//
// CreateParticlePopup::textChanged from 0x1405c81d0 to 0x1405c8323 (339 bytes)
//
// 4 xrefs:
// > ??> @ 0x1407f9170
// > ??> @ 0x1408e09e0
// > ??> @ 0x1408e09f0
// > ??> @ 0x14092e358
//
// 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 11:34:51 +0000
//
void __fastcall CreateParticlePopup::textChanged(__int64 a1, _QWORD *a2)
{
__int64 v2; // rdi
_BYTE *v4; // rax
size_t v5; // r8
const char *v6; // rcx
char *v7; // rcx
unsigned int v8; // eax
__int64 v9; // rdx
unsigned int v10; // eax
char *String[2]; // [rsp+38h] [rbp-40h] BYREF
__int128 v12; // [rsp+48h] [rbp-30h]
v2 = a1 - 544;
if ( !*(_BYTE *)(a1 + 160) )
{
v4 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL);
*(_OWORD *)String = 0;
v5 = -1;
v12 = 0;
do
++v5;
while ( v4[v5] );
sub_14003D230(String, v4, v5);
v6 = (const char *)String;
if ( *((_QWORD *)&v12 + 1) > 0xFu )
v6 = String[0];
atof(v6);
if ( *((_QWORD *)&v12 + 1) > 0xFu )
{
v7 = String[0];
if ( (unsigned __int64)(*((_QWORD *)&v12 + 1) + 1LL) >= 0x1000 )
{
v7 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v7 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v7);
}
(*(__int64 (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2);
v8 = (*(__int64 (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2);
CreateParticlePopup::updateParticleValueForType(v2, v9, v8, 0);
v10 = (*(__int64 (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2);
CreateParticlePopup::updateSliderForType(v2, v10);
}
}