// // pqueue_insert from 0x7b7ae4 to 0x7b7b68 (132 bytes) // // 5 xrefs: // > dtls1_buffer_record @ 0x786d48 // > sub_7A4958 @ 0x7a4bf4 // > dtls1_buffer_message @ 0x7a5448 // > dtls_get_message @ 0x7a6084 // > @ 0x5a56c // // 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 // void *__fastcall pqueue_insert(_DWORD **a1, void *a2) { _DWORD *v2; // r4 _DWORD *v5; // r6 void *result; // r0 v2 = *a1; if ( !*a1 ) goto LABEL_11; v5 = nullptr; while ( 1 ) { result = (void *)memcmp(v2, a2, 8u); if ( (int)result > 0 ) break; if ( !result ) return result; v5 = v2; if ( !v2[3] ) { *((_DWORD *)a2 + 3) = 0; v2[3] = a2; return a2; } v2 = (_DWORD *)v2[3]; } *((_DWORD *)a2 + 3) = v2; if ( v5 ) { v5[3] = a2; return a2; } else { LABEL_11: *a1 = a2; return a2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source