//
// sub_1800E8C00 from 0x1800e8c00 to 0x1800e8cd4 (212 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801afe10
//
// 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:18 +0000
//
__int64 __fastcall sub_1800E8C00(_QWORD *a1, int a2, _DWORD *a3, _BYTE *a4)
{
_DWORD *v4; // r10
int v5; // xmm0_4
v4 = (_DWORD *)*a1;
if ( !a3 )
return 31;
switch ( a2 )
{
case 1:
v5 = v4[230];
break;
case 2:
v5 = v4[231];
break;
case 3:
v5 = v4[232];
break;
case 4:
v5 = v4[233];
break;
case 5:
v5 = v4[234];
break;
case 7:
v5 = v4[236];
break;
case 8:
v5 = v4[237];
break;
case 12:
v5 = v4[142];
break;
case 13:
v5 = v4[143];
break;
case 15:
v5 = v4[243];
break;
case 16:
v5 = v4[245];
break;
case 17:
v5 = v4[244];
break;
case 21:
v5 = v4[238];
break;
default:
return 31;
}
*a3 = v5;
if ( a4 )
*a4 = 0;
return 0;
}