//
// sub_180051070 from 0x180051070 to 0x1800510cd (93 bytes)
//
// 2 xrefs:
// > sub_180033290 @ 0x1800335fc
// > ??> @ 0x1801f8a00
//
// 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 10:53:17 +0000
//
__int64 __fastcall sub_180051070(__int64 a1, __int64 a2, _DWORD *a3, const void *a4, int a5, _OWORD *a6)
{
__int128 v8; // xmm1
__int64 result; // rax
_OWORD v10[2]; // [rsp+30h] [rbp-28h] BYREF
v8 = a6[1];
v10[0] = *a6;
v10[1] = v8;
result = sub_180050C10(a1, a2, a3, a4, a5, (__int64)v10);
if ( !(_DWORD)result )
return sub_180050E70(a1, a3);
return result;
}