//
// OBJ_NAME_do_all_sorted from 0x81bd4c to 0x81be10 (196 bytes)
//
// 3 xrefs:
// > EVP_CIPHER_do_all_sorted @ 0x804e10
// > EVP_MD_do_all_sorted @ 0x804ea0
// > ??> @ 0x63a6c
//
// 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
//
void __fastcall OBJ_NAME_do_all_sorted(int a1, void (__fastcall *a2)(_DWORD, int), int a3)
{
int v6; // r0
int v7; // r0
signed int v8; // r4
int v9; // [sp+4h] [bp-Ch] BYREF
size_t v10; // [sp+8h] [bp-8h]
void *v11; // [sp+Ch] [bp-4h]
v9 = a1;
v6 = OPENSSL_LH_num_items(dword_AD4508);
v11 = CRYPTO_malloc((void *)(4 * v6), (int)"crypto/objects/o_names.c", 320);
if ( v11 )
{
v7 = a1;
v8 = 0;
v10 = 0;
OBJ_NAME_do_all(v7, (int)sub_81B76C, (int)&v9);
qsort(v11, v10, 4u, (int (*)(const void *, const void *))sub_81B6CC);
if ( (int)v10 > 0 )
{
do
a2(*((_DWORD *)v11 + v8++), a3);
while ( (int)v10 > v8 );
}
CRYPTO_free(v11, (int)"crypto/objects/o_names.c", 331);
}
}