//
// sub_18010E5F0 from 0x18010e5f0 to 0x18010e64f (95 bytes)
//
// 2 xrefs:
// > sub_180110290 @ 0x1801107d2
// > ??> @ 0x180201a78
//
// 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_18010E5F0(__int64 a1, int a2, _DWORD *a3, __int64 a4)
{
int *v4; // rax
int v5; // eax
v4 = *(int **)(a1 + 8);
if ( a2 )
{
switch ( a2 )
{
case 4:
v5 = v4[5];
break;
case 8:
v5 = v4[10];
break;
case 12:
v5 = v4[15];
break;
case 16:
v5 = v4[20];
break;
default:
goto LABEL_12;
}
}
else
{
v5 = *v4;
}
*a3 = v5;
LABEL_12:
if ( a4 )
sub_1800B7CA0(a4, 32, "%d", *a3);
return 0;
}