//
// ConfigureValuePopup::textChanged from 0x140099350 to 0x140099551 (513 bytes)
//
// 4 xrefs:
// > ??> @ 0x140541a30
// > ??> @ 0x140669bac
// > ??> @ 0x140669bbc
// > ??> @ 0x1406c73b0
//
// 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 ConfigureValuePopup::textChanged(ConfigureValuePopup *a1, CCTextInputNode *a2)
{
cocos2d::CCLabelProtocol_vtbl *v3; // rax
_BYTE *v4; // rax
size_t v5; // r8
const char *v6; // rcx
int v7; // eax
unsigned __int64 v8; // rdx
char *v9; // rcx
float v10; // xmm0_4
unsigned int m_uReference; // xmm2_4
_BYTE *v12; // rax
size_t v13; // r8
const char *v14; // rcx
float v15; // xmm6_4
char *v16; // rcx
cocos2d::CCString *v17; // rax
Slider *v18; // rcx
float v19; // xmm0_4
float v20; // xmm1_4
char *String[2]; // [rsp+28h] [rbp-40h] BYREF
__int128 v22; // [rsp+38h] [rbp-30h]
if ( BYTE1(a1->m_uAutoReleaseCount) )
return;
LOBYTE(a1->m_uAutoReleaseCount) = 1;
v3 = a2->m_textField->__vftable;
if ( a1->m_uID == 1 )
{
v4 = (_BYTE *)((__int64 (*)(void))v3->getString)();
*(_OWORD *)String = 0;
v5 = -1;
v22 = 0;
do
++v5;
while ( v4[v5] );
sub_14003A930(String, v4, v5);
v6 = (const char *)String;
if ( *((_QWORD *)&v22 + 1) > 0xFu )
v6 = String[0];
v7 = atoi(v6);
v8 = *((_QWORD *)&v22 + 1);
*(float *)&a1->m_nLuaID = (float)v7;
if ( v8 > 0xF )
{
v9 = String[0];
if ( v8 + 1 >= 0x1000 )
{
v9 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v9 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v9);
}
v10 = fmaxf(*(float *)&a1->m_nTag, *(float *)&a1->m_nLuaID);
m_uReference = a1->m_uReference;
if ( v10 > *(float *)&m_uReference )
goto LABEL_25;
}
else
{
v12 = (_BYTE *)((__int64 (*)(void))v3->getString)();
*(_OWORD *)String = 0;
v13 = -1;
v22 = 0;
do
++v13;
while ( v12[v13] );
sub_14003A930(String, v12, v13);
v14 = (const char *)String;
if ( *((_QWORD *)&v22 + 1) > 0xFu )
v14 = String[0];
v15 = atof(v14);
if ( *((_QWORD *)&v22 + 1) > 0xFu )
{
v16 = String[0];
if ( (unsigned __int64)(*((_QWORD *)&v22 + 1) + 1LL) >= 0x1000 )
{
v16 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v16 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v16);
}
v17 = cocos2d::CCString::createWithFormat("%.02f", v15);
v10 = cocos2d::CCString::floatValue(v17);
}
*(float *)&m_uReference = v10;
LABEL_25:
a1->m_nLuaID = m_uReference;
v18 = *(Slider **)&a1->m_uOrderOfArrival;
if ( v18 )
{
v19 = 0.0;
v20 = fminf(
1.0,
(float)(*(float *)&m_uReference - *(float *)&a1->m_nTag)
/ (float)(*(float *)&a1->m_uReference - *(float *)&a1->m_nTag));
if ( v20 >= 0.0 )
v19 = v20;
Slider::setValue(v18, v19);
}
}