//
// OBJ_NAME_do_all_sorted from 0xdc15ac to 0xdc1684 (216 bytes)
//
// 3 xrefs:
// > EVP_CIPHER_do_all_sorted @ 0xdabd50
// > EVP_MD_do_all_sorted @ 0xdabde0
// > ??> @ 0x8d858
//
// 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)(__int64, __int64), __int64 a3)
{
__int64 v6; // x0
int v7; // w0
__int64 v8; // x19
int v9; // w20
__int64 v10; // x0
int v11; // [xsp+40h] [xbp+40h] BYREF
_DWORD v12[3]; // [xsp+44h] [xbp+44h]
v11 = a1;
v6 = OPENSSL_LH_num_items(qword_125F188);
*(_QWORD *)&v12[1] = CRYPTO_malloc((void *)(8 * v6), (__int64)"crypto/objects/o_names.c", 320);
if ( *(_QWORD *)&v12[1] )
{
v7 = a1;
v12[0] = 0;
v8 = 0;
OBJ_NAME_do_all(v7, (__int64)sub_DC0FD8, (__int64)&v11);
v9 = 0;
qsort(*(void **)&v12[1], v12[0], 8u, (int (*)(const void *, const void *))sub_DC0F10);
if ( v12[0] > 0 )
{
do
{
++v9;
v10 = *(_QWORD *)(*(_QWORD *)&v12[1] + v8);
v8 += 8;
a2(v10, a3);
}
while ( v12[0] > v9 );
}
CRYPTO_free(*(void **)&v12[1], (__int64)"crypto/objects/o_names.c", 331);
}
}