	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mix_priority_with_rating
_mix_priority_with_rating:              ## @mix_priority_with_rating
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_order@GOTPCREL(%rip), %rax
	movl	$5, %ecx
	subl	%esi, %ecx
	addl	$-5, %esi
	cmpl	$1, (%rax)
	movq	%rdi, %r14
	cmovel	%ecx, %esi
	imull	$100000000, %esi, %eax          ## imm = 0x5F5E100
	movslq	%eax, %rbx
	movl	8(%rdi), %edi
	movq	_Q_type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_bitno
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rcx
	cltq
	addq	(%rcx,%rax,8), %rbx
LBB0_2:
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	cmovlq	%rbx, %rcx
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	cmovgel	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_order,4,2                      ## @order
	.comm	_Q_type,4,2                     ## @Q_type
	.comm	_INT_MIN,8,3                    ## @INT_MIN
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.no_dead_strip	_mix_priority_with_rating
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mix_priority_with_rating
_mix_priority_with_rating:              ; @mix_priority_with_rating
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _order@GOTPAGE
Lloh1:
	ldr	x8, [x8, _order@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #5
	sub	w9, w9, w1
	sub	w10, w1, #5
	cmp	w8, #1
	csel	w8, w9, w10, eq
	mov	w9, #57600
	movk	w9, #1525, lsl #16
	mul	w8, w8, w9
	sxtw	x20, w8
	ldr	w0, [x0, #8]
Lloh3:
	adrp	x8, _Q_type@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Q_type@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_get_bitno
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8, w0, sxtw #3]
	add	x20, x8, x20
LBB0_2:
Lloh6:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x20, x9
	csel	x9, x20, x9, lt
	cmp	x20, x8
	csel	w0, w8, w9, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_order,4,2                      ; @order
	.comm	_Q_type,4,2                     ; @Q_type
	.comm	_INT_MIN,8,3                    ; @INT_MIN
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.no_dead_strip	_mix_priority_with_rating
.subsections_via_symbols
