//
// CONF_modules_finish from 0x9ef4c4 to 0x9ef560 (156 bytes)
//
// 3 xrefs:
// > CONF_modules_unload @ 0x9ef584
// > conf_modules_free_int @ 0x9ef7a0
// > ??> @ 0x79d9c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:28 +0000
//
int CONF_modules_finish()
{
int v0; // r0
int *v1; // r4
int v2; // r3
void (*v3)(void); // r2
int v4; // r0
int result; // r0
while ( OPENSSL_sk_num(dword_D340C4) > 0 )
{
v0 = OPENSSL_sk_pop(dword_D340C4);
v1 = (int *)v0;
if ( v0 )
{
v2 = *(_DWORD *)v0;
v3 = *(void (**)(void))(*(_DWORD *)v0 + 12);
if ( v3 )
{
v3();
v2 = *v1;
}
v4 = v1[1];
--*(_DWORD *)(v2 + 16);
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(dword_D340C4);
dword_D340C4 = 0;
return result;
}