//
// X509_CRL_set_version from 0x106d390 to 0x106d3dc (76 bytes)
//
// 2 xrefs:
// > X509_CRL_diff @ 0x106b6a0
// > ??> @ 0x8e870
//
// 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:58 +0000
//
__int64 __fastcall X509_CRL_set_version(__int64 *a1, __int64 a2)
{
__int64 v3; // x0
__int64 v5; // [xsp+28h] [xbp+28h]
if ( a1 && ((v3 = *a1) != 0 || (v5 = a2, v3 = ASN1_INTEGER_new(), *a1 = v3, a2 = v5, v3)) )
return ASN1_INTEGER_set(v3, a2);
else
return 0;
}