//
// SetupCameraModePopup::sliderChanged from 0x1405ac420 to 0x1405ac501 (225 bytes)
//
// 5 xrefs:
// > SetupCameraModePopup::init @ 0x1405abcc8
// > SetupCameraModePopup::init @ 0x1405abe94
// > ??> @ 0x1408df140
// > ??> @ 0x1408df150
// > ??> @ 0x14092d80c
//
// 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:40 +0000
//
__int64 __fastcall SetupCameraModePopup::sliderChanged(__int64 a1, float *a2)
{
float Value; // xmm0_4
__int64 v5; // rdi
__int64 (__fastcall **v6)(__int64, const char *); // rbx
cocos2d::CCString *v7; // rax
const char *CString; // rax
__int64 result; // rax
Value = SliderThumb::getValue(a2);
if ( (*(unsigned int (__fastcall **)(float *))(*(_QWORD *)a2 + 56LL))(a2) )
{
result = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)a2 + 56LL))(a2);
if ( (_DWORD)result == 1 )
{
*(float *)(a1 + 1056) = Value;
SetupCameraModePopup::updateCameraPadding(a1);
return SetupCameraModePopup::updateCameraPaddingLabel(a1);
}
}
else
{
*(_DWORD *)(a1 + 1032) = (int)(float)(roundf(Value * 39.0) + 1.0);
SetupCameraModePopup::updateCameraEasing(a1);
v5 = *(_QWORD *)(a1 + 1024);
v6 = *(__int64 (__fastcall ***)(__int64, const char *))(v5 + 360);
v7 = cocos2d::CCString::createWithFormat("Easing: %i", *(_DWORD *)(a1 + 1032));
CString = cocos2d::CCString::getCString(v7);
return (*v6)(v5 + 360, CString);
}
return result;
}