//
// X509_set_version from 0x1066d20 to 0x1066d94 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0xe1958
//
// 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:16:54 +0000
//
__int64 __fastcall X509_set_version(__int64 *a1, __int64 a2)
{
__int64 v3; // x0
__int64 v5; // [xsp+28h] [xbp+28h]
if ( a1 )
{
if ( !a2 )
{
ASN1_INTEGER_free(*a1);
*a1 = 0;
return 1;
}
v3 = *a1;
if ( v3 )
return ASN1_INTEGER_set(v3, a2);
v5 = a2;
v3 = ASN1_INTEGER_new();
*a1 = v3;
a2 = v5;
if ( v3 )
return ASN1_INTEGER_set(v3, a2);
}
return 0;
}