//
// i2s_ASN1_ENUMERATED from 0x85cf2c to 0x85cfa0 (116 bytes)
//
// 2 xrefs:
// > i2s_ASN1_ENUMERATED_TABLE @ 0x8c444c
// > ??> @ 0x697ac
//
// 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(int a1, int a2)
{
_DWORD *v2; // r0
int v3; // r5
_BYTE *v4; // r4
if ( !a2 )
return nullptr;
v2 = (_DWORD *)ASN1_ENUMERATED_to_BN(a2, 0);
v3 = (int)v2;
if ( !v2 || (v4 = BN_bn2dec(v2)) == nullptr )
{
ERR_put_error(34, 121, 65, (int)"crypto/x509v3/v3_utl.c", 106);
v4 = nullptr;
}
BN_free(v3);
return v4;
}