//
// sub_10048FE2C from 0x10048fe2c to 0x10048ff0c (224 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_10048FE2C(__int64 a1, int a2, int a3, float a4)
{
__int64 result; // x0
int *v6; // x1
int *v7; // [xsp+8h] [xbp-18h] BYREF
switch ( a2 )
{
case 0:
*(float *)(a1 + 632) = a4 / 100.0;
if ( !a3 )
goto LABEL_9;
goto LABEL_11;
case 1:
*(float *)(a1 + 636) = a4 / 100.0;
if ( a3 )
goto LABEL_11;
goto LABEL_9;
case 2:
*(float *)(a1 + 640) = a4;
if ( a3 )
goto LABEL_11;
goto LABEL_9;
case 3:
*(float *)(a1 + 644) = a4;
if ( !a3 )
goto LABEL_9;
goto LABEL_11;
case 4:
*(_DWORD *)(a1 + 648) = a4 >= 0.5;
if ( !a3 )
goto LABEL_9;
LABEL_11:
result = sub_10043E710(*(_QWORD *)(a1 + 168), &v7, 16, 1);
if ( !(_DWORD)result )
{
*(_BYTE *)v7 = 7;
v6 = v7;
*((_QWORD *)v7 + 1) = a1;
result = sub_10043E7B4(*(_QWORD *)(a1 + 168), (__int64)v6, 1);
}
break;
default:
LABEL_9:
result = 0;
break;
}
return result;
}