//
// X509_set_version from 0xa55520 to 0xa55584 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x80d6c
//
// 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:25 +0000
//
int __fastcall X509_set_version(int *a1, int a2)
{
int v4; // r0
if ( !a1 )
return 0;
v4 = *a1;
if ( a2 )
{
if ( v4 )
return ASN1_INTEGER_set(v4, a2);
v4 = ASN1_INTEGER_new();
*a1 = v4;
if ( v4 )
return ASN1_INTEGER_set(v4, a2);
else
return 0;
}
else
{
ASN1_INTEGER_free(v4);
*a1 = 0;
return 1;
}
}