//
// _errcode from 0x180133014 to 0x180133057 (67 bytes)
//
// 1 xrefs:
// > _except2 @ 0x1801330e7
//
// 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 errcode(char a1)
{
if ( (a1 & 0x20) != 0 )
{
return 5;
}
else if ( (a1 & 8) != 0 )
{
return 1;
}
else if ( (a1 & 4) != 0 )
{
return 2;
}
else if ( (a1 & 1) != 0 )
{
return 3;
}
else
{
return (unsigned int)(2 * (a1 & 2));
}
}