//
// SetIDPopup::textChanged from 0x1002ac6b0 to 0x1002ac732 (130 bytes)
//
// 5 xrefs:
// > ??> @ 0x1008fbde8
// > ??> @ 0x1009004a0
// > ??> @ 0x100900c18
// > ??> @ 0x100901340
// > ??> @ 0x10091a440
//
// 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 SetIDPopup::textChanged(SetIDPopup *a1, CCTextInputNode *a2)
{
double v2; // xmm0_8
int m_value; // eax
char *v4; // r14
_QWORD v5[2]; // [rsp-30h] [rbp-30h] BYREF
char *v6; // [rsp-20h] [rbp-20h]
if ( !a1->m_disableDelegate )
{
CCTextInputNode::getString(v5, (__int64)a2, v2);
if ( (v5[0] & 1) != 0 )
{
v4 = v6;
a1->m_value = atoi(v6);
operator delete(v4);
m_value = a1->m_value;
}
else
{
m_value = atoi((const char *)v5 + 1);
}
if ( a1->m_maximum < m_value )
m_value = a1->m_maximum;
if ( a1->m_minimum > m_value )
m_value = a1->m_minimum;
a1->m_value = m_value;
((void (__fastcall *)(SetIDPopup *))a1->valueChanged)(a1);
}
}