//
// OPENSSL_sk_sort from 0x105ee74 to 0x105eebc (72 bytes)
//
// 14 xrefs:
// > sub_FB9E6C @ 0xfb9ef8
// > ssl_create_cipher_list @ 0xfbbcb8
// > EVP_PKEY_asn1_add0 @ 0xfe6e70
// > EVP_PKEY_meth_add0 @ 0x102c258
// > OBJ_add_sigid @ 0x10414fc
// > OBJ_add_sigid @ 0x1041504
// > OPENSSL_sk_find_ex @ 0x105eedc
// > OPENSSL_sk_find @ 0x105ef98
// > X509_CRL_sort @ 0x106d424
// > sub_106EFA8 @ 0x106f138
// > X509v3_addr_canonize @ 0x1074c30
// > X509v3_addr_canonize @ 0x1074cf8
// > sub_10779B4 @ 0x10779e8
// > ??> @ 0x73180
//
// 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:49 +0000
//
int *__fastcall OPENSSL_sk_sort(int *result)
{
int (*v1)(const void *, const void *); // x3
int *v2; // x19
if ( result && !result[4] )
{
v1 = *((int (**)(const void *, const void *))result + 4);
if ( v1 )
{
v2 = result;
qsort(*((void **)result + 1), *result, 8u, v1);
v2[4] = 1;
return dword_0 + 1;
}
}
return result;
}