	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__prio_queue                ## -- Begin function cmd__prio_queue
	.p2align	4, 0x90
_cmd__prio_queue:                       ## @cmd__prio_queue
	.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	_intcmp@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	$0, -48(%rbp)
	movq	8(%rsi), %r13
	testq	%r13, %r13
	je	LBB0_16
## %bb.1:
	movq	%rsi, %r14
	addq	$8, %r14
	leaq	-56(%rbp), %r15
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$4, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	(%r14), %rdi
	callq	_atoi
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_prio_queue_put
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %r13
	addq	$8, %r14
	testq	%r13, %r13
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, -56(%rbp)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_prio_queue_peek
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_prio_queue_get
	movq	%rax, %rbx
	cmpq	%rax, %r13
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_BUG
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_show
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_prio_queue_peek
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %rdi
	callq	_show
	movq	%r15, %rdi
	callq	_prio_queue_peek
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_15
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_prio_queue_get
	movq	%rax, %r13
	cmpq	%rax, %rbx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r12, %rdi
	callq	_BUG
	jmp	LBB0_11
LBB0_16:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intcmp,4,2                     ## @intcmp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get"

L_.str.1:                               ## @.str.1
	.asciz	"peek and get results do not match"

L_.str.2:                               ## @.str.2
	.asciz	"dump"

L_.str.3:                               ## @.str.3
	.asciz	"stack"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__prio_queue                ; -- Begin function cmd__prio_queue
	.p2align	2
_cmd__prio_queue:                       ; @cmd__prio_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
Lloh0:
	adrp	x8, _intcmp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _intcmp@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	str	x8, [sp]
	str	wzr, [sp, #8]
	ldr	x24, [x19, #8]!
	cbz	x24, LBB0_16
; %bb.1:
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh9:
	adrp	x23, l_.str.3@PAGE
Lloh10:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #4
	bl	_xmalloc
	mov	x24, x0
	ldr	x0, [x19]
	bl	_atoi
	str	w0, [x24]
	mov	x0, sp
	mov	x1, x24
	bl	_prio_queue_put
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x19, #8]!
	cbz	x24, LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x0, x24
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_strcmp
	cbnz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [sp]
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, sp
	bl	_prio_queue_peek
	mov	x25, x0
	mov	x0, sp
	bl	_prio_queue_get
	mov	x24, x0
	cmp	x25, x0
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_BUG
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_show
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, sp
	bl	_prio_queue_peek
	cbz	x0, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x25
	bl	_show
	mov	x0, sp
	bl	_prio_queue_peek
	mov	x24, x0
	cbz	x0, LBB0_3
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, sp
	bl	_prio_queue_get
	mov	x25, x0
	cmp	x24, x0
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
	bl	_BUG
	b	LBB0_13
LBB0_16:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_intcmp,4,2                     ; @intcmp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get"

l_.str.1:                               ; @.str.1
	.asciz	"peek and get results do not match"

l_.str.2:                               ; @.str.2
	.asciz	"dump"

l_.str.3:                               ; @.str.3
	.asciz	"stack"

.subsections_via_symbols
