//
// ASN1_ENUMERATED_get from 0xa777a4 to 0xa7781c (120 bytes)
//
// 7 xrefs:
// > OCSP_response_status @ 0xa32884
// > OCSP_single_get0_status @ 0xa32a90
// > OCSP_RESPONSE_print @ 0xa33ec4
// > OCSP_RESPONSE_print @ 0xa342b8
// > sub_A5D954 @ 0xa5dc28
// > i2s_ASN1_ENUMERATED_TABLE @ 0xad9404
// > ??> @ 0x7e2ac
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:44 +0000
//
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;
}