//
// X509_EXTENSION_set_critical from 0x1067cdc to 0x1067d08 (44 bytes)
//
// 3 xrefs:
// > X509_EXTENSION_create_by_OBJ @ 0x1067da8
// > X509_EXTENSION_create_by_OBJ @ 0x1067e20
// > ??> @ 0xbb0d8
//
// 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_EXTENSION_set_critical(__int64 a1, int a2)
{
int v2; // w1
if ( !a1 )
return 0;
if ( a2 )
v2 = 255;
else
v2 = -1;
*(_DWORD *)(a1 + 8) = v2;
return 1;
}