//
// ssl3_clear from 0x9a2e44 to 0x9a2f34 (240 bytes)
//
// 3 xrefs:
// > tls1_clear @ 0x9c2c88
// > dtls1_clear @ 0x9cad90
// > ??> @ 0x7476c
//
// 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:06:49 +0000
//
int __fastcall ssl3_clear(int a1)
{
int result; // r0
ssl3_cleanup_key_block();
OPENSSL_sk_pop_free(*(_DWORD *)(*(_DWORD *)(a1 + 104) + 556), X509_NAME_free);
CRYPTO_free(*(_DWORD *)(*(_DWORD *)(a1 + 104) + 592), "ssl/s3_lib.c", 2846);
CRYPTO_clear_free(
*(_DWORD *)(*(_DWORD *)(a1 + 104) + 600),
*(_DWORD *)(*(_DWORD *)(a1 + 104) + 604),
"ssl/s3_lib.c",
2847);
CRYPTO_free(*(_DWORD *)(*(_DWORD *)(a1 + 104) + 616), "ssl/s3_lib.c", 2848);
EVP_PKEY_free(*(_DWORD *)(*(_DWORD *)(a1 + 104) + 532));
EVP_PKEY_free(*(_DWORD *)(*(_DWORD *)(a1 + 104) + 864));
ssl3_free_digest_list(a1);
CRYPTO_free(*(_DWORD *)(*(_DWORD *)(a1 + 104) + 840), "ssl/s3_lib.c", 2857);
CRYPTO_free(*(_DWORD *)(*(_DWORD *)(a1 + 104) + 848), "ssl/s3_lib.c", 2858);
memset(*(void **)(a1 + 104), 0, 0x364u);
ssl_free_wbio_buffer(a1);
*(_DWORD *)a1 = 768;
result = CRYPTO_free(*(_DWORD *)(a1 + 448), "ssl/s3_lib.c", 2868);
*(_DWORD *)(a1 + 448) = 0;
*(_BYTE *)(a1 + 452) = 0;
return result;
}