//
// pqueue_find from 0x9cc78c to 0x9cc7e8 (92 bytes)
//
// 4 xrefs:
// > sub_9B955C @ 0x9b95f8
// > dtls1_retransmit_message @ 0x9ba248
// > dtls_get_message @ 0x9bab48
// > ??> @ 0x76e6c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:09 +0000
//
_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;
}