//
// asn1_enc_init from 0xfee740 to 0xfee77c (60 bytes)
//
// 3 xrefs:
// > sub_FEDB60 @ 0xfedcdc
// > ASN1_item_ex_new @ 0xfee128
// > ??> @ 0xb15f8
//
// 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:15:44 +0000
//
_QWORD *__fastcall asn1_enc_init(_QWORD *result, __int64 a2)
{
__int64 v2; // x1
__int64 v3; // x2
char *v4; // x1
if ( result )
{
result = (_QWORD *)*result;
if ( result )
{
v2 = *(_QWORD *)(a2 + 32);
if ( v2 )
{
if ( (*(_DWORD *)(v2 + 8) & 2) != 0 )
{
v3 = *(int *)(v2 + 32);
v4 = (char *)result + v3;
if ( (char *)result + v3 )
{
*(_QWORD *)((char *)result + v3) = 0;
*((_QWORD *)v4 + 1) = 0;
*((_DWORD *)v4 + 4) = 1;
return (_QWORD *)(dword_0 + 1);
}
}
}
}
}
return result;
}