//
// SetupCameraRotatePopup::sliderDegreesChanged from 0x1004b6e30 to 0x1004b6ed8 (168 bytes)
//
// 1 xrefs:
// > sub_1004B59F0 @ 0x1004b6777
//
// 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 12:31:01 +0000
//
__int64 __fastcall SetupCameraRotatePopup::sliderDegreesChanged(__int64 a1, float *a2)
{
__m128 Value; // xmm0
__int64 result; // rax
unsigned int v4; // r14d
Value = SliderThumb::getValue(a2);
Value.f32[0] = Value.f32[0] * 720.0;
*(float *)(a1 + 1088) = _mm_round_ss(Value, Value, 9).f32[0] + -360.0;
sub_1004B6EE0(a1);
result = *(_QWORD *)(a1 + 680);
if ( result )
{
*(_DWORD *)(result + 1544) = *(_DWORD *)(a1 + 1088);
}
else
{
result = sub_1007FEF90(*(_QWORD *)(a1 + 688));
if ( (_DWORD)result )
{
v4 = 0;
do
{
*(_DWORD *)(sub_1007FEFE0(*(_QWORD *)(a1 + 688), v4++) + 1544) = *(_DWORD *)(a1 + 1088);
result = sub_1007FEF90(*(_QWORD *)(a1 + 688));
}
while ( v4 < (unsigned int)result );
}
}
return result;
}