//
// CONF_modules_finish from 0x10006c0 to 0x100076c (172 bytes)
//
// 3 xrefs:
// > CONF_modules_unload @ 0x1000784
// > conf_modules_free_int @ 0x1000994
// > ??> @ 0xbcde8
//
// 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 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_1566390) > 0 )
{
v0 = OPENSSL_sk_pop(qword_1566390);
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_1566390);
qword_1566390 = 0;
return result;
}