//
// sub_1800E8F00 from 0x1800e8f00 to 0x1800e8f76 (118 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801afe18
//
// 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_1800E8F00(__int64 *a1, int a2, _DWORD *a3, _BYTE *a4)
{
__int64 v4; // r10
int v5; // eax
v4 = *a1;
if ( !a3 )
return 31;
switch ( a2 )
{
case 0:
v5 = *(_DWORD *)(v4 + 912);
break;
case 6:
v5 = *(_DWORD *)(v4 + 940);
break;
case 9:
v5 = *(_DWORD *)(v4 + 988);
break;
case 11:
v5 = *(_DWORD *)(v4 + 956);
break;
case 14:
v5 = *(_DWORD *)(v4 + 968);
break;
case 18:
v5 = *(unsigned __int8 *)(v4 + 984);
break;
case 20:
v5 = *(_DWORD *)(v4 + 916);
break;
default:
return 31;
}
*a3 = v5;
if ( a4 )
*a4 = 0;
return 0;
}