//
// ASN1_TYPE_set1 from 0xa79300 to 0xa79358 (88 bytes)
//
// 2 xrefs:
// > X509_ATTRIBUTE_set1_data @ 0xa52df0
// > ??> @ 0x806cc
//
// 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
//
int __fastcall ASN1_TYPE_set1(_DWORD *a1, int a2, const char **a3)
{
bool v3; // zf
int v4; // r4
_DWORD *v5; // r5
v3 = a2 == 1;
if ( a2 != 1 )
v3 = a3 == nullptr;
v4 = a2;
if ( v3 )
goto LABEL_7;
v5 = a1;
if ( a2 == 6 )
{
a3 = OBJ_dup(a3);
if ( a3 )
goto LABEL_6;
}
else
{
a3 = (const char **)ASN1_STRING_dup((int)a3);
if ( a3 )
{
LABEL_6:
a1 = v5;
a2 = v4;
LABEL_7:
ASN1_TYPE_set(a1, a2, (int)a3);
return 1;
}
}
return 0;
}