	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_pq_insert                   ## -- Begin function dt_pq_insert
	.p2align	4, 0x90
_dt_pq_insert:                          ## @dt_pq_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, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	xorl	%edi, %edi
	cmpq	8(%r14), %rax
	setl	%dil
	callq	_assert
	movq	(%r14), %r15
	movq	16(%r14), %rax
	leaq	1(%r15), %rcx
	movq	%rcx, (%r14)
	movq	%rbx, (%rax,%r15,8)
	cmpq	$2, %r15
	jb	LBB0_4
## %bb.1:
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dt_pq_getvalue
	movq	%rax, %r12
	shrq	%rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dt_pq_getvalue
	cmpq	%rax, %r12
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%r15,8), %rcx
	movq	(%rax,%rbx,8), %rdx
	movq	%rdx, (%rax,%r15,8)
	movq	16(%r14), %rax
	movq	%rcx, (%rax,%rbx,8)
	cmpq	$3, %r15
	movq	%rbx, %r15
	ja	LBB0_2
LBB0_4:
	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	_dt_pq_insert                   ; -- Begin function dt_pq_insert
	.p2align	2
_dt_pq_insert:                          ; @dt_pq_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	x21, x1
	mov	x19, x0
	ldp	x8, x9, [x0]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
	ldr	x20, [x19]
	add	x8, x20, #1
	str	x8, [x19]
	ldr	x8, [x19, #16]
	str	x21, [x8, x20, lsl #3]
	cmp	x20, #2
	b.lo	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_dt_pq_getvalue
	mov	x22, x0
	lsr	x21, x20, #1
	mov	x0, x19
	mov	x1, x21
	bl	_dt_pq_getvalue
	cmp	x22, x0
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #16]
	lsl	x9, x20, #3
	ldr	x10, [x8, x9]
	lsl	x11, x21, #3
	ldr	x12, [x8, x11]
	str	x12, [x8, x9]
	ldr	x8, [x19, #16]
	str	x10, [x8, x11]
	cmp	x20, #3
	mov	x20, x21
	b.hi	LBB0_1
LBB0_3:
	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
