//
// sub_10050738C from 0x10050738c to 0x100507448 (188 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_10050738C(__int64 a1, float *a2, float *a3, float *a4)
{
__int64 v9[2]; // [xsp+8h] [xbp-38h] BYREF
float v10; // [xsp+18h] [xbp-28h] BYREF
float v11; // [xsp+1Ch] [xbp-24h] BYREF
if ( a4 )
{
if ( a2 )
{
sub_1004BD990(a2, a3, a4, nullptr);
if ( *a4 > 0.0 )
{
sub_1004BD8D8((__int64)a2, (__int64)v9, nullptr, nullptr);
sub_1004AE164((_QWORD *)(*(_QWORD *)(a1 + 8) + 73144LL), (__int64 *)a3, v9, &v11, &v10);
*a4 = *a4 * (float)(1.0 - v10);
}
}
else
{
*a4 = 1.0;
}
}
return 0;
}