//
// pqueue_find from 0xfdcc60 to 0xfdccd0 (112 bytes)
//
// 4 xrefs:
// > sub_FCAC74 @ 0xfcacf8
// > dtls1_retransmit_message @ 0xfcb8f8
// > dtls_get_message @ 0xfcc1ac
// > ??> @ 0xe0398
//
// 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:35 +0000
//
_QWORD *__fastcall pqueue_find(_QWORD **a1, void *a2)
{
_QWORD *v2; // x19
_QWORD *v4; // x20
v2 = *a1;
if ( !*a1 )
return v2;
while ( 1 )
{
v4 = (_QWORD *)v2[2];
if ( !v4 )
break;
if ( !memcmp(v2, a2, 8u) )
return v2;
v2 = v4;
}
if ( memcmp(v2, a2, 8u) )
return nullptr;
else
return v2;
}