//
// sub_1800EC770 from 0x1800ec770 to 0x1800ec7d1 (97 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801aff28
//
// 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:54:19 +0000
//
__int64 __fastcall sub_1800EC770(__int64 *a1, int a2, _QWORD *a3, int *a4, _BYTE *a5)
{
__int64 v5; // r10
int v6; // edx
int v8; // eax
v5 = *a1;
v6 = a2 - 1;
if ( v6 )
{
if ( v6 != 1 )
return 31;
v8 = 292;
if ( *(_BYTE *)(v5 + 3561) )
*a3 = &xmmword_1801F0500;
else
*a3 = v5 + 544;
}
else
{
*a3 = v5 + 3564;
v8 = 128;
}
*a4 = v8;
if ( a5 )
*a5 = 0;
return 0;
}