//
// sub_1800EC770 from 0x1800ec770 to 0x1800ec7d1 (97 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801aff28
//
// 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
//
__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;
}