//
// i2s_ASN1_ENUMERATED from 0xa71b2c to 0xa71ba0 (116 bytes)
//
// 2 xrefs:
// > i2s_ASN1_ENUMERATED_TABLE @ 0xad944c
// > ??> @ 0x8322c
//
// 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:42 +0000
//
_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;
}