//
// ASN1_ENUMERATED_get from 0x862ba4 to 0x862c1c (120 bytes)
//
// 7 xrefs:
// > OCSP_response_status @ 0x81dc84
// > OCSP_single_get0_status @ 0x81de90
// > OCSP_RESPONSE_print @ 0x81f2c4
// > OCSP_RESPONSE_print @ 0x81f6b8
// > sub_848D54 @ 0x849028
// > i2s_ASN1_ENUMERATED_TABLE @ 0x8c4404
// > ??> @ 0x6482c
//
// 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
//
int __fastcall ASN1_ENUMERATED_get(int result)
{
bool v1; // cc
signed __int64 v2; // [sp+0h] [bp-18h] BYREF
if ( result )
{
if ( (*(_DWORD *)(result + 4) & 0xFFFFFEFF) == 0xA && *(int *)result <= 4 )
{
if ( !ASN1_ENUMERATED_get_int64(&v2, (int *)result) )
return -1;
result = v2;
v1 = (unsigned __int64)(v2 + 0x80000000LL) >> 32 != 0;
if ( !((unsigned __int64)(v2 + 0x80000000LL) >> 32) )
v1 = 0;
if ( v1 )
return -1;
}
else
{
return -1;
}
}
return result;
}