//
// _errcode from 0x180133014 to 0x180133057 (67 bytes)
//
// 1 xrefs:
// > _except2 @ 0x1801330e7
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:54:59 +0000
//
__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));
}
}