//
// sub_100124738 from 0x100124738 to 0x10012486c (308 bytes)
//
// 3 xrefs:
// > ConfigureHSVWidget::init @ 0x100123e80
// > ConfigureHSVWidget::init @ 0x100123fe8
// > ConfigureHSVWidget::init @ 0x100124154
//
// 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 10:59:17 +0000
//
__int64 __fastcall sub_100124738(__int64 a1, __int64 a2)
{
float Value; // s8
int v5; // w0
__int64 v6; // x0
float v7; // s0
float v8; // s1
float v9; // s0
__int64 v10; // x0
float v11; // s0
float v12; // s1
float v13; // s0
__int64 result; // x0
Value = SliderThumb::getValue(a2);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
switch ( v5 )
{
case 3:
v10 = sub_1003065B0("%0.2f", Value);
v11 = cocos2d::CCString::floatValue(v10);
v12 = (float)(v11 * 2.0) + -1.0;
v13 = v11 + v11;
if ( *(_BYTE *)(a1 + 389) )
v13 = v12;
*(float *)(a1 + 384) = v13;
break;
case 2:
v6 = sub_1003065B0("%0.2f", Value);
v7 = cocos2d::CCString::floatValue(v6);
v8 = (float)(v7 * 2.0) + -1.0;
v9 = v7 + v7;
if ( *(_BYTE *)(a1 + 388) )
v9 = v8;
*(float *)(a1 + 380) = v9;
break;
case 1:
*(float *)(a1 + 376) = (float)(int)(float)((float)(Value * 360.0) + -180.0);
break;
}
sub_1001249D4(a1);
sub_10012517C(a1);
result = *(_QWORD *)(a1 + 400);
if ( result )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 8LL))(result, a1);
return result;
}