//
// sub_E8B38 from 0xe8b38 to 0xe8be0 (168 bytes)
//
// 2 xrefs:
// > sub_E8E78 @ 0xe8f38
// > sub_E8E78 @ 0xe8f44
//
// 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_E8B38(__int64 *a1, int a2, _BYTE *a3, int a4, __int64 a5, _DWORD *a6, __int64 a7, _DWORD *a8)
{
__int64 v8; // x22
__int64 v9; // x23
__int64 v10; // x24
int v14; // w8
int v15; // w8
__int64 v16; // x8
v8 = *a1;
v9 = a2;
v10 = *a1 + 276LL * a2;
sub_E3C94(a3, (char *)(v10 + 8900), a4);
v14 = *(_DWORD *)(v10 + 8896);
*(_DWORD *)a5 = v14;
*(_WORD *)(a5 + 4) = *(_DWORD *)(v10 + 9164) == 7;
v15 = (unsigned __int16)*(_DWORD *)(v10 + 9168) | v14;
*(_WORD *)(a5 + 6) = *(_DWORD *)(v10 + 9168);
if ( !v15 )
*(_BYTE *)(a5 + 8) = 1;
v16 = v8 + 276 * v9;
*a6 = *(_DWORD *)(v16 + 9156);
*a8 = *(_DWORD *)(v16 + 9160);
return 0;
}