	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_kill_duplicate_words
_query_kill_duplicate_words:            ## @query_kill_duplicate_words
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_qn_cum_and@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_4
## %bb.3:
	movq	_qn_cum_or@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.30:
	movq	24(%r15), %rdi
	callq	_query_kill_duplicate_words
	movq	%rax, 24(%r15)
	movq	16(%r15), %rdi
	callq	_query_kill_duplicate_words
	movq	%rax, 16(%r15)
	jmp	LBB0_29
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_29
LBB0_4:
	cmpq	%rcx, %rax
	jne	LBB0_5
## %bb.6:
	movq	_qn_and@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_qn_or@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r12d
	movq	40(%r15), %rbx
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_query_kill_duplicate_words
	movq	%rax, (%rbx)
	movq	8(%rbx), %rbx
	addl	$8, %r14d
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_10:
	movl	%r14d, %edi
	callq	_zzmalloc
	movq	%rax, %r14
	movq	40(%r15), %rax
	testq	%rax, %rax
	je	LBB0_31
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	movq	%rcx, (%r14,%rbx,8)
	incq	%rbx
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	testl	%ebx, %ebx
	je	LBB0_31
## %bb.14:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%ebx, %r13d
	xorl	%r12d, %r12d
	movq	_qn_word@GOTPCREL(%rip), %r15
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r12
	cmpq	%r12, %r13
	je	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r12,8), %rax
	movq	(%rax), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%rax), %rdi
	callq	_get_word_frequency
	movq	(%r14,%r12,8), %rcx
	movl	%eax, 32(%rcx)
	jmp	LBB0_17
LBB0_31:
	movq	_cmp_query_node@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_qsort
	movq	(%r14), %r15
	jmp	LBB0_28
LBB0_18:
	movq	_cmp_query_node@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_qsort
	cmpl	$1, %ebx
	movl	-48(%rbp), %r10d                ## 4-byte Reload
	jbe	LBB0_19
## %bb.20:
	movq	(%r15), %r8
	movl	%ebx, %r9d
	xorl	%r11d, %r11d
	movl	$1, %edx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	leal	1(%rdi), %r11d
	movq	%rsi, 8(%r14,%rdi,8)
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rdx
	cmpq	%rdx, %r9
	je	LBB0_25
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rdx,8), %rsi
	movslq	%r11d, %rdi
	cmpq	%r8, (%rsi)
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	8(%rsi), %rax
	movq	(%r14,%rdi,8), %rcx
	cmpq	8(%rcx), %rax
	jne	LBB0_23
	jmp	LBB0_24
LBB0_19:
	movq	(%r14), %r15
	jmp	LBB0_28
LBB0_25:
	movq	(%r14), %r15
	testl	%r11d, %r11d
	jle	LBB0_28
## %bb.26:
	movslq	%r10d, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	incl	%r11d
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_tot_query_nodes_kill_dup@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	xorl	%edi, %edi
	movq	_MAX_QUERY_NODES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setl	%dil
	movq	%r11, %r15
	callq	_assert
	movq	%r15, %r11
	movq	_query_nodes_kill_dup_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%r13)
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r15
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%rcx)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 24(%rax,%rcx)
	movq	(%r14,%r12,8), %rdx
	movq	%rdx, 16(%rax,%rcx)
	incq	%r12
	cmpq	%r12, %r11
	jne	LBB0_27
LBB0_28:
	shll	$3, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_zzfree
LBB0_29:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qn_cum_and,8,3                 ## @qn_cum_and
	.comm	_qn_cum_or,8,3                  ## @qn_cum_or
	.comm	_qn_and,4,2                     ## @qn_and
	.comm	_qn_or,4,2                      ## @qn_or
	.comm	_qn_word,8,3                    ## @qn_word
	.comm	_cmp_query_node,4,2             ## @cmp_query_node
	.comm	_tot_query_nodes_kill_dup,8,3   ## @tot_query_nodes_kill_dup
	.comm	_MAX_QUERY_NODES,8,3            ## @MAX_QUERY_NODES
	.comm	_query_nodes_kill_dup_buffer,8,3 ## @query_nodes_kill_dup_buffer
	.no_dead_strip	_query_kill_duplicate_words
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_kill_duplicate_words
_query_kill_duplicate_words:            ; @query_kill_duplicate_words
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x0
	cbz	x0, LBB0_24
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _qn_cum_and@GOTPAGE
Lloh1:
	ldr	x9, [x9, _qn_cum_and@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _qn_cum_or@GOTPAGE
Lloh4:
	ldr	x10, [x10, _qn_cum_or@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x10, _qn_and@GOTPAGE
Lloh7:
	ldr	x10, [x10, _qn_and@GOTPAGEOFF]
Lloh8:
	adrp	x11, _qn_or@GOTPAGE
Lloh9:
	ldr	x11, [x11, _qn_or@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w22, [x8]
	ldr	x20, [x21, #40]
	cbz	x20, LBB0_6
; %bb.3:
	mov	w19, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_query_kill_duplicate_words
	str	x0, [x20]
	ldr	x20, [x20, #8]
	add	w19, w19, #8
	cbnz	x20, LBB0_4
	b	LBB0_7
LBB0_5:
	ldr	x0, [x21, #24]
	bl	_query_kill_duplicate_words
	str	x0, [x21, #24]
	ldr	x0, [x21, #16]
	bl	_query_kill_duplicate_words
	str	x0, [x21, #16]
	b	LBB0_24
LBB0_6:
	mov	w19, #0
LBB0_7:
	mov	x0, x19
	bl	_zzmalloc
	mov	x19, x0
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_15
; %bb.8:
	mov	x20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	str	x9, [x19, x20, lsl #3]
	add	x20, x20, #1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_9
; %bb.10:
	cbz	w20, LBB0_15
; %bb.11:
	mov	x23, #0
	and	x8, x20, #0xffffffff
	lsl	x24, x8, #3
Lloh10:
	adrp	x21, _qn_word@GOTPAGE
Lloh11:
	ldr	x21, [x21, _qn_word@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #8
	cmp	x24, x23
	b.eq	LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, x23]
	ldr	x9, [x8]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x8, #8]
	bl	_get_word_frequency
	ldr	x8, [x19, x23]
	str	w0, [x8, #32]
	b	LBB0_12
LBB0_15:
Lloh12:
	adrp	x8, _cmp_query_node@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cmp_query_node@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_qsort
	mov	w20, #0
	b	LBB0_22
LBB0_16:
Lloh15:
	adrp	x8, _cmp_query_node@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cmp_query_node@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #8
	bl	_qsort
	cmp	w20, #1
	b.ls	LBB0_22
; %bb.17:
	mov	w8, #0
	ldr	x9, [x21]
	and	x10, x20, #0xffffffff
	mov	w11, #1
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	sxtw	x8, w8
	add	x8, x8, #1
	str	x12, [x19, x8, lsl #3]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x11, x11, #1
	cmp	x10, x11
	b.eq	LBB0_25
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x19, x11, lsl #3]
	ldr	x13, [x12]
	cmp	x13, x9
	b.ne	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x13, [x12, #8]
	ldr	x14, [x19, w8, sxtw #3]
	ldr	x14, [x14, #8]
	cmp	x13, x14
	b.ne	LBB0_18
	b	LBB0_19
LBB0_22:
	ldr	x21, [x19]
LBB0_23:
	lsl	w1, w20, #3
	mov	x0, x19
	bl	_zzfree
LBB0_24:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	ldr	x21, [x19]
	cmp	w8, #0
	b.le	LBB0_23
; %bb.26:
	sxtw	x22, w22
	add	w8, w8, #1
	add	x23, x19, #8
Lloh18:
	adrp	x24, _tot_query_nodes_kill_dup@GOTPAGE
Lloh19:
	ldr	x24, [x24, _tot_query_nodes_kill_dup@GOTPAGEOFF]
	sub	x25, x8, #1
Lloh20:
	adrp	x27, _query_nodes_kill_dup_buffer@GOTPAGE
Lloh21:
	ldr	x27, [x27, _query_nodes_kill_dup_buffer@GOTPAGEOFF]
	mov	w28, #48
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	mov	x26, x21
	ldr	x8, [x24]
Lloh22:
	adrp	x9, _MAX_QUERY_NODES@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MAX_QUERY_NODES@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
	ldr	x8, [x27]
	ldr	x9, [x24]
	add	x10, x9, #1
	str	x10, [x24]
	madd	x21, x9, x28, x8
	str	x22, [x21]
	str	x26, [x21, #24]
	ldr	x8, [x23], #8
	str	x8, [x21, #16]
	subs	x25, x25, #1
	b.ne	LBB0_27
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_qn_cum_and,8,3                 ; @qn_cum_and
	.comm	_qn_cum_or,8,3                  ; @qn_cum_or
	.comm	_qn_and,4,2                     ; @qn_and
	.comm	_qn_or,4,2                      ; @qn_or
	.comm	_qn_word,8,3                    ; @qn_word
	.comm	_cmp_query_node,4,2             ; @cmp_query_node
	.comm	_tot_query_nodes_kill_dup,8,3   ; @tot_query_nodes_kill_dup
	.comm	_MAX_QUERY_NODES,8,3            ; @MAX_QUERY_NODES
	.comm	_query_nodes_kill_dup_buffer,8,3 ; @query_nodes_kill_dup_buffer
	.no_dead_strip	_query_kill_duplicate_words
.subsections_via_symbols
