//
// i2s_ASN1_ENUMERATED from 0xe0383c to 0xe038a8 (108 bytes)
//
// 2 xrefs:
// > i2s_ASN1_ENUMERATED_TABLE @ 0xe701b4
// > ??> @ 0x73bc0
//
// 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
//
_BYTE *__fastcall i2s_ASN1_ENUMERATED(__int64 a1, _BYTE *a2)
{
_BYTE *result; // x0
__int64 v3; // x0
__int64 v4; // x20
_BYTE *v5; // x19
result = a2;
if ( a2 )
{
v3 = ASN1_ENUMERATED_to_BN(a2, 0);
v4 = v3;
if ( !v3 || (v5 = BN_bn2dec(v3)) == nullptr )
{
v5 = nullptr;
ERR_put_error(34, 121, 65, (__int64)"crypto/x509v3/v3_utl.c", 106);
}
BN_free(v4);
return v5;
}
return result;
}