//
// sub_1800EC6D0 from 0x1800ec6d0 to 0x1800ec770 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801aff08
//
// 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_1800EC6D0(__int64 *a1, int a2, _OWORD *a3, int a4)
{
int v4; // edx
__int64 v6; // rax
v4 = a2 - 1;
if ( v4 )
{
if ( v4 == 1 )
return a3 != nullptr ? 0x1F : 0;
return 31;
}
if ( a3 )
{
if ( a4 != 128 )
return 31;
v6 = *a1;
*(_OWORD *)(v6 + 3564) = *a3;
*(_OWORD *)(v6 + 3580) = a3[1];
*(_OWORD *)(v6 + 3596) = a3[2];
*(_OWORD *)(v6 + 3612) = a3[3];
*(_OWORD *)(v6 + 3628) = a3[4];
*(_OWORD *)(v6 + 3644) = a3[5];
*(_OWORD *)(v6 + 3660) = a3[6];
*(_OWORD *)(v6 + 3676) = a3[7];
*(_WORD *)(v6 + 3560) = 257;
*(_BYTE *)(v6 + 3562) = 1;
}
return 0;
}