	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prio_queue_reverse             ## -- Begin function prio_queue_reverse
	.p2align	4, 0x90
_prio_queue_reverse:                    ## @prio_queue_reverse
	.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	%rdi, %r14
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_2:
	movl	(%r14), %edx
	decl	%edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movl	$-1, %r12d
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r15), %esi
	movq	%r14, %rdi
	callq	_swap
	movl	(%r14), %eax
	leal	(%rax,%r12), %ecx
	decl	%ecx
	movl	%eax, %edx
	subl	%ebx, %edx
	incl	%ebx
	addl	$-2, %edx
	movl	%r12d, %eax
	decl	%eax
	leal	1(%r15), %esi
	movl	%eax, %r12d
	cmpl	%ecx, %r15d
	movl	%esi, %r15d
	jl	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prio_queue_reverse() on non-LIFO queue"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prio_queue_reverse             ; -- Begin function prio_queue_reverse
	.p2align	2
_prio_queue_reverse:                    ; @prio_queue_reverse
	.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, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_2:
	ldr	w8, [x19]
	sub	w2, w8, #1
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w22, #0
	mov	w20, #-1
	mov	w21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w1, w21, #1
	mov	x0, x19
	bl	_swap
	ldr	w8, [x19]
	sub	w9, w8, w22
	add	w22, w22, #1
	sub	w2, w9, #2
	sub	w20, w20, #1
	add	w8, w8, w20
	cmp	w21, w8
	add	w21, w21, #1
	b.lt	LBB0_4
LBB0_5:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prio_queue_reverse() on non-LIFO queue"

.subsections_via_symbols
