	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_relevance_search_query      ## -- Begin function do_relevance_search_query
	.p2align	4, 0x90
_do_relevance_search_query:             ## @do_relevance_search_query
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$0, -44(%rbp)
	leaq	-84(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_parse_relevance_search_query
	movl	-44(%rbp), %r8d
	testl	%r8d, %r8d
	js	LBB0_7
## %bb.1:
	movq	_search_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_relevance_search_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_do_perform_query
	movl	%eax, %r13d
	movslq	%r14d, %rax
	subq	%rax, %rbx
	addl	%r12d, %r14d
	movl	-84(%rbp), %r8d
	leaq	-80(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	movl	$64, %r9d
	callq	_value_buffer_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	_Q_hash_group_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.3:
	movq	_Q_limit@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setg	%dil
	callq	_assert
	movq	_R_tot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdi
	callq	*-80(%rbp)
	movq	_R_cnt@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.4:
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r15
	movq	_R@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_value_buffer_flush
	testl	%eax, %eax
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	$44, %esi
	callq	*-72(%rbp)
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*-64(%rbp)
	movq	%r15, %rdi
	movl	$44, %esi
	callq	*-72(%rbp)
	movq	_RV@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	*-80(%rbp)
	movq	%r15, %rdi
	movl	$44, %esi
	callq	*-72(%rbp)
	movq	-56(%rbp), %r13
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_extract_hash_item
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	*%r13
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_13
LBB0_7:
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	callq	_vkprintf
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movq	%r13, %r8
	callq	_return_error
	jmp	LBB0_16
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_9:
	leaq	-80(%rbp), %rdi
	movl	%r13d, %esi
	callq	*-80(%rbp)
	movq	_R_cnt@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.10:
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r15
	movq	_R@GOTPCREL(%rip), %r12
	movq	_RV@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_value_buffer_flush
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movl	$44, %esi
	callq	*-72(%rbp)
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*-64(%rbp)
	movq	%r15, %rdi
	movl	$44, %esi
	callq	*-72(%rbp)
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	*-80(%rbp)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_13:
	leaq	-80(%rbp), %rdi
	callq	_value_buffer_return
	jmp	LBB0_16
LBB0_15:
	movl	$-1, %eax
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parse_relevance_search_query (%.*s) returns error code %d.\n"

	.comm	_search_queries,4,2             ## @search_queries
	.comm	_relevance_search_queries,4,2   ## @relevance_search_queries
	.comm	_Q_hash_group_mode,8,3          ## @Q_hash_group_mode
	.comm	_Q_limit,8,3                    ## @Q_limit
	.comm	_R_tot,4,2                      ## @R_tot
	.comm	_R_cnt,4,2                      ## @R_cnt
	.comm	_R,8,3                          ## @R
	.comm	_RV,8,3                         ## @RV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_relevance_search_query      ; -- Begin function do_relevance_search_query
	.p2align	2
_do_relevance_search_query:             ; @do_relevance_search_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	str	wzr, [sp, #40]
	add	x1, sp, #44
	add	x2, sp, #40
	mov	x0, x22
	mov	w3, #1
	bl	_parse_relevance_search_query
	ldr	w4, [sp, #40]
	tbnz	w4, #31, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _search_queries@GOTPAGE
Lloh1:
	ldr	x8, [x8, _search_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh2:
	adrp	x8, _relevance_search_queries@GOTPAGE
Lloh3:
	ldr	x8, [x8, _relevance_search_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_do_perform_query
	mov	x23, x0
	sub	x2, x22, w20, sxtw
	add	w3, w20, w21
	ldr	w4, [sp, #44]
	add	x0, sp, #8
	mov	x1, x19
	mov	w5, #64
	bl	_value_buffer_init
	cbz	w0, LBB0_14
; %bb.2:
Lloh4:
	adrp	x8, _Q_hash_group_mode@GOTPAGE
Lloh5:
	ldr	x8, [x8, _Q_hash_group_mode@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.3:
Lloh7:
	adrp	x8, _Q_limit@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Q_limit@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [sp, #8]
Lloh10:
	adrp	x9, _R_tot@GOTPAGE
Lloh11:
	ldr	x9, [x9, _R_tot@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	add	x0, sp, #8
	blr	x8
Lloh13:
	adrp	x19, _R_cnt@GOTPAGE
Lloh14:
	ldr	x19, [x19, _R_cnt@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x20, #0
Lloh15:
	adrp	x21, _R@GOTPAGE
Lloh16:
	ldr	x21, [x21, _R@GOTPAGEOFF]
Lloh17:
	adrp	x22, _RV@GOTPAGE
Lloh18:
	ldr	x22, [x22, _RV@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_value_buffer_flush
	cbz	w0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #16]
	add	x0, sp, #8
	mov	w1, #44
	blr	x8
	ldr	x8, [sp, #24]
	ldr	x9, [x21]
	lsl	x23, x20, #3
	ldr	x9, [x9, x23]
	ldr	w1, [x9]
	add	x0, sp, #8
	blr	x8
	ldr	x8, [sp, #16]
	add	x0, sp, #8
	mov	w1, #44
	blr	x8
	ldr	x8, [sp, #8]
	ldr	x9, [x22]
	ldr	w1, [x9, x20, lsl #2]
	add	x0, sp, #8
	blr	x8
	ldr	x8, [sp, #16]
	add	x0, sp, #8
	mov	w1, #44
	blr	x8
	ldr	x24, [sp, #32]
	ldr	x8, [x21]
	ldr	x0, [x8, x23]
	bl	_extract_hash_item
	mov	x1, x0
	add	x0, sp, #8
	blr	x24
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_5
	b	LBB0_12
LBB0_7:
	mov	x23, x0
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	mov	x3, x22
	bl	_vkprintf
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	bl	_return_error
	b	LBB0_14
LBB0_8:
	ldr	x8, [sp, #8]
	add	x0, sp, #8
	mov	x1, x23
	blr	x8
Lloh21:
	adrp	x19, _R_cnt@GOTPAGE
Lloh22:
	ldr	x19, [x19, _R_cnt@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x20, #0
Lloh23:
	adrp	x21, _R@GOTPAGE
Lloh24:
	ldr	x21, [x21, _R@GOTPAGEOFF]
Lloh25:
	adrp	x22, _RV@GOTPAGE
Lloh26:
	ldr	x22, [x22, _RV@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_value_buffer_flush
	cbz	w0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #16]
	add	x0, sp, #8
	mov	w1, #44
	blr	x8
	ldr	x8, [sp, #24]
	ldr	x9, [x21]
	ldr	x9, [x9, x20, lsl #3]
	ldr	w1, [x9]
	add	x0, sp, #8
	blr	x8
	ldr	x8, [sp, #16]
	add	x0, sp, #8
	mov	w1, #44
	blr	x8
	ldr	x8, [sp, #8]
	ldr	x9, [x22]
	ldr	w1, [x9, x20, lsl #2]
	add	x0, sp, #8
	blr	x8
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_10
LBB0_12:
	add	x0, sp, #8
	bl	_value_buffer_return
	b	LBB0_14
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parse_relevance_search_query (%.*s) returns error code %d.\n"

	.comm	_search_queries,4,2             ; @search_queries
	.comm	_relevance_search_queries,4,2   ; @relevance_search_queries
	.comm	_Q_hash_group_mode,8,3          ; @Q_hash_group_mode
	.comm	_Q_limit,8,3                    ; @Q_limit
	.comm	_R_tot,4,2                      ; @R_tot
	.comm	_R_cnt,4,2                      ; @R_cnt
	.comm	_R,8,3                          ; @R
	.comm	_RV,8,3                         ; @RV
.subsections_via_symbols
