//
// sub_10050BF5C from 0x10050bf5c to 0x10050bfe4 (136 bytes)
//
// 1 xrefs:
// > sub_10050BD04 @ 0x10050bd90
//
// 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_10050BF5C(__int64 *a1, int a2, _QWORD *a3, _DWORD *a4, _BYTE *a5)
{
__int64 v8; // x22
float v9; // s1
float v10; // s0
__int64 result; // x0
if ( a2 != 1 )
return 31;
v8 = *a1;
v9 = *(float *)(*a1 + 564);
v10 = 0.0;
if ( v9 > -80.0 )
v10 = __exp10f(v9 / 20.0);
*(float *)(v8 + 688) = v10;
*(_DWORD *)(v8 + 692) = 0;
*a3 = v8 + 688;
*a4 = 8;
result = 0;
if ( a5 )
*a5 = 0;
return result;
}