//
// dtls1_free from 0x9cacac to 0x9cad0c (96 bytes)
//
// 11 xrefs:
// > ??> @ 0x73e7c
// > ??> @ 0xd15aec
// > ??> @ 0xd15b60
// > ??> @ 0xd15bd4
// > ??> @ 0xd15c48
// > ??> @ 0xd15cbc
// > ??> @ 0xd15d30
// > ??> @ 0xd15da4
// > ??> @ 0xd15e18
// > ??> @ 0xd15e8c
// > ??> @ 0xd15f00
//
// 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:07:08 +0000
//
int __fastcall dtls1_free(int a1)
{
int result; // r0
DTLS_RECORD_LAYER_free(a1 + 556);
ssl3_free(a1);
dtls1_clear_received_buffer(a1);
dtls1_clear_sent_buffer(a1);
pqueue_free(*(_DWORD *)(*(_DWORD *)(a1 + 108) + 272));
pqueue_free(*(_DWORD *)(*(_DWORD *)(a1 + 108) + 276));
result = CRYPTO_free(*(_DWORD *)(a1 + 108), "ssl/d1_lib.c", 158);
*(_DWORD *)(a1 + 108) = 0;
return result;
}