//
// sub_10050BE84 from 0x10050be84 to 0x10050bef4 (112 bytes)
//
// 1 xrefs:
// > sub_10050BD04 @ 0x10050bd70
//
// 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_10050BE84(__int64 *a1, int a2, float a3)
{
__int64 result; // x0
__int64 v4; // x8
__int64 v5; // x19
float v6; // s1
if ( a2 )
return 0;
v4 = *a1;
*(float *)(v4 + 564) = a3;
v5 = *(_QWORD *)(v4 + 536);
v6 = 0.0;
if ( a3 > -80.0 )
v6 = __exp10f(a3 / 20.0);
result = sub_1004F2D8C(v5, 64, 1, 0, v6);
if ( !(_DWORD)result )
return 0;
return result;
}