//
// SetupPulsePopup::sliderChanged from 0x1405d12f0 to 0x1405d152e (574 bytes)
//
// 4 xrefs:
// > SetupPulsePopup::init @ 0x1405cd5ec
// > SetupPulsePopup::init @ 0x1405cda87
// > SetupPulsePopup::init @ 0x1405cdf11
// > ??> @ 0x14092e73c
//
// 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:34:55 +0000
//
void __fastcall SetupPulsePopup::sliderChanged(__int64 a1, float *a2)
{
float Value; // xmm0_4
cocos2d::CCString *v5; // rax
float v6; // xmm0_4
int v7; // eax
int v8; // eax
float v9; // xmm0_4
const char *CString; // rax
cocos2d::CCString *v11; // rax
size_t v12; // r8
_QWORD *v13; // rcx
float v14; // xmm0_4
const char *v15; // rax
cocos2d::CCString *v16; // rax
size_t v17; // r8
float v18; // xmm0_4
const char *v19; // rax
cocos2d::CCString *v20; // rax
size_t v21; // r8
__int128 v22; // [rsp+20h] [rbp-38h] BYREF
__int64 v23; // [rsp+30h] [rbp-28h]
__int64 v24; // [rsp+38h] [rbp-20h]
Value = SliderThumb::getValue(a2);
v5 = cocos2d::CCString::createWithFormat("%.01f", (float)(Value * 10.0));
v6 = cocos2d::CCString::floatValue(v5);
v7 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)a2 + 56LL))(a2) - 1;
if ( v7 )
{
v8 = v7 - 1;
if ( v8 )
{
if ( v8 != 1 )
return;
*(float *)(a1 + 1272) = v6;
SetupPulsePopup::updateFadeOutTime(a1);
v9 = *(float *)(a1 + 1272);
CString = "Mixed";
*(_BYTE *)(a1 + 744) = 1;
if ( v9 != -0.1 )
{
v11 = cocos2d::CCString::createWithFormat("%.02f", v9);
CString = cocos2d::CCString::getCString(v11);
}
v22 = 0;
v23 = 0;
v12 = -1;
v24 = 0;
do
++v12;
while ( CString[v12] );
sub_14003D230(&v22, CString, v12);
v13 = *(_QWORD **)(a1 + 1176);
}
else
{
*(float *)(a1 + 1268) = v6;
SetupPulsePopup::updateHoldTime(a1);
v14 = *(float *)(a1 + 1268);
v15 = "Mixed";
*(_BYTE *)(a1 + 744) = 1;
if ( v14 != -0.1 )
{
v16 = cocos2d::CCString::createWithFormat("%.02f", v14);
v15 = cocos2d::CCString::getCString(v16);
}
v22 = 0;
v23 = 0;
v17 = -1;
v24 = 0;
do
++v17;
while ( v15[v17] );
sub_14003D230(&v22, v15, v17);
v13 = *(_QWORD **)(a1 + 1168);
}
}
else
{
*(float *)(a1 + 1264) = v6;
SetupPulsePopup::updateFadeInTime(a1);
v18 = *(float *)(a1 + 1264);
v19 = "Mixed";
*(_BYTE *)(a1 + 744) = 1;
if ( v18 != -0.1 )
{
v20 = cocos2d::CCString::createWithFormat("%.02f", v18);
v19 = cocos2d::CCString::getCString(v20);
}
v22 = 0;
v23 = 0;
v21 = -1;
v24 = 0;
do
++v21;
while ( v19[v21] );
sub_14003D230(&v22, v19, v21);
v13 = *(_QWORD **)(a1 + 1160);
}
CCTextInputNode::setString(v13, &v22);
*(_BYTE *)(a1 + 744) = 0;
}