//
// sub_E0083C from 0xe0083c to 0xe008b4 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x1239720
//
// 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_E0083C(__int64 a1, __int64 a2, int a3)
{
__int64 result; // x0
unsigned __int64 v4; // x2
result = 1;
if ( a3 )
{
if ( (*(_QWORD *)(a2 + 208) & 0x400000002LL) == 2 )
{
return 0;
}
else
{
v4 = *(unsigned int *)(a2 + 208);
if ( (v4 & 1) != 0 )
{
return (v4 >> 4) & 1;
}
else
{
result = 3;
if ( (*(_DWORD *)(a2 + 208) & 0x2040) != 0x2040 )
{
result = 4;
if ( (v4 & 2) == 0 )
{
result = 0;
if ( (v4 & 8) != 0 )
{
if ( (*(_DWORD *)(a2 + 220) & 7) != 0 )
return 5;
else
return 0;
}
}
}
}
}
}
return result;
}