//
// SetIDPopup::updateTextInputLabel from 0x14029be70 to 0x14029bf13 (163 bytes)
//
// 5 xrefs:
// > SetIDPopup::init @ 0x14029bc96
// > SetIDPopup::onItemIDArrow @ 0x14029bd49
// > SetIDPopup::onResetValue @ 0x14029bd5c
// > SetLevelOrderPopup::onOrderButton @ 0x1403091d2
// > ??> @ 0x1406d1dc0
//
// 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 SetIDPopup::updateTextInputLabel(SetIDPopup *a1)
{
int m_value; // eax
int m_maximum; // edx
cocos2d::CCString *v4; // rax
const char *CString; // rax
size_t v6; // r8
__int128 v7; // [rsp+20h] [rbp-28h] BYREF
__int64 v8; // [rsp+30h] [rbp-18h]
__int64 v9; // [rsp+38h] [rbp-10h]
m_value = a1->m_value;
m_maximum = a1->m_maximum;
a1->m_disableDelegate = 1;
if ( m_maximum >= m_value )
m_maximum = m_value;
if ( a1->m_minimum > m_maximum )
m_maximum = a1->m_minimum;
a1->m_value = m_maximum;
v4 = cocos2d::CCString::createWithFormat("%i", m_maximum);
CString = cocos2d::CCString::getCString(v4);
v7 = 0;
v8 = 0;
v6 = -1;
v9 = 0;
do
++v6;
while ( CString[v6] );
sub_14003A930(&v7, CString, v6);
CCTextInputNode::setString((__int64)a1->m_inputNode, &v7);
a1->valueChanged(a1);
a1->m_disableDelegate = 0;
}