//
// pqueue_find from 0x7b7b88 to 0x7b7be4 (92 bytes)
//
// 4 xrefs:
// > sub_7A4958 @ 0x7a49f4
// > dtls1_retransmit_message @ 0x7a5644
// > dtls_get_message @ 0x7a5f44
// > ??> @ 0x5d3ec
//
// 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
//
_DWORD *__fastcall pqueue_find(_DWORD **a1, void *a2)
{
_DWORD *v2; // r4
_DWORD *v4; // r5
v2 = *a1;
if ( !*a1 )
return v2;
while ( 1 )
{
v4 = (_DWORD *)v2[3];
if ( !v4 )
break;
if ( !memcmp(v2, a2, 8u) )
return v2;
v2 = v4;
}
if ( memcmp(v2, a2, 8u) )
return nullptr;
else
return v2;
}