//
// CONF_set_nconf from 0xd815b0 to 0xd8161c (108 bytes)
//
// 12 xrefs:
// > CONF_free @ 0xd816dc
// > CONF_load_bio @ 0xd817c8
// > CONF_get_section @ 0xd819f4
// > CONF_get_string @ 0xd81ae0
// > CONF_get_number @ 0xd81be8
// > CONF_dump_bio @ 0xd81c94
// > X509V3_EXT_conf @ 0xdfb660
// > X509V3_EXT_conf_nid @ 0xdfb6ac
// > X509V3_EXT_add_conf @ 0xdfb710
// > X509V3_EXT_CRL_add_conf @ 0xdfb75c
// > X509V3_EXT_REQ_add_conf @ 0xdfb7a8
// > ??> @ 0x634c8
//
// 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
//
__int64 __fastcall CONF_set_nconf(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v5; // x0
__int64 (__fastcall *v6)(__int64); // x1
if ( qword_125D580 )
{
result = (*(__int64 (__fastcall **)(__int64))(qword_125D580 + 16))(a1);
}
else
{
v5 = NCONF_default();
v6 = *(__int64 (__fastcall **)(__int64))(v5 + 16);
qword_125D580 = v5;
result = v6(a1);
}
*(_QWORD *)(a1 + 16) = a2;
return result;
}