//
// dtls1_clear_received_buffer from 0x7b6040 to 0x7b6074 (52 bytes)
//
// 5 xrefs:
// > dtls1_reset_seq_numbers @ 0x78834c
// > tls_finish_handshake @ 0x7a6944
// > dtls1_free @ 0x7b60c4
// > dtls1_clear @ 0x7b6138
// > ??> @ 0x5a79c
//
// 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 dtls1_clear_received_buffer(int a1)
{
int result; // r0
int v3; // r4
while ( 1 )
{
result = pqueue_pop(*(_DWORD *)(*(_DWORD *)(a1 + 108) + 272));
v3 = result;
if ( !result )
break;
dtls1_hm_fragment_free(*(_DWORD *)(result + 8));
pitem_free(v3);
}
return result;
}