	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_pq_pop                      ## -- Begin function dt_pq_pop
	.p2align	4, 0x90
_dt_pq_pop:                             ## @dt_pq_pop
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	setg	%dil
	callq	_assert
	movslq	(%rbx), %rsi
	cmpq	$1, %rsi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	8(%rbx), %rcx
	movq	8(%rcx), %rax
	leaq	-1(%rsi), %r15
	movl	%r15d, (%rbx)
	movq	-8(%rcx,%rsi,8), %rdx
	movq	%rdx, 8(%rcx)
	movq	8(%rbx), %rcx
	movq	$0, -8(%rcx,%rsi,8)
	cmpl	$4, %esi
	jl	LBB0_9
## %bb.3:
	movq	%rbx, %r12
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$2, %ebx
	movl	$3, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_dt_pq_getvalue
	movq	%rax, %r14
	cmpl	%r15d, %r13d
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_dt_pq_getvalue
	cmpq	%rax, %r14
	cmovgel	%r13d, %ebx
	cmovgeq	%rax, %r14
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %r15d
	movq	%r12, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_dt_pq_getvalue
	cmpq	%rax, %r14
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rdx
	movslq	%r15d, %rsi
	movq	(%rax,%rsi,8), %rdi
	movq	%rdi, (%rax,%rcx,8)
	movq	8(%r12), %rax
	movq	%rdx, (%rax,%rsi,8)
	leal	(%rsi,%rsi), %r13d
	incl	%r13d
	movl	%esi, %ebx
	addl	%esi, %ebx
	movl	%r15d, %eax
	movl	(%r12), %r15d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%r15d, %ebx
	jl	LBB0_4
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_pop                      ; -- Begin function dt_pq_pop
	.p2align	2
_dt_pq_pop:                             ; @dt_pq_pop
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	ldr	w8, [x19]
	subs	w25, w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_9
LBB0_2:
	ldr	x9, [x19, #8]
	ldr	x20, [x9, #8]
	sbfiz	x10, x25, #3, #32
	ldr	x11, [x9, x10]
	str	w25, [x19]
	str	x11, [x9, #8]
	ldr	x9, [x19, #8]
	str	xzr, [x9, x10]
	cmp	w8, #4
	b.lt	LBB0_9
; %bb.3:
	mov	w21, #1
	mov	w22, #2
	mov	w23, #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_dt_pq_getvalue
	mov	x24, x0
	cmp	w23, w25
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_dt_pq_getvalue
	cmp	x24, x0
	csel	x24, x24, x0, lt
	csel	w26, w22, w23, lt
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x22
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_dt_pq_getvalue
	cmp	x24, x0
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	sbfiz	x9, x21, #3, #32
	ldr	x10, [x8, x9]
	sbfiz	x11, x26, #3, #32
	ldr	x12, [x8, x11]
	str	x12, [x8, x9]
	ldr	x8, [x19, #8]
	str	x10, [x8, x11]
	lsl	w22, w26, #1
	mov	w23, #1
	bfi	w23, w26, #1, #31
	ldr	w25, [x19]
	mov	x21, x26
	cmp	w22, w25
	b.lt	LBB0_4
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
