//
// SetIDPopup::updateTextInputLabel from 0x5d7a88 to 0x5d7b1e (150 bytes)
//
// 4 xrefs:
// > SetIDPopup::onItemIDArrow @ 0x5d7b62
// > SetIDPopup::onResetValue @ 0x5d7b6e
// > SetIDPopup::init @ 0x5dacdc
// > SetLevelOrderPopup::onOrderButton @ 0x6d4a62
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:09 +0000
//
int __fastcall SetIDPopup::updateTextInputLabel(SetIDPopup *this, int a2, int a3, int a4)
{
const char *v5; // r1
cocos2d::CCString *v6; // r0
const char *CString; // r0
int v8; // r7
const char *v9; // r8
size_t v10; // r0
int result; // r0
SetIDPopup *v12; // [sp+0h] [bp-10h] BYREF
int v13; // [sp+4h] [bp-Ch]
int v14; // [sp+8h] [bp-8h]
int v15; // [sp+Ch] [bp-4h]
v12 = this;
v13 = a2;
v14 = a3;
v15 = a4;
v5 = *((const char **)this + 131);
*((_BYTE *)this + 528) = 1;
if ( (int)v5 >= *((_DWORD *)this + 134) )
v5 = *((const char **)this + 134);
if ( (int)v5 < *((_DWORD *)this + 133) )
v5 = *((const char **)this + 133);
*((_DWORD *)this + 131) = v5;
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v5);
CString = (const char *)cocos2d::CCString::getCString(v6);
v12 = nullptr;
v13 = 0;
v14 = 0;
v8 = *((_DWORD *)this + 130);
v9 = CString;
v10 = strlen(CString);
std::string::__init((int *)&v12, v9, v10);
CCTextInputNode::setString(v8, (int)&v12);
std::string::~string((int)&v12);
result = (*(int (__fastcall **)(SetIDPopup *))(*(_DWORD *)this + 680))(this);
*((_BYTE *)this + 528) = 0;
return result;
}