	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_order
_init_order:                            ## @init_order
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_Q_order@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movzbl	%dl, %ecx
	movq	_Q_type@GOTPCREL(%rip), %rbx
	movl	%ecx, (%rbx)
	movq	_FLAG_REVERSE_SEARCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	cmpl	$1, %eax
	movl	$2, %r8d
	sbbl	$0, %r8d
	movq	_order@GOTPCREL(%rip), %rax
	movl	%r8d, (%rax)
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_vkprintf
	movq	_evaluate_rating@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movl	(%rbx), %eax
	movq	_MAX_RATES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	2(%rcx), %edx
	cmpl	%edx, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_tbl_relevance_init
	xorl	%eax, %eax
	callq	_optional_tags_init
	movq	_evaluate_relevance_search_rating@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	leal	1(%rcx), %edx
	cmpl	%edx, %eax
	jne	LBB0_4
## %bb.3:
	movq	_random_rating@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_FLAG_ENTRY_SORT_SEARCH@GOTPCREL(%rip), %rdx
	movq	_FLAG_PRIORITY_SORT_SEARCH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%esi, (%r15)
	je	LBB0_8
## %bb.5:
	cmpl	%ecx, %eax
	jne	LBB0_7
## %bb.6:
	movq	_mix_priority_with_object_id@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	cmpl	%ecx, %eax
	jne	LBB0_10
## %bb.9:
	movq	_get_rating_as_object_id@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	xorl	%edi, %edi
	cmpl	$16, %eax
	setl	%dil
	callq	_assert
	movq	_mix_priority_with_rating@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	xorl	%edi, %edi
	cmpl	$16, %eax
	setl	%dil
	callq	_assert
	movq	_get_rating@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_order,4,2                    ## @Q_order
	.comm	_Q_type,4,2                     ## @Q_type
	.comm	_FLAG_REVERSE_SEARCH,4,2        ## @FLAG_REVERSE_SEARCH
	.comm	_order,4,2                      ## @order
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Q_order = %d, Q_type = %d, order = %d\n"

	.comm	_evaluate_rating,8,3            ## @evaluate_rating
	.comm	_MAX_RATES,4,2                  ## @MAX_RATES
	.comm	_evaluate_relevance_search_rating,8,3 ## @evaluate_relevance_search_rating
	.comm	_random_rating,8,3              ## @random_rating
	.comm	_FLAG_ENTRY_SORT_SEARCH,4,2     ## @FLAG_ENTRY_SORT_SEARCH
	.comm	_FLAG_PRIORITY_SORT_SEARCH,4,2  ## @FLAG_PRIORITY_SORT_SEARCH
	.comm	_mix_priority_with_object_id,8,3 ## @mix_priority_with_object_id
	.comm	_mix_priority_with_rating,8,3   ## @mix_priority_with_rating
	.comm	_get_rating_as_object_id,8,3    ## @get_rating_as_object_id
	.comm	_get_rating,8,3                 ## @get_rating
	.no_dead_strip	_init_order
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_order
_init_order:                            ; @init_order
	.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
Lloh0:
	adrp	x20, _Q_order@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Q_order@GOTPAGEOFF]
	ldr	w2, [x20]
	and	w3, w2, #0xff
Lloh2:
	adrp	x21, _Q_type@GOTPAGE
Lloh3:
	ldr	x21, [x21, _Q_type@GOTPAGEOFF]
	str	w3, [x21]
Lloh4:
	adrp	x8, _FLAG_REVERSE_SEARCH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FLAG_REVERSE_SEARCH@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w2
	mov	w8, #1
	cinc	w4, w8, ne
Lloh7:
	adrp	x8, _order@GOTPAGE
Lloh8:
	ldr	x8, [x8, _order@GOTPAGEOFF]
Lloh9:
	str	w4, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
Lloh12:
	adrp	x19, _evaluate_rating@GOTPAGE
Lloh13:
	ldr	x19, [x19, _evaluate_rating@GOTPAGEOFF]
	str	xzr, [x19]
	ldr	w8, [x21]
Lloh14:
	adrp	x9, _MAX_RATES@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MAX_RATES@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	add	w10, w9, #2
	cmp	w8, w10
	b.ne	LBB0_2
; %bb.1:
	bl	_tbl_relevance_init
	bl	_optional_tags_init
Lloh17:
	adrp	x8, _evaluate_relevance_search_rating@GOTPAGE
Lloh18:
	ldr	x8, [x8, _evaluate_relevance_search_rating@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	add	w10, w9, #1
	cmp	w8, w10
	b.ne	LBB0_4
; %bb.3:
Lloh19:
	adrp	x8, _random_rating@GOTPAGE
Lloh20:
	ldr	x8, [x8, _random_rating@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	ldr	w10, [x20]
Lloh21:
	adrp	x11, _FLAG_ENTRY_SORT_SEARCH@GOTPAGE
Lloh22:
	ldr	x11, [x11, _FLAG_ENTRY_SORT_SEARCH@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
Lloh24:
	adrp	x12, _FLAG_PRIORITY_SORT_SEARCH@GOTPAGE
Lloh25:
	ldr	x12, [x12, _FLAG_PRIORITY_SORT_SEARCH@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w11, w10
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.6:
Lloh27:
	adrp	x8, _mix_priority_with_object_id@GOTPAGE
Lloh28:
	ldr	x8, [x8, _mix_priority_with_object_id@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.8:
Lloh29:
	adrp	x8, _get_rating_as_object_id@GOTPAGE
Lloh30:
	ldr	x8, [x8, _get_rating_as_object_id@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	cmp	w8, #16
	cset	w0, lt
	bl	_assert
Lloh31:
	adrp	x8, _mix_priority_with_rating@GOTPAGE
Lloh32:
	ldr	x8, [x8, _mix_priority_with_rating@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	cmp	w8, #16
	cset	w0, lt
	bl	_assert
Lloh33:
	adrp	x8, _get_rating@GOTPAGE
Lloh34:
	ldr	x8, [x8, _get_rating@GOTPAGEOFF]
LBB0_11:
	ldr	x8, [x8]
	str	x8, [x19]
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_order,4,2                    ; @Q_order
	.comm	_Q_type,4,2                     ; @Q_type
	.comm	_FLAG_REVERSE_SEARCH,4,2        ; @FLAG_REVERSE_SEARCH
	.comm	_order,4,2                      ; @order
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Q_order = %d, Q_type = %d, order = %d\n"

	.comm	_evaluate_rating,8,3            ; @evaluate_rating
	.comm	_MAX_RATES,4,2                  ; @MAX_RATES
	.comm	_evaluate_relevance_search_rating,8,3 ; @evaluate_relevance_search_rating
	.comm	_random_rating,8,3              ; @random_rating
	.comm	_FLAG_ENTRY_SORT_SEARCH,4,2     ; @FLAG_ENTRY_SORT_SEARCH
	.comm	_FLAG_PRIORITY_SORT_SEARCH,4,2  ; @FLAG_PRIORITY_SORT_SEARCH
	.comm	_mix_priority_with_object_id,8,3 ; @mix_priority_with_object_id
	.comm	_mix_priority_with_rating,8,3   ; @mix_priority_with_rating
	.comm	_get_rating_as_object_id,8,3    ; @get_rating_as_object_id
	.comm	_get_rating,8,3                 ; @get_rating
	.no_dead_strip	_init_order
.subsections_via_symbols
