//
// X509_VERIFY_PARAM_set_flags from 0x8468bc to 0x8468d8 (28 bytes)
//
// 3 xrefs:
// > X509_STORE_set_flags @ 0x840390
// > X509_STORE_CTX_set_flags @ 0x846198
// > ??> @ 0x670dc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall X509_VERIFY_PARAM_set_flags(int a1, int a2)
{
bool v2; // zf
int v3; // r1
v2 = (a2 & 0x780) == 0;
v3 = a2 | *(_DWORD *)(a1 + 12);
if ( !v2 )
v3 |= 0x80u;
*(_DWORD *)(a1 + 12) = v3;
return 1;
}