//
// X509_CRL_sort from 0x106d40c to 0x106d464 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x44ff8
//
// 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:58 +0000
//
__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;
}