//
// dtls1_clear_sent_buffer from 0x7b6074 to 0x7b60a8 (52 bytes)
//
// 6 xrefs:
// > ossl_statem_server_pre_work @ 0x7a8510
// > ossl_statem_server_pre_work @ 0x7a8520
// > dtls1_free @ 0x7b60cc
// > dtls1_clear @ 0x7b6140
// > dtls1_stop_timer @ 0x7b6444
// > ??> @ 0x5d4cc
//
// 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_sent_buffer(int a1)
{
int result; // r0
int v3; // r4
while ( 1 )
{
result = pqueue_pop(*(_DWORD *)(*(_DWORD *)(a1 + 108) + 276));
v3 = result;
if ( !result )
break;
dtls1_hm_fragment_free(*(_DWORD *)(result + 8));
pitem_free(v3);
}
return result;
}