//
// dtls1_clear_received_buffer from 0xfdb1d4 to 0xfdb218 (68 bytes)
//
// 5 xrefs:
// > dtls1_reset_seq_numbers @ 0xfafe50
// > tls_finish_handshake @ 0xfccbd4
// > dtls1_free @ 0xfdb280
// > dtls1_clear @ 0xfdb304
// > ??> @ 0xc0430
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:34 +0000
//
__int64 __fastcall dtls1_clear_received_buffer(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x19
while ( 1 )
{
result = pqueue_pop(*(_QWORD *)(*(_QWORD *)(a1 + 152) + 272LL));
v3 = result;
if ( !result )
break;
dtls1_hm_fragment_free(*(_QWORD *)(result + 8));
pitem_free(v3);
}
return result;
}