//
// dtls1_clear_sent_buffer from 0xd5cec4 to 0xd5cf08 (68 bytes)
//
// 6 xrefs:
// > ossl_statem_server_pre_work @ 0xd50248
// > ossl_statem_server_pre_work @ 0xd5027c
// > dtls1_free @ 0xd5cf34
// > dtls1_clear @ 0xd5cfb8
// > dtls1_stop_timer @ 0xd5d27c
// > ??> @ 0x9dda0
//
// 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
//
__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;
}