//
// i2a_ASN1_OBJECT from 0x9d2454 to 0x9d2570 (284 bytes)
//
// 20 xrefs:
// > sub_85239C @ 0x852570
// > sub_9D7A4C @ 0x9d8178
// > OCSP_REQUEST_print @ 0xa33cfc
// > OCSP_RESPONSE_print @ 0xa33f1c
// > OCSP_RESPONSE_print @ 0xa341cc
// > sub_A40900 @ 0xa40a28
// > sub_A40900 @ 0xa40a90
// > sub_A40900 @ 0xa40ac4
// > X509_signature_print @ 0xa51f70
// > X509_print_ex @ 0xa527f4
// > GENERAL_NAME_print @ 0xa657d4
// > sub_A69284 @ 0xa694a8
// > sub_A69524 @ 0xa6959c
// > X509_POLICY_NODE_print @ 0xa6a33c
// > i2a_ACCESS_DESCRIPTION @ 0xa6bf58
// > sub_A6DCF0 @ 0xa6dd74
// > X509V3_extensions_print @ 0xa6e9f0
// > sub_ACEC1C @ 0xacec54
// > sub_ACEDD0 @ 0xacee74
// > ??> @ 0x67c4c
//
// 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:07:12 +0000
//
int __fastcall i2a_ASN1_OBJECT(int a1, int a2, int a3, int a4)
{
int v6; // r0
int v7; // r3
int v8; // r4
int v10; // r9
int v11; // r0
_BYTE *v12; // r8
int v13; // r3
int v14; // r4
_BYTE v15[80]; // [sp+0h] [bp-50h] BYREF
if ( !a2 )
return BIO_write(a1, "NULL", 4, a4);
a4 = *(_DWORD *)(a2 + 16);
if ( !a4 )
return BIO_write(a1, "NULL", 4, a4);
v6 = i2t_ASN1_OBJECT((int)v15, 80, a2);
v8 = v6;
if ( v6 > 79 )
{
v10 = v6 + 1;
v11 = CRYPTO_malloc(v6 + 1, "crypto/asn1/a_object.c", 182);
v12 = (_BYTE *)v11;
if ( v11 )
{
i2t_ASN1_OBJECT(v11, v10, a2);
BIO_write(a1, v12, v8, v13);
if ( v12 != v15 )
CRYPTO_free(v12, "crypto/asn1/a_object.c", 194);
return v8;
}
else
{
return -1;
}
}
else if ( v6 <= 0 )
{
v14 = BIO_write(a1, "", 9, v7);
return BIO_dump(a1, *(_DWORD *)(a2 + 16), *(_DWORD *)(a2 + 12)) + v14;
}
else
{
BIO_write(a1, v15, v6, v7);
return v8;
}
}