//
// dtls1_clear_received_buffer from 0x9cac44 to 0x9cac78 (52 bytes)
//
// 5 xrefs:
// > dtls1_reset_seq_numbers @ 0x99cf50
// > tls_finish_handshake @ 0x9bb548
// > dtls1_free @ 0x9cacc8
// > dtls1_clear @ 0x9cad3c
// > ??> @ 0x7421c
//
// 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_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;
}