//
// sub_E8A1D4 from 0xe8a1d4 to 0xe8a24c (120 bytes)
//
// 4 xrefs:
// > sub_E8A24C @ 0xe8a334
// > sub_E8A744 @ 0xe8aa00
// > sub_E8A744 @ 0xe8aafc
// > sub_E8AB68 @ 0xe8ad88
//
// 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_E8A1D4(unsigned __int8 a1, __int64 a2)
{
unsigned int v2; // w2
if ( a1 == 255 )
return 0;
v2 = a1 & 0x70;
if ( v2 == 32 )
return Unwind_GetTextRelBase(a2);
if ( v2 <= 0x20 )
{
if ( (a1 & 0x70) == 0 || v2 == 16 )
return 0;
LABEL_13:
abort();
}
if ( v2 == 64 )
return Unwind_GetRegionStart(a2);
if ( v2 != 80 )
{
if ( v2 == 48 )
return Unwind_GetDataRelBase(a2);
goto LABEL_13;
}
return 0;
}