//
// ssl_cert_clear_certs from 0xfb8254 to 0xfb82d8 (132 bytes)
//
// 3 xrefs:
// > ssl_cert_free @ 0xfb832c
// > SSL_certs_clear @ 0xfbd9b4
// > ??> @ 0xdb5f8
//
// 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:15:16 +0000
//
__int64 __fastcall ssl_cert_clear_certs(__int64 result)
{
__int64 *v1; // x19
__int64 *v2; // x20
__int64 v3; // x0
if ( result )
{
v1 = (__int64 *)(result + 32);
v2 = (__int64 *)(result + 312);
do
{
v3 = *v1;
v1 += 5;
X509_free(v3);
*(v1 - 5) = 0;
EVP_PKEY_free(*(v1 - 4));
*(v1 - 4) = 0;
OPENSSL_sk_pop_free(*(v1 - 3), X509_free);
*(v1 - 3) = 0;
result = CRYPTO_free(*(v1 - 2), "ssl/ssl_cert.c", 225);
*(v1 - 2) = 0;
*(v1 - 1) = 0;
}
while ( v1 != v2 );
}
return result;
}