	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perform_ext_query              ## -- Begin function perform_ext_query
	.p2align	4, 0x90
_perform_ext_query:                     ## @perform_ext_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_verbosity@GOTPCREL(%rip), %r15
	cmpl	$2, (%r15)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_Q_root@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rdi
	callq	_dump_query_tree
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	_Q_root@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	setne	%al
	movq	_Q_words@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_query_optimize_kill_dups
	cmpl	$2, (%r15)
	jl	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	(%r13), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r13), %rdi
	callq	_dump_query_tree
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_4:
	movq	_reoptimize_flag@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movq	(%r13), %rdi
	callq	_prepare_query_iterators
	testq	%rax, %rax
	js	LBB0_16
## %bb.5:
	movq	_MIN_ITEM_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_qn_false@GOTPCREL(%rip), %r15
	movq	_MAX_ITEM_ID@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rdi
	callq	_optimize_query
	movq	%rax, (%r13)
	movq	$0, (%r14)
	movq	_verbosity@GOTPCREL(%rip), %rcx
	cmpl	$2, (%rcx)
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r13), %rdi
	callq	_dump_query_tree
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rdi
	movq	8(%rdi), %rax
	cmpq	(%r15), %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	%rbx, %rsi
	callq	_advance_iterators
	cmpq	(%r12), %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movq	(%r13), %rax
	movl	(%rax), %esi
	movl	16(%rax), %edi
	cmpl	$10, %esi
	movl	$10, %eax
	cmovgel	%eax, %esi
	callq	_store_res
	testq	%rax, %rax
	jne	LBB0_6
LBB0_12:
	xorl	%eax, %eax
	callq	_postprocess_res
	movq	_Q_hash_group_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.14:
	movq	_R_tot@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_R_tot_groups@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"performing extended query: root=%p\n"

	.comm	_Q_root,8,3                     ## @Q_root
L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.comm	_Q_words,4,2                    ## @Q_words
L_.str.2:                               ## @.str.2
	.asciz	"after killing duplicate words: root=%p\n"

	.comm	_reoptimize_flag,8,3            ## @reoptimize_flag
	.comm	_MIN_ITEM_ID,8,3                ## @MIN_ITEM_ID
L_.str.3:                               ## @.str.3
	.asciz	"query after optimization: root=%p\n"

	.comm	_qn_false,8,3                   ## @qn_false
	.comm	_MAX_ITEM_ID,8,3                ## @MAX_ITEM_ID
	.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_ext_query              ; -- Begin function perform_ext_query
	.p2align	2
_perform_ext_query:                     ; @perform_ext_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x22, _verbosity@GOTPAGE
Lloh1:
	ldr	x22, [x22, _verbosity@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _stderr@GOTPAGE
Lloh3:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
Lloh4:
	adrp	x24, _Q_root@GOTPAGE
Lloh5:
	ldr	x24, [x24, _Q_root@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x23]
	ldr	x8, [x24]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x0, [x24]
	bl	_dump_query_tree
	ldr	w0, [x23]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldr	x8, [x24]
	cmp	x8, #0
Lloh10:
	adrp	x8, _Q_words@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Q_words@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ccmp	w8, #0, #0, ne
	cset	w0, eq
	bl	_assert
	bl	_query_optimize_kill_dups
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
	ldr	w0, [x23]
	ldr	x8, [x24]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	x0, [x24]
	bl	_dump_query_tree
	ldr	w0, [x23]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_4:
Lloh17:
	adrp	x25, _reoptimize_flag@GOTPAGE
Lloh18:
	ldr	x25, [x25, _reoptimize_flag@GOTPAGEOFF]
	str	xzr, [x25]
	ldr	x0, [x24]
	bl	_prepare_query_iterators
	tbnz	x0, #63, LBB0_13
; %bb.5:
Lloh19:
	adrp	x8, _MIN_ITEM_ID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MIN_ITEM_ID@GOTPAGEOFF]
Lloh21:
	adrp	x26, _qn_false@GOTPAGE
Lloh22:
	ldr	x26, [x26, _qn_false@GOTPAGEOFF]
Lloh23:
	adrp	x27, _MAX_ITEM_ID@GOTPAGE
Lloh24:
	ldr	x27, [x27, _MAX_ITEM_ID@GOTPAGEOFF]
Lloh25:
	ldr	x21, [x8]
	mov	w28, #10
Lloh26:
	adrp	x19, l_.str.3@PAGE
Lloh27:
	add	x19, x19, l_.str.3@PAGEOFF
Lloh28:
	adrp	x20, l_.str.1@PAGE
Lloh29:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	cbz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x24]
	bl	_optimize_query
	str	x0, [x24]
	str	xzr, [x25]
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	str	x0, [sp]
	mov	x0, x8
	mov	x1, x19
	bl	_fprintf
	ldr	x0, [x24]
	bl	_dump_query_tree
	ldr	w0, [x23]
	mov	x1, x20
	bl	_fprintf
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x24]
	ldr	x8, [x0, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x21, #1
	bl	_advance_iterators
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	ldr	x8, [x24]
	ldr	w0, [x8, #16]
	ldr	w8, [x8]
	cmp	w8, #10
	csel	w1, w8, w28, lt
	bl	_store_res
	cbnz	x0, LBB0_6
LBB0_12:
	bl	_postprocess_res
Lloh30:
	adrp	x8, _Q_hash_group_mode@GOTPAGE
Lloh31:
	ldr	x8, [x8, _Q_hash_group_mode@GOTPAGEOFF]
Lloh32:
	adrp	x9, _R_tot_groups@GOTPAGE
Lloh33:
	ldr	x9, [x9, _R_tot_groups@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
Lloh35:
	adrp	x10, _R_tot@GOTPAGE
Lloh36:
	ldr	x10, [x10, _R_tot@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w0, [x8]
	b	LBB0_14
LBB0_13:
	mov	w0, #0
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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh25
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"performing extended query: root=%p\n"

	.comm	_Q_root,8,3                     ; @Q_root
l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.comm	_Q_words,4,2                    ; @Q_words
l_.str.2:                               ; @.str.2
	.asciz	"after killing duplicate words: root=%p\n"

	.comm	_reoptimize_flag,8,3            ; @reoptimize_flag
	.comm	_MIN_ITEM_ID,8,3                ; @MIN_ITEM_ID
l_.str.3:                               ; @.str.3
	.asciz	"query after optimization: root=%p\n"

	.comm	_qn_false,8,3                   ; @qn_false
	.comm	_MAX_ITEM_ID,8,3                ; @MAX_ITEM_ID
	.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
