//
// SetupShakePopup::sliderChanged from 0x1405eb510 to 0x1405eb725 (533 bytes)
//
// 2 xrefs:
// > SetupShakePopup::init @ 0x1405eb019
// > ??> @ 0x14092ef7c
//
// 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:03 +0000
//
void __fastcall SetupShakePopup::sliderChanged(__int64 a1, float *a2)
{
float Value; // xmm0_4
float v5; // xmm0_4
const char *CString; // rax
cocos2d::CCString *v7; // rax
size_t v8; // r8
_QWORD *v9; // rcx
float v10; // xmm0_4
const char *v11; // rax
cocos2d::CCString *v12; // rax
size_t v13; // r8
float v14; // xmm0_4
const char *v15; // rax
cocos2d::CCString *v16; // rax
size_t v17; // r8
__int128 v18; // [rsp+20h] [rbp-38h] BYREF
__int64 v19; // [rsp+30h] [rbp-28h]
__int64 v20; // [rsp+38h] [rbp-20h]
Value = SliderThumb::getValue(a2);
if ( (*(unsigned int (__fastcall **)(float *))(*(_QWORD *)a2 + 56LL))(a2) == 3 )
{
*(float *)(a1 + 1016) = Value + Value;
SetupCameraOffsetTrigger::updateDuration(a1);
v5 = *(float *)(a1 + 1016);
CString = "Mixed";
*(_BYTE *)(a1 + 744) = 1;
if ( v5 != -99999.0 )
{
v7 = cocos2d::CCString::createWithFormat("%.02f", v5);
CString = cocos2d::CCString::getCString(v7);
}
v18 = 0;
v19 = 0;
v8 = -1;
v20 = 0;
do
++v8;
while ( CString[v8] );
sub_14003D230(&v18, CString, v8);
v9 = *(_QWORD **)(a1 + 1000);
}
else if ( (*(unsigned int (__fastcall **)(float *))(*(_QWORD *)a2 + 56LL))(a2) == 7 )
{
*(float *)(a1 + 1064) = Value * 0.1;
SetupShakePopup::updateInterval(a1);
v10 = *(float *)(a1 + 1064);
v11 = "Mixed";
*(_BYTE *)(a1 + 744) = 1;
if ( v10 != -99999.0 )
{
v12 = cocos2d::CCString::createWithFormat("%.02f", v10);
v11 = cocos2d::CCString::getCString(v12);
}
v18 = 0;
v19 = 0;
v13 = -1;
v20 = 0;
do
++v13;
while ( v11[v13] );
sub_14003D230(&v18, v11, v13);
v9 = *(_QWORD **)(a1 + 1048);
}
else
{
*(float *)(a1 + 1040) = Value * 5.0;
SetupShakePopup::updateShake(a1);
v14 = *(float *)(a1 + 1040);
v15 = "Mixed";
*(_BYTE *)(a1 + 744) = 1;
if ( v14 != -99999.0 )
{
v16 = cocos2d::CCString::createWithFormat("%.02f", v14);
v15 = cocos2d::CCString::getCString(v16);
}
v18 = 0;
v19 = 0;
v17 = -1;
v20 = 0;
do
++v17;
while ( v15[v17] );
sub_14003D230(&v18, v15, v17);
v9 = *(_QWORD **)(a1 + 1024);
}
CCTextInputNode::setString(v9, &v18);
*(_BYTE *)(a1 + 744) = 0;
}