//
// sub_A16DDC from 0xa16ddc to 0xa16f44 (360 bytes)
//
// 3 xrefs:
// > EVP_add_alg_module @ 0xa16f64
// > EVP_add_alg_module @ 0xa16f6c
// > ??> @ 0xa16f7c
//
// 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:49 +0000
//
int __fastcall sub_A16DDC(int a1, int a2)
{
int value; // r0
int section; // r6
int v5; // r4
int v6; // r0
int v7; // r1
int v8; // r5
int v9; // r9
int v11; // [sp+Ch] [bp-8h] BYREF
value = CONF_imodule_get_value(a1);
section = NCONF_get_section(a2, value);
if ( section )
{
v5 = 0;
while ( 1 )
{
while ( 1 )
{
v6 = OPENSSL_sk_num(section);
v7 = v5;
if ( v5 >= v6 )
return 1;
++v5;
v8 = OPENSSL_sk_value(section, v7);
v9 = strcmp(*(const char **)(v8 + 4), "fips_mode");
if ( !v9 )
break;
ERR_put_error(6, 177, 169, (int)"crypto/evp/evp_cnf.c", 53);
ERR_add_error_data(4, "name=", *(_DWORD *)(v8 + 4), ", value=", *(_DWORD *)(v8 + 8));
}
if ( !X509V3_get_value_bool(v8, &v11, 169, "crypto/evp/evp_cnf.c") )
break;
if ( v11 > 0 )
{
ERR_put_error(6, 177, 167, (int)"crypto/evp/evp_cnf.c", 48);
return v9;
}
}
ERR_put_error(6, 177, 168, (int)"crypto/evp/evp_cnf.c", 37);
return v9;
}
else
{
v9 = 0;
ERR_put_error(6, 177, 165, (int)"crypto/evp/evp_cnf.c", 29);
return v9;
}
}