//
// X509_CRL_sort from 0xa5c0c4 to 0xa5c10c (72 bytes)
//
// 1 xrefs:
// > ??> @ 0x814fc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:29 +0000
//
int __fastcall X509_CRL_sort(int a1)
{
signed int i; // r4
OPENSSL_sk_sort(*(_DWORD *)(a1 + 24));
for ( i = 0; i < OPENSSL_sk_num(*(_DWORD *)(a1 + 24)); ++i )
*(_DWORD *)(OPENSSL_sk_value(*(_DWORD **)(a1 + 24), i) + 32) = i;
*(_DWORD *)(a1 + 40) = 1;
return 1;
}