//
// i2s_ASN1_INTEGER from 0xe038a8 to 0xe03914 (108 bytes)
//
// 16 xrefs:
// > sub_DF8F74 @ 0xdf903c
// > sub_DF8F74 @ 0xdf907c
// > sub_DF8F74 @ 0xdf9138
// > sub_DF8F74 @ 0xdf91cc
// > sub_DF8F74 @ 0xdf920c
// > sub_DF8F74 @ 0xdf9288
// > sub_DFB7CC @ 0xdfb904
// > sub_E01F64 @ 0xe01fe8
// > X509V3_add_value_int @ 0xe03adc
// > sub_E0FE14 @ 0xe10758
// > sub_E0FE14 @ 0xe10bbc
// > ASN1_item_print @ 0xe11450
// > ??> @ 0x598e0
// > ??> @ 0x1228158
// > ??> @ 0x12281c0
// > ??> @ 0x1228228
//
// 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_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;
}