//
// CONF_modules_finish from 0xd82360 to 0xd8240c (172 bytes)
//
// 3 xrefs:
// > CONF_modules_unload @ 0xd82424
// > conf_modules_free_int @ 0xd82634
// > ??> @ 0x8eb18
//
// 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 CONF_modules_finish()
{
__int64 v0; // x0
__int64 *v1; // x19
__int64 v2; // x3
void (*v3)(void); // x1
__int64 v4; // x0
__int64 result; // x0
while ( (int)OPENSSL_sk_num(qword_125D590) > 0 )
{
v0 = OPENSSL_sk_pop(qword_125D590);
v1 = (__int64 *)v0;
if ( v0 )
{
v2 = *(_QWORD *)v0;
v3 = *(void (**)(void))(*(_QWORD *)v0 + 24LL);
if ( v3 )
{
v3();
v2 = *v1;
}
v4 = v1[1];
--*(_DWORD *)(v2 + 32);
CRYPTO_free(v4, "crypto/conf/conf_mod.c", 405);
CRYPTO_free(v1[2], "crypto/conf/conf_mod.c", 406);
CRYPTO_free(v1, "crypto/conf/conf_mod.c", 407);
}
}
result = OPENSSL_sk_free(qword_125D590);
qword_125D590 = 0;
return result;
}