//
// ASN1_ENUMERATED_get from 0xe0afcc to 0xe0b02c (96 bytes)
//
// 7 xrefs:
// > OCSP_response_status @ 0xdc37f0
// > OCSP_single_get0_status @ 0xdc3a04
// > OCSP_RESPONSE_print @ 0xdc4e50
// > OCSP_RESPONSE_print @ 0xdc520c
// > sub_DF076C @ 0xdf0a7c
// > i2s_ASN1_ENUMERATED_TABLE @ 0xe7015c
// > ??> @ 0x733c8
//
// 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
//
unsigned __int64 __fastcall ASN1_ENUMERATED_get(unsigned __int64 result)
{
int *v1; // x1
unsigned __int64 v2; // [xsp+18h] [xbp+18h] BYREF
v1 = (int *)result;
if ( result )
{
if ( (*(_DWORD *)(result + 4) & 0xFFFFFEFF) != 0xA )
return -1;
result = 0xFFFFFFFFLL;
if ( *v1 > 8 )
return result;
if ( (unsigned int)ASN1_ENUMERATED_get_int64(&v2, v1) )
return v2;
else
return -1;
}
return result;
}