//
// sub_E8BF00 from 0xe8bf00 to 0xe8bf60 (96 bytes)
//
// 3 xrefs:
// > sub_E8C34C @ 0xe8c580
// > sub_E8C34C @ 0xe8c5c0
// > sub_E8C34C @ 0xe8c718
//
// 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_E8BF00(unsigned __int8 a1, __int64 a2)
{
unsigned int v2; // w0
bool v3; // zf
if ( a1 == 255 )
return 0;
v2 = a1 & 0x70;
if ( v2 == 32 )
return *(_QWORD *)(a2 + 8);
if ( v2 > 0x20 )
{
if ( v2 == 48 )
return *(_QWORD *)(a2 + 16);
v3 = v2 == 80;
goto LABEL_8;
}
v3 = v2 == 16;
if ( v2 )
{
LABEL_8:
if ( !v3 )
abort();
}
return 0;
}