//
// sub_10050E900 from 0x10050e900 to 0x10050e97a (122 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b68b60
// > ??> @ 0x100b69328
//
// 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
//
char __fastcall sub_10050E900(__int64 a1)
{
__int64 v1; // rax
__int64 v3; // rdi
int v5; // [rsp-14h] [rbp-14h] BYREF
if ( *(_BYTE *)(a1 + 404) == 1 && *(int *)(a1 + 408) <= 1000 )
{
v5 = HIDWORD(v1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 1376LL))(a1 - 320);
v3 = *(_QWORD *)(a1 + 392);
BYTE2(v5) = 0;
LOWORD(v5) = -1;
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v3 + 960LL))(v3, &v5);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 392) + 160LL))(*(_QWORD *)(a1 + 392), 0.89999998);
++*(_DWORD *)(a1 + 408);
}
return 1;
}