	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_query_word
_add_query_word:                        ## @add_query_word
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_Q_words@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movq	_QW@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%rcx,%rax,8)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rbx
	jne	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_MAX_WORDS@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	(%rcx), %ebx
	je	LBB0_7
## %bb.6:
	movsbl	%sil, %r14d
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_vkprintf
	movq	_QW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movq	%r12, (%rax,%rcx,8)
	movq	_QT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	%r14b, (%rax,%rcx)
	movq	_IHE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-2, (%rax,%rcx,4)
	movq	_QOTW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax,%rcx,4)
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_words,4,2                    ## @Q_words
	.comm	_QW,8,3                         ## @QW
	.comm	_MAX_WORDS,4,2                  ## @MAX_WORDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add_query_word (%llx, %d)\n"

	.comm	_QT,8,3                         ## @QT
	.comm	_IHE,8,3                        ## @IHE
	.comm	_QOTW,8,3                       ## @QOTW
	.no_dead_strip	_add_query_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_query_word
_add_query_word:                        ; @add_query_word
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _Q_words@GOTPAGE
Lloh1:
	ldr	x21, [x21, _Q_words@GOTPAGEOFF]
	ldr	w22, [x21]
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x0, #0
Lloh2:
	adrp	x8, _QW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QW@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, x0, lsl #3]
	cmp	x9, x20
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #1
	cmp	x22, x0
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
Lloh5:
	adrp	x8, _MAX_WORDS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_WORDS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #-1
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x20
	mov	x3, x19
	bl	_vkprintf
Lloh10:
	adrp	x8, _QW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QW@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	mov	w9, w22
	str	x20, [x8, w22, uxtw #3]
Lloh13:
	adrp	x8, _QT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QT@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	strb	w19, [x8, x9]
Lloh16:
	adrp	x8, _IHE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IHE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	lsl	x9, x9, #2
	mov	w10, #-2
	str	w10, [x8, x9]
Lloh19:
	adrp	x8, _QOTW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QOTW@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	mov	w10, #1
	str	w10, [x8, x9]
	ldr	w0, [x21]
	add	w8, w0, #1
	str	w8, [x21]
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_words,4,2                    ; @Q_words
	.comm	_QW,8,3                         ; @QW
	.comm	_MAX_WORDS,4,2                  ; @MAX_WORDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add_query_word (%llx, %d)\n"

	.comm	_QT,8,3                         ; @QT
	.comm	_IHE,8,3                        ; @IHE
	.comm	_QOTW,8,3                       ; @QOTW
	.no_dead_strip	_add_query_word
.subsections_via_symbols
