//
// sub_10050EA00 from 0x10050ea00 to 0x10050ea52 (82 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b68b70
// > ??> @ 0x100b69338
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:31:35 +0000
//
__int64 __fastcall sub_10050EA00(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rax
int v3; // [rsp-14h] [rbp-14h] BYREF
if ( *(_BYTE *)(a1 + 404) == 1 )
{
v3 = HIDWORD(result);
v2 = *(_QWORD *)(a1 + 392);
BYTE2(v3) = 0;
LOWORD(v3) = -26881;
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v2 + 960LL))(v2, &v3);
return (*(__int64 (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 392) + 160LL))(
*(_QWORD *)(a1 + 392),
0.80000001);
}
return result;
}