//
// OPENSSL_sk_sort from 0xde0b34 to 0xde0b7c (72 bytes)
//
// 14 xrefs:
// > sub_D3BB18 @ 0xd3bba4
// > ssl_create_cipher_list @ 0xd3d964
// > EVP_PKEY_asn1_add0 @ 0xd68b10
// > EVP_PKEY_meth_add0 @ 0xdadef8
// > OBJ_add_sigid @ 0xdc319c
// > OBJ_add_sigid @ 0xdc31a4
// > OPENSSL_sk_find_ex @ 0xde0b9c
// > OPENSSL_sk_find @ 0xde0c58
// > X509_CRL_sort @ 0xdef0e4
// > sub_DF0C68 @ 0xdf0df8
// > X509v3_addr_canonize @ 0xdf68f0
// > X509v3_addr_canonize @ 0xdf69b8
// > sub_DF9674 @ 0xdf96a8
// > ??> @ 0x52de8
//
// 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
//
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;
}