//
// SetupShakePopup::textChanged from 0x1405eb9d0 to 0x1405ebdad (989 bytes)
//
// 4 xrefs:
// > ??> @ 0x140802100
// > ??> @ 0x1408e2a88
// > ??> @ 0x1408e2abc
// > ??> @ 0x14092efb8
//
// 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 11:35:04 +0000
//
void __fastcall SetupShakePopup::textChanged(__int64 a1, _QWORD *a2)
{
_BYTE *v4; // rax
size_t v5; // r8
const char *v6; // rcx
float v7; // xmm6_4
char *v8; // rcx
cocos2d::CCString *v9; // rax
bool v10; // zf
__int64 v11; // rax
_BYTE *v12; // rax
size_t v13; // r8
const char *v14; // rcx
float v15; // xmm6_4
char *v16; // rcx
cocos2d::CCString *v17; // rax
float v18; // xmm2_4
__int64 v19; // rcx
_BYTE *v20; // rax
size_t v21; // r8
const char *v22; // rcx
float v23; // xmm6_4
char *v24; // rcx
cocos2d::CCString *v25; // rax
char *String[2]; // [rsp+38h] [rbp-48h] BYREF
__int128 v27; // [rsp+48h] [rbp-38h]
if ( !*(_BYTE *)(a1 + 200) )
{
if ( (*(unsigned int (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2) == 5 )
{
v4 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL);
*(_OWORD *)String = 0;
v5 = -1;
v27 = 0;
do
++v5;
while ( v4[v5] );
sub_14003D230(String, v4, v5);
v6 = (const char *)String;
if ( *((_QWORD *)&v27 + 1) > 0xFu )
v6 = String[0];
v7 = atof(v6);
if ( *((_QWORD *)&v27 + 1) > 0xFu )
{
v8 = String[0];
if ( (unsigned __int64)(*((_QWORD *)&v27 + 1) + 1LL) >= 0x1000 )
{
v8 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v8 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v8);
}
v9 = cocos2d::CCString::createWithFormat("%.02f", v7);
*(float *)(a1 + 472) = fminf(10.0, fmaxf(0.0, cocos2d::CCString::floatValue(v9)));
SetupCameraOffsetTrigger::updateDuration(a1 - 544);
Slider::setValue(*(_QWORD *)(a1 + 464), fmaxf(0.0, fminf(1.0, *(float *)(a1 + 472) / 10.0)));
}
else
{
v10 = (*(unsigned int (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2) == 8;
v11 = *(_QWORD *)(a2[74] + 600LL);
if ( v10 )
{
v12 = (_BYTE *)(*(__int64 (**)(void))(v11 + 8))();
*(_OWORD *)String = 0;
v13 = -1;
v27 = 0;
do
++v13;
while ( v12[v13] );
sub_14003D230(String, v12, v13);
v14 = (const char *)String;
if ( *((_QWORD *)&v27 + 1) > 0xFu )
v14 = String[0];
v15 = atof(v14);
if ( *((_QWORD *)&v27 + 1) > 0xFu )
{
v16 = String[0];
if ( (unsigned __int64)(*((_QWORD *)&v27 + 1) + 1LL) >= 0x1000 )
{
v16 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v16 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v16);
}
v17 = cocos2d::CCString::createWithFormat("%.02f", v15);
*(float *)(a1 + 520) = fminf(0.2, fmaxf(0.0, cocos2d::CCString::floatValue(v17)));
SetupShakePopup::updateInterval(a1 - 544);
v18 = *(float *)(a1 + 472) / 0.1;
v19 = *(_QWORD *)(a1 + 512);
}
else
{
v20 = (_BYTE *)(*(__int64 (**)(void))(v11 + 8))();
*(_OWORD *)String = 0;
v21 = -1;
v27 = 0;
do
++v21;
while ( v20[v21] );
sub_14003D230(String, v20, v21);
v22 = (const char *)String;
if ( *((_QWORD *)&v27 + 1) > 0xFu )
v22 = String[0];
v23 = atof(v22);
if ( *((_QWORD *)&v27 + 1) > 0xFu )
{
v24 = String[0];
if ( (unsigned __int64)(*((_QWORD *)&v27 + 1) + 1LL) >= 0x1000 )
{
v24 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v24 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v24);
}
v25 = cocos2d::CCString::createWithFormat("%.02f", v23);
*(float *)(a1 + 496) = fminf(100.0, fmaxf(0.0, cocos2d::CCString::floatValue(v25)));
SetupShakePopup::updateShake(a1 - 544);
v18 = *(float *)(a1 + 496) / 5.0;
v19 = *(_QWORD *)(a1 + 488);
}
Slider::setValue(v19, fmaxf(0.0, fminf(1.0, v18)));
}
}
}