//
// sub_1004A0764 from 0x1004a0764 to 0x1004a0864 (256 bytes)
//
// 2 xrefs:
// > sub_10049E474 @ 0x10049e964
// > sub_10049E474 @ 0x10049eaf8
//
// 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:06:02 +0000
//
__int64 __fastcall sub_1004A0764(__int64 a1, float *a2)
{
float Value; // s8
__int64 result; // x0
void *v6; // x0
float v7; // s0
float v8; // s1
Value = SliderThumb::getValue(a2);
if ( (*(unsigned int (__fastcall **)(float *))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
*(float *)(a1 + 1128) = Value * 10.0;
sub_1004A1908(a1);
return sub_1004A0864(a1);
}
else
{
result = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 2 )
{
v6 = sub_1003065B0("%.02f", Value);
v7 = cocos2d::CCString::floatValue((__int64)v6);
*(float *)(a1 + 1140) = v7;
v8 = 0.0;
if ( v7 <= 0.02 || (v8 = 1.0, v7 >= 0.98) )
*(float *)(a1 + 1140) = v8;
sub_1004A1888(a1);
return sub_1004A0938(a1);
}
}
return result;
}