//
// ConfigureValuePopup::updateTextInputLabel from 0x100701d00 to 0x100701dd9 (217 bytes)
//
// 3 xrefs:
// > ConfigureValuePopup::init @ 0x100701b25
// > ConfigureValuePopup::sliderChanged @ 0x100701c95
// > ConfigureValuePopup::onArrow @ 0x100701cf5
//
// 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 12:35:58 +0000
//
void __fastcall ConfigureValuePopup::updateTextInputLabel(__int64 a1)
{
__int64 v1; // rax
const std::string::value_type *CString; // rax
_QWORD *v3; // r14
__int128 v4; // [rsp+0h] [rbp-50h] BYREF
void *__p; // [rsp+10h] [rbp-40h]
std::string v6; // [rsp+20h] [rbp-30h] BYREF
*(_BYTE *)(a1 + 677) = 1;
memset(&v6, 0, sizeof(v6));
if ( *(_DWORD *)(a1 + 660) == 1 )
v1 = sub_10088E820("%i", v4);
else
v1 = sub_10088E820("%.02f", v4);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v1);
std::string::assign(&v6, CString);
v3 = *(_QWORD **)(a1 + 688);
if ( (*(_BYTE *)&v6.__r_.__value_.__s.0 & 1) != 0 )
{
sub_10001AD30(&v4, v6.__r_.__value_.__l.__data_, v6.__r_.__value_.__l.__size_);
}
else
{
__p = v6.__r_.__value_.__l.__data_;
v4 = *(_OWORD *)&v6.__r_.__value_.__l.0;
}
CCTextInputNode::setString(v3, (__int64)&v4);
if ( (v4 & 1) != 0 )
operator delete(__p);
*(_BYTE *)(a1 + 677) = 0;
if ( (*(_BYTE *)&v6.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v6.__r_.__value_.__l.__data_);
}