	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqueue_insert                  ## -- Begin function pqueue_insert
	.p2align	4, 0x90
_pqueue_insert:                         ## @pqueue_insert
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movl	8(%rbx), %edi
	movl	8(%r15), %esi
	movl	$8, %edx
	callq	_memcmp
	testl	%eax, %eax
	jle	LBB0_5
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%rbx), %edi
	movl	8(%r15), %esi
	movl	$8, %edx
	callq	_memcmp
	movq	%r12, %rcx
	movq	%rbx, %r12
	testl	%eax, %eax
	jle	LBB0_6
LBB0_4:
	movq	%rbx, (%r15)
	testq	%rcx, %rcx
	cmovneq	%rcx, %r14
	jmp	LBB0_10
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_9:
	movq	$0, (%r15)
	movq	%r12, %r14
LBB0_10:
	movq	%r15, (%r14)
LBB0_11:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqueue_insert                  ; -- Begin function pqueue_insert
	.p2align	2
_pqueue_insert:                         ; @pqueue_insert
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	cbz	x21, LBB0_10
; %bb.1:
	ldr	w0, [x21, #8]
	ldr	w1, [x19, #8]
	mov	w2, #8
	bl	_memcmp
	cmp	w0, #0
	b.le	LBB0_3
; %bb.2:
	mov	x8, #0
	b	LBB0_7
LBB0_3:
	mov	x22, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x22]
	cbz	x21, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21, #8]
	ldr	w1, [x19, #8]
	mov	w2, #8
	bl	_memcmp
	mov	x8, x22
	mov	x22, x21
	cmp	w0, #1
	b.lt	LBB0_4
LBB0_7:
	str	x21, [x19]
	cmp	x8, #0
	csel	x20, x20, x8, eq
	b	LBB0_10
LBB0_8:
	mov	x19, #0
	b	LBB0_11
LBB0_9:
	str	xzr, [x19]
	mov	x20, x22
LBB0_10:
	str	x19, [x20]
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
