//
// sub_1800DEB70 from 0x1800deb70 to 0x1800debf7 (135 bytes)
//
// 4 xrefs:
// > ??> @ 0x18016d130
// > ??> @ 0x18016d320
// > ??> @ 0x18016d4b8
// > ??> @ 0x18016d688
//
// 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_1800DEB70(_DWORD *a1, _DWORD *a2, int *a3, _DWORD *a4, _DWORD *a5)
{
int v5; // eax
int v6; // ecx
int v7; // ecx
int v8; // ecx
int v9; // ecx
if ( a2 )
*a2 = a1[9];
if ( a3 )
{
if ( (a1[11] & 0x200) == 0 || (v5 = 6, a1[44]) )
v5 = a1[10];
*a3 = v5;
}
if ( a4 )
*a4 = a1[26];
if ( a5 )
{
v6 = a1[10];
*a5 = 0;
v7 = v6 - 1;
if ( v7 )
{
v8 = v7 - 1;
if ( !v8 )
{
*a5 = 16;
return 0;
}
v9 = v8 - 1;
if ( !v9 )
{
*a5 = 24;
return 0;
}
if ( (unsigned int)(v9 - 1) <= 1 )
{
*a5 = 32;
return 0;
}
}
else
{
*a5 = 8;
}
}
return 0;
}