//
// SetupTimeWarpPopup::sliderChanged from 0x1405f9b80 to 0x1405f9c50 (208 bytes)
//
// 4 xrefs:
// > SetupTimeWarpPopup::init @ 0x1405f9987
// > ??> @ 0x1408e3dac
// > ??> @ 0x1408e3dbc
// > ??> @ 0x14092f624
//
// 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:08 +0000
//
__int64 __fastcall SetupTimeWarpPopup::sliderChanged(__int64 a1, float *a2)
{
float v3; // xmm0_4
float v4; // xmm0_4
__int64 v5; // rax
cocos2d::CCArray *v7; // rcx
unsigned int v8; // ebx
struct cocos2d::CCObject *v9; // rax
v3 = (float)(SliderThumb::getValue(a2) * 1.9) + 0.1;
*(float *)(a1 + 1016) = v3;
v4 = roundf(v3 * 100.0) / 100.0;
v5 = *(_QWORD *)(a1 + 680);
*(float *)(a1 + 1016) = v4;
if ( v5 )
{
*(float *)(v5 + 1780) = v4;
return SetupTimeWarpPopup::updateTimeWarpLabel(a1);
}
else
{
v7 = *(cocos2d::CCArray **)(a1 + 688);
if ( v7 )
{
v8 = 0;
if ( cocos2d::CCArray::count(v7) )
{
do
{
v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v8++);
*((_DWORD *)v9 + 445) = *(_DWORD *)(a1 + 1016);
}
while ( v8 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) );
}
}
return SetupTimeWarpPopup::updateTimeWarpLabel(a1);
}
}