//
// sub_10050D3D0 from 0x10050d3d0 to 0x10050d422 (82 bytes)
//
// 2 xrefs:
// > ??> @ 0x10095c1b0
// > ??> @ 0x10095c8f0
//
// 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_10050D3D0(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rax
int v3; // [rsp-14h] [rbp-14h] BYREF
if ( *(_BYTE *)(a1 + 372) == 1 )
{
v3 = HIDWORD(result);
v2 = *(_QWORD *)(a1 + 360);
BYTE2(v3) = 0;
LOWORD(v3) = -26881;
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v2 + 944LL))(v2, &v3);
return (*(__int64 (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 360) + 160LL))(
*(_QWORD *)(a1 + 360),
0.80000001);
}
return result;
}