//
// sub_100451C84 from 0x100451c84 to 0x100451d40 (188 bytes)
//
// 1 xrefs:
// > sub_1004513E0 @ 0x1004518a4
//
// This function is hookable on this platform (idp: arm, 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:05:21 +0000
//
__int64 __fastcall sub_100451C84(__int64 a1, float *a2)
{
float Value; // s8
__int64 result; // x0
Value = SliderThumb::getValue(a2);
if ( (*(unsigned int (__fastcall **)(float *))(*(_QWORD *)a2 + 64LL))(a2) )
{
result = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 1 )
{
*(float *)(a1 + 1072) = Value;
sub_100452094(a1);
return sub_100451D8C(a1);
}
}
else
{
*(_DWORD *)(a1 + 1048) = (int)(float)(roundf(Value * 39.0) + 1.0);
sub_100452024(a1);
return sub_100451D40(a1);
}
return result;
}