//
// dtls1_clear_sent_buffer from 0xfdb218 to 0xfdb25c (68 bytes)
//
// 6 xrefs:
// > ossl_statem_server_pre_work @ 0xfce59c
// > ossl_statem_server_pre_work @ 0xfce5d0
// > dtls1_free @ 0xfdb288
// > dtls1_clear @ 0xfdb30c
// > dtls1_stop_timer @ 0xfdb5d0
// > ??> @ 0xcfcb8
//
// 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_sent_buffer(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x19
while ( 1 )
{
result = pqueue_pop(*(_QWORD *)(*(_QWORD *)(a1 + 152) + 280LL));
v3 = result;
if ( !result )
break;
dtls1_hm_fragment_free(*(_QWORD *)(result + 8));
pitem_free(v3);
}
return result;
}