//
// SetIDPopup::textChanged from 0x1002de740 to 0x1002de7d4 (148 bytes)
//
// 6 xrefs:
// > sub_1002DE7D4 @ 0x1002de7d8
// > ??> @ 0x1007cd0b8
// > ??> @ 0x1007dc3b0
// > ??> @ 0x1007e0a58
// > ??> @ 0x1007e11d0
// > ??> @ 0x1007e18f8
//
// 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)
{
int m_value; // w0
char *v4; // x20
int m_minimum; // w8
int m_maximum; // w9
char *v7[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
if ( !a1->m_disableDelegate )
{
CCTextInputNode::getString((__int64)a2, v7);
if ( v8 < 0 )
{
v4 = v7[0];
a1->m_value = atoi(v7[0]);
operator delete(v4);
m_value = a1->m_value;
}
else
{
m_value = atoi((const char *)v7);
}
m_minimum = a1->m_minimum;
m_maximum = a1->m_maximum;
if ( m_maximum >= m_value )
m_maximum = m_value;
if ( m_minimum <= m_maximum )
m_minimum = m_maximum;
a1->m_value = m_minimum;
((void (__fastcall *)(SetIDPopup *))a1->valueChanged)(a1);
}
}