//
// i2s_ASN1_INTEGER from 0x1081be8 to 0x1081c54 (108 bytes)
//
// 16 xrefs:
// > sub_10772B4 @ 0x107737c
// > sub_10772B4 @ 0x10773bc
// > sub_10772B4 @ 0x1077478
// > sub_10772B4 @ 0x107750c
// > sub_10772B4 @ 0x107754c
// > sub_10772B4 @ 0x10775c8
// > sub_1079B0C @ 0x1079c44
// > sub_10802A4 @ 0x1080328
// > X509V3_add_value_int @ 0x1081e1c
// > sub_108E114 @ 0x108ea58
// > sub_108E114 @ 0x108eebc
// > ASN1_item_print @ 0x108f750
// > ??> @ 0x7b1a8
// > ??> @ 0x153fee0
// > ??> @ 0x153ff48
// > ??> @ 0x153ffb0
//
// 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_INTEGER(__int64 a1, _BYTE *a2)
{
_BYTE *result; // x0
__int64 v3; // x0
__int64 v4; // x20
_BYTE *v5; // x19
result = a2;
if ( a2 )
{
v3 = ASN1_INTEGER_to_BN(a2, 0);
v4 = v3;
if ( !v3 || (v5 = BN_bn2dec(v3)) == nullptr )
{
v5 = nullptr;
ERR_put_error(34, 120, 65, (__int64)"crypto/x509v3/v3_utl.c", 120);
}
BN_free(v4);
return v5;
}
return result;
}