	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prio_queue_get                 ## -- Begin function prio_queue_get
	.p2align	4, 0x90
_prio_queue_get:                        ## @prio_queue_get
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	cmpl	$0, 16(%rdi)
	movq	8(%rdi), %rdx
	je	LBB0_3
## %bb.4:
	movq	(%rdx), %rax
	movq	%rcx, %rsi
	decq	%rsi
	movq	%rsi, (%r15)
	je	LBB0_13
## %bb.5:
	movq	-8(%rdx,%rcx,8), %rcx
	movq	%rcx, (%rdx)
	cmpq	$1, %rsi
	je	LBB0_13
## %bb.6:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	$1, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addl	$2, %ebx
	movslq	%ebx, %rcx
	cmpq	%rcx, %rsi
	jbe	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_compare
	testq	%rax, %rax
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, %r14d
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_compare
	testq	%rax, %rax
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_swap
	leal	(%r14,%r14), %ebx
	leal	(%r14,%r14), %r13d
	incl	%r13d
	movslq	%r13d, %rcx
	movq	(%r15), %rsi
	movl	%r14d, %r12d
	cmpq	%rcx, %rsi
	ja	LBB0_7
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_3:
	leaq	-1(%rcx), %rax
	movq	%rax, (%r15)
	movq	-8(%rdx,%rcx,8), %rax
LBB0_13:
	addq	$8, %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	_prio_queue_get                 ; -- Begin function prio_queue_get
	.p2align	2
_prio_queue_get:                        ; @prio_queue_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x20, x0
	ldr	w10, [x0, #16]
	ldr	x9, [x0, #8]
	cbz	w10, LBB0_11
; %bb.2:
	ldr	x19, [x9]
	subs	x8, x8, #1
	str	x8, [x20]
	b.eq	LBB0_12
; %bb.3:
	ldr	x10, [x9, x8, lsl #3]
	str	x10, [x9]
	cmp	x8, #1
	b.eq	LBB0_12
; %bb.4:
	mov	w9, #0
	mov	w21, #0
	mov	w22, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w9, #2
	cmp	x8, w23, sxtw
	b.ls	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_compare
	cmp	x0, #0
	csel	w23, w22, w23, lt
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x22
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_compare
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_swap
	lsl	w9, w23, #1
	mov	w22, #1
	bfi	w22, w23, #1, #31
	ldr	x8, [x20]
	cmp	x8, w22, sxtw
	mov	x21, x23
	b.hi	LBB0_5
	b	LBB0_12
LBB0_10:
	mov	x19, #0
	b	LBB0_12
LBB0_11:
	sub	x8, x8, #1
	str	x8, [x20]
	ldr	x19, [x9, x8, lsl #3]
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
