//
// CONF_set_nconf from 0xfff910 to 0xfff97c (108 bytes)
//
// 12 xrefs:
// > CONF_free @ 0xfffa3c
// > CONF_load_bio @ 0xfffb28
// > CONF_get_section @ 0xfffd54
// > CONF_get_string @ 0xfffe40
// > CONF_get_number @ 0xffff48
// > CONF_dump_bio @ 0xfffff4
// > X509V3_EXT_conf @ 0x10799a0
// > X509V3_EXT_conf_nid @ 0x10799ec
// > X509V3_EXT_add_conf @ 0x1079a50
// > X509V3_EXT_CRL_add_conf @ 0x1079a9c
// > X509V3_EXT_REQ_add_conf @ 0x1079ae8
// > ??> @ 0x87400
//
// 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:15:53 +0000
//
__int64 __fastcall CONF_set_nconf(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v5; // x0
__int64 (__fastcall *v6)(__int64); // x1
if ( qword_1566380 )
{
result = (*(__int64 (__fastcall **)(__int64))(qword_1566380 + 16))(a1);
}
else
{
v5 = NCONF_default();
v6 = *(__int64 (__fastcall **)(__int64))(v5 + 16);
qword_1566380 = v5;
result = v6(a1);
}
*(_QWORD *)(a1 + 16) = a2;
return result;
}