//
// OBJ_NAME_do_all_sorted from 0x103f90c to 0x103f9e4 (216 bytes)
//
// 3 xrefs:
// > EVP_CIPHER_do_all_sorted @ 0x102a0b0
// > EVP_MD_do_all_sorted @ 0x102a140
// > ??> @ 0xbb618
//
// 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:16:29 +0000
//
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_1567F88);
*(_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_103F338, (__int64)&v11);
v9 = 0;
qsort(*(void **)&v12[1], v12[0], 8u, (int (*)(const void *, const void *))sub_103F270);
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);
}
}