//
// ASN1_TYPE_pack_sequence from 0xa793cc to 0xa7944c (128 bytes)
//
// 6 xrefs:
// > ASN1_TYPE_set_int_octetstring @ 0xa7b68c
// > PKCS5_pbkdf2_set @ 0xadc124
// > PKCS5_pbe2_set_iv @ 0xadc310
// > PKCS5_pbe2_set_scrypt @ 0xadc660
// > PKCS5_pbe2_set_scrypt @ 0xadc6a0
// > ??> @ 0x8340c
//
// 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:45 +0000
//
_DWORD *__fastcall ASN1_TYPE_pack_sequence(int a1, int a2, _DWORD **a3)
{
int v4; // r6
_DWORD *v5; // r4
_DWORD *v7; // r0
v4 = ASN1_item_pack(a2, a1, 0);
if ( v4 )
{
if ( a3 )
{
v5 = *a3;
if ( *a3 )
{
LABEL_4:
ASN1_TYPE_set(v5, 16, v4);
return v5;
}
v7 = ASN1_TYPE_new();
v5 = v7;
if ( v7 )
{
*a3 = v7;
goto LABEL_4;
}
}
else
{
v5 = ASN1_TYPE_new();
if ( v5 )
goto LABEL_4;
}
ASN1_OCTET_STRING_free(v4);
}
return nullptr;
}