//
// X509_CRL_sort from 0xdef0cc to 0xdef124 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x2ddf8
//
// 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
//
__int64 __fastcall X509_CRL_sort(__int64 a1)
{
int v2; // w19
v2 = 0;
OPENSSL_sk_sort(*(int **)(a1 + 48));
while ( v2 < (int)OPENSSL_sk_num(*(unsigned int **)(a1 + 48)) )
{
*(_DWORD *)(OPENSSL_sk_value(*(_QWORD *)(a1 + 48), v2) + 52) = v2;
++v2;
}
*(_DWORD *)(a1 + 80) = 1;
return 1;
}