//
// ssl3_cleanup_key_block from 0x7b8410 to 0x7b8448 (56 bytes)
//
// 6 xrefs:
// > ssl3_free @ 0x78e14c
// > ssl3_clear @ 0x78e248
// > tls_finish_handshake @ 0x7a6870
// > ssl3_setup_key_block @ 0x7b84f8
// > tls1_setup_key_block @ 0x7ba970
// > ??> @ 0x5ac9c
//
// 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
//
int __fastcall ssl3_cleanup_key_block(int a1)
{
int result; // r0
int v3; // r3
result = CRYPTO_clear_free(
*(_DWORD *)(*(_DWORD *)(a1 + 104) + 564),
*(_DWORD *)(*(_DWORD *)(a1 + 104) + 560),
"ssl/s3_enc.c",
327);
v3 = *(_DWORD *)(a1 + 104);
*(_DWORD *)(v3 + 564) = 0;
*(_DWORD *)(v3 + 560) = 0;
return result;
}