	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function queue_prio
_queue_prio:                            ## @queue_prio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_rb_first_cached
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_to_priolist
	movl	(%rax), %edx
	movl	4(%rax), %esi
	incl	%edx
	movq	_I915_USER_PRIORITY_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	bsfl	%esi, %eax
	notl	%eax
	cmovel	%esi, %eax
	addl	%edx, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MIN,4,2                    ## @INT_MIN
	.comm	_I915_USER_PRIORITY_SHIFT,4,2   ## @I915_USER_PRIORITY_SHIFT
	.no_dead_strip	_queue_prio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function queue_prio
_queue_prio:                            ; @queue_prio
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_rb_first_cached
	cbz	x0, LBB0_2
; %bb.1:
	bl	_to_priolist
	ldp	w8, w9, [x0]
	add	w8, w8, #1
Lloh0:
	adrp	x10, _I915_USER_PRIORITY_SHIFT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I915_USER_PRIORITY_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	rbit	w10, w9
	clz	w10, w10
	cmp	w9, #0
	csinv	w9, wzr, w10, eq
	add	w0, w9, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MIN,4,2                    ; @INT_MIN
	.comm	_I915_USER_PRIORITY_SHIFT,4,2   ; @I915_USER_PRIORITY_SHIFT
	.no_dead_strip	_queue_prio
.subsections_via_symbols
