//
// i2s_ASN1_ENUMERATED from 0x1081b7c to 0x1081be8 (108 bytes)
//
// 2 xrefs:
// > i2s_ASN1_ENUMERATED_TABLE @ 0x10ee1b4
// > ??> @ 0x9b608
//
// 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:10 +0000
//
_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;
}