	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perform_query                  ## -- Begin function perform_query
	.p2align	4, 0x90
_perform_query:                         ## @perform_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_clear_res
	movq	_Q_words@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_has_empty_range
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_4
## %bb.3:
	movq	_Root@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_tree_depth
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_kprintf
LBB0_4:
	xorl	%eax, %eax
	callq	_ranking_query
	xorl	%eax, %eax
	callq	_free_all_list_decoders
	xorl	%eax, %eax
	callq	_postprocess_res
	movq	_Q_hash_group_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.6:
	movq	_R_tot@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_R_tot_groups@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_words,4,2                    ## @Q_words
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_Root,4,2                       ## @Root
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tree depth = %d\n"

	.comm	_Q_hash_group_mode,8,3          ## @Q_hash_group_mode
	.comm	_R_tot_groups,4,2               ## @R_tot_groups
	.comm	_R_tot,4,2                      ## @R_tot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perform_query                  ; -- Begin function perform_query
	.p2align	2
_perform_query:                         ; @perform_query
	.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	_clear_res
Lloh0:
	adrp	x8, _Q_words@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Q_words@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	bl	_has_empty_range
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _verbosity@GOTPAGE
Lloh4:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _Root@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Root@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_tree_depth
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kprintf
LBB0_5:
	bl	_ranking_query
	bl	_free_all_list_decoders
	bl	_postprocess_res
Lloh11:
	adrp	x8, _Q_hash_group_mode@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Q_hash_group_mode@GOTPAGEOFF]
Lloh13:
	adrp	x9, _R_tot_groups@GOTPAGE
Lloh14:
	ldr	x9, [x9, _R_tot_groups@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x10, _R_tot@GOTPAGE
Lloh17:
	ldr	x10, [x10, _R_tot@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_words,4,2                    ; @Q_words
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_Root,4,2                       ; @Root
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tree depth = %d\n"

	.comm	_Q_hash_group_mode,8,3          ; @Q_hash_group_mode
	.comm	_R_tot_groups,4,2               ; @R_tot_groups
	.comm	_R_tot,4,2                      ; @R_tot
.subsections_via_symbols
