//
// sub_10050D2D0 from 0x10050d2d0 to 0x10050d34a (122 bytes)
//
// 2 xrefs:
// > ??> @ 0x10095c1a0
// > ??> @ 0x10095c8e0
//
// 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
//
char __fastcall sub_10050D2D0(__int64 a1)
{
__int64 v1; // rax
__int64 v3; // rdi
int v5; // [rsp-14h] [rbp-14h] BYREF
if ( *(_BYTE *)(a1 + 372) == 1 && *(int *)(a1 + 376) <= 1000 )
{
v5 = HIDWORD(v1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 1328LL))(a1 - 320);
v3 = *(_QWORD *)(a1 + 360);
BYTE2(v5) = 0;
LOWORD(v5) = -1;
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v3 + 944LL))(v3, &v5);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 360) + 160LL))(*(_QWORD *)(a1 + 360), 0.89999998);
++*(_DWORD *)(a1 + 376);
}
return 1;
}