//
// X509_REQ_set_version from 0x10ed4dc to 0x10ed4f8 (28 bytes)
//
// 1 xrefs:
// > ??> @ 0x9f568
//
// 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:18:05 +0000
//
__int64 __fastcall X509_REQ_set_version(__int64 result, __int64 a2)
{
__int64 v2; // x2
__int64 v3; // x0
v2 = result;
if ( result )
{
v3 = *(_QWORD *)(result + 24);
*(_DWORD *)(v2 + 16) = 1;
return ASN1_INTEGER_set(v3, a2);
}
return result;
}