//
// i2s_ASN1_INTEGER from 0xa71ba4 to 0xa71c14 (112 bytes)
//
// 16 xrefs:
// > sub_A66720 @ 0xa66808
// > sub_A66720 @ 0xa66848
// > sub_A66720 @ 0xa66914
// > sub_A66720 @ 0xa669cc
// > sub_A66720 @ 0xa66a14
// > sub_A66720 @ 0xa66a74
// > sub_A69284 @ 0xa693cc
// > sub_A70304 @ 0xa70380
// > X509V3_add_value_int @ 0xa71df0
// > sub_A7C880 @ 0xa7d354
// > sub_A7C880 @ 0xa7d634
// > ASN1_item_print @ 0xa7dfd0
// > ??> @ 0x8240c
// > ??> @ 0xd19fc4
// > ??> @ 0xd19ffc
// > ??> @ 0xd1a034
//
// 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_INTEGER(int a1, int a2)
{
_DWORD *v2; // r0
int v3; // r5
_BYTE *v4; // r4
if ( !a2 )
return nullptr;
v2 = (_DWORD *)ASN1_INTEGER_to_BN(a2, 0);
v3 = (int)v2;
if ( !v2 || (v4 = BN_bn2dec(v2)) == nullptr )
{
ERR_put_error(34, 120, 65, (int)"crypto/x509v3/v3_utl.c", 120);
v4 = nullptr;
}
BN_free(v3);
return v4;
}