//
// ASN1_ENUMERATED_get from 0x10892cc to 0x108932c (96 bytes)
//
// 7 xrefs:
// > OCSP_response_status @ 0x1041b50
// > OCSP_single_get0_status @ 0x1041d64
// > OCSP_RESPONSE_print @ 0x10431b0
// > OCSP_RESPONSE_print @ 0x104356c
// > sub_106EAAC @ 0x106edbc
// > i2s_ASN1_ENUMERATED_TABLE @ 0x10ee15c
// > ??> @ 0x9ac00
//
// This function is hookable on this platform (idp: arm, 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 13:17:14 +0000
//
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;
}