//
// SetupShakePopup::textChanged from 0x140456100 to 0x1404564b2 (946 bytes)
//
// 4 xrefs:
// > ??> @ 0x1405f2c80
// > ??> @ 0x1406a3504
// > ??> @ 0x1406a3538
// > ??> @ 0x1406da91c
//
// 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 SetupShakePopup::textChanged(SetupShakePopup *a1, CCTextInputNode *a2)
{
const char *v4; // rax
size_t v5; // r8
const char *v6; // rcx
float v7; // xmm6_4
char *v8; // rcx
cocos2d::CCString *v9; // rax
float v10; // xmm7_4
float v11; // xmm1_4
bool v12; // zf
cocos2d::CCLabelProtocol_vtbl *v13; // rax
_BYTE *v14; // rax
size_t v15; // r8
const char *v16; // rcx
float v17; // xmm6_4
char *v18; // rcx
cocos2d::CCString *v19; // rax
float v20; // xmm6_4
float v21; // xmm1_4
cocos2d::CCKeypadDelegate_vtbl *v22; // rcx
_BYTE *v23; // rax
size_t v24; // r8
const char *v25; // rcx
float v26; // xmm6_4
char *v27; // rcx
cocos2d::CCString *v28; // rax
float v29; // xmm1_4
char *String[2]; // [rsp+28h] [rbp-48h] BYREF
__int128 v31; // [rsp+38h] [rbp-38h]
if ( !LOBYTE(a1->m_fSkewX) )
{
if ( a2->getTag(a2) == 5 )
{
v4 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);
*(_OWORD *)String = 0;
v5 = -1;
v31 = 0;
do
++v5;
while ( v4[v5] );
sub_14003A930(String, v4, v5);
v6 = (const char *)String;
if ( *((_QWORD *)&v31 + 1) > 0xFu )
v6 = String[0];
v7 = atof(v6);
if ( *((_QWORD *)&v31 + 1) > 0xFu )
{
v8 = String[0];
if ( (unsigned __int64)(*((_QWORD *)&v31 + 1) + 1LL) >= 0x1000 )
{
v8 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v8 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v8);
}
v9 = cocos2d::CCString::createWithFormat("%.02f", v7);
v10 = 0.0;
*(float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = fminf(10.0, fmaxf(0.0, cocos2d::CCString::floatValue(v9)));
GJFollowCommandLayer::updateDuration((__int64)&a1[-1].m_pScriptKeypadHandlerEntry);
v11 = fminf(
1.0,
*(float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable
/ 10.0);
if ( v11 >= 0.0 )
v10 = v11;
Slider::setValue(*(Slider **)&a1->m_bUseChildIndex, v10);
}
else
{
v12 = a2->getTag(a2) == 8;
v13 = a2->m_textField->__vftable;
if ( v12 )
{
v14 = (_BYTE *)((__int64 (*)(void))v13->getString)();
*(_OWORD *)String = 0;
v15 = -1;
v31 = 0;
do
++v15;
while ( v14[v15] );
sub_14003A930(String, v14, v15);
v16 = (const char *)String;
if ( *((_QWORD *)&v31 + 1) > 0xFu )
v16 = String[0];
v17 = atof(v16);
if ( *((_QWORD *)&v31 + 1) > 0xFu )
{
v18 = String[0];
if ( (unsigned __int64)(*((_QWORD *)&v31 + 1) + 1LL) >= 0x1000 )
{
v18 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v18 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v18);
}
v19 = cocos2d::CCString::createWithFormat("%.02f", v17);
v20 = 0.0;
*(float *)&a1->m_pScriptTouchHandlerEntry = fminf(0.2, fmaxf(0.0, cocos2d::CCString::floatValue(v19)));
SetupShakePopup::updateInterval((SetupShakePopup *)((char *)a1 - 632));
v21 = fminf(
1.0,
*(float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable
/ 0.1);
if ( v21 >= 0.0 )
v20 = v21;
v22 = *(cocos2d::CCKeypadDelegate_vtbl **)&a1->m_bTouchEnabled;
}
else
{
v23 = (_BYTE *)((__int64 (*)(void))v13->getString)();
*(_OWORD *)String = 0;
v24 = -1;
v31 = 0;
do
++v24;
while ( v23[v24] );
sub_14003A930(String, v23, v24);
v25 = (const char *)String;
if ( *((_QWORD *)&v31 + 1) > 0xFu )
v25 = String[0];
v26 = atof(v25);
if ( *((_QWORD *)&v31 + 1) > 0xFu )
{
v27 = String[0];
if ( (unsigned __int64)(*((_QWORD *)&v31 + 1) + 1LL) >= 0x1000 )
{
v27 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v27 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v27);
}
v28 = cocos2d::CCString::createWithFormat("%.02f", v26);
v20 = 0.0;
*(float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = fminf(100.0, fmaxf(0.0, cocos2d::CCString::floatValue(v28)));
SetupShakePopup::updateShake((SetupShakePopup *)((char *)a1 - 632));
v29 = fminf(
1.0,
*(float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable
/ 5.0);
if ( v29 >= 0.0 )
v20 = v29;
v22 = a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable;
}
Slider::setValue((Slider *)v22, v20);
}
}
}