//
// DTLS_RECORD_LAYER_free from 0x786b58 to 0x786ba8 (80 bytes)
//
// 2 xrefs:
// > dtls1_free @ 0x7b60b4
// > ??> @ 0x5a4ec
//
// 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 DTLS_RECORD_LAYER_free(int a1)
{
int result; // r0
DTLS_RECORD_LAYER_clear(a1);
pqueue_free(*(_DWORD *)(*(_DWORD *)(a1 + 2288) + 32));
pqueue_free(*(_DWORD *)(*(_DWORD *)(a1 + 2288) + 40));
pqueue_free(*(_DWORD *)(*(_DWORD *)(a1 + 2288) + 48));
result = CRYPTO_free(*(_DWORD *)(a1 + 2288), "ssl/record/rec_layer_d1.c", 50);
*(_DWORD *)(a1 + 2288) = 0;
return result;
}