	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_query_iterators        ## -- Begin function prepare_query_iterators
	.p2align	4, 0x90
_prepare_query_iterators:               ## @prepare_query_iterators
	.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
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %rbx
	movq	48(%rdi), %rdi
	callq	_prepare_query_iterators
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	40(%rbx), %rdi
	callq	_prepare_query_iterators
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	8(%rbx), %rax
	movq	_qn_false@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.4:
	movq	_MAX_ITEM_ID@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movl	$-1, %r14d
	jmp	LBB0_17
LBB0_7:
	movq	_MIN_ITEM_ID@GOTPCREL(%rip), %rcx
LBB0_8:
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	movl	$0, 16(%rbx)
	movq	_qn_true@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	cmpl	$0, 36(%rbx)
	je	LBB0_12
LBB0_10:
	movq	_qn_word@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.11:
	cmpq	$0, 24(%rbx)
	jne	LBB0_17
	jmp	LBB0_13
LBB0_12:
	movq	_universal_tag_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
LBB0_13:
	movq	_Q_words@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	_MAX_WORDS@GOTPCREL(%rip), %rdx
	movl	$-1, %r14d
	cmpq	(%rdx), %rax
	jge	LBB0_17
## %bb.14:
	leaq	1(%rax), %rdx
	movq	%rdx, (%rcx)
	movq	_IHE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movslq	%eax, %r14
	leaq	(,%r14,8), %rax
	leaq	(%rax,%rax,2), %r13
	movl	$-2, (%rdi,%r13)
	addq	%r13, %rdi
	movl	36(%rbx), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ihe_init
	movq	(%r12), %rax
	leaq	(%rax,%r13), %rcx
	movq	8(%rax,%r13), %rdx
	movl	20(%rax,%r13), %esi
	movq	%rcx, 24(%rbx)
	movq	%rdx, (%rbx)
	movl	%esi, 32(%rbx)
	movq	_MAX_ITEM_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_16
## %bb.15:
	movq	_reoptimize_flag@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	movq	(%r15), %rcx
	movq	%rcx, 8(%rbx)
LBB0_16:
	leaq	(%r14,%r14,2), %rcx
	movl	16(%rax,%rcx,8), %eax
	andl	$1, %eax
	movl	%eax, 16(%rbx)
	movl	$1, %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qn_false,8,3                   ## @qn_false
	.comm	_MAX_ITEM_ID,8,3                ## @MAX_ITEM_ID
	.comm	_MIN_ITEM_ID,8,3                ## @MIN_ITEM_ID
	.comm	_qn_true,8,3                    ## @qn_true
	.comm	_universal_tag_hash,4,2         ## @universal_tag_hash
	.comm	_qn_word,8,3                    ## @qn_word
	.comm	_Q_words,8,3                    ## @Q_words
	.comm	_MAX_WORDS,8,3                  ## @MAX_WORDS
	.comm	_IHE,8,3                        ## @IHE
	.comm	_reoptimize_flag,4,2            ## @reoptimize_flag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_query_iterators        ; -- Begin function prepare_query_iterators
	.p2align	2
_prepare_query_iterators:               ; @prepare_query_iterators
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #48]
	bl	_prepare_query_iterators
	tbnz	w0, #31, LBB0_13
; %bb.2:
	ldr	x0, [x19, #40]
	bl	_prepare_query_iterators
	tbnz	w0, #31, LBB0_13
; %bb.3:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x20, _qn_false@GOTPAGE
Lloh1:
	ldr	x20, [x20, _qn_false@GOTPAGEOFF]
Lloh2:
	adrp	x21, _MAX_ITEM_ID@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MAX_ITEM_ID@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh4:
	adrp	x10, _MIN_ITEM_ID@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MIN_ITEM_ID@GOTPAGEOFF]
	cmp	x8, x9
	csel	x9, x21, x10, eq
	ldr	x9, [x9]
	str	x9, [x19]
	str	wzr, [x19, #16]
Lloh6:
	adrp	x9, _qn_true@GOTPAGE
Lloh7:
	ldr	x9, [x9, _qn_true@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w9, [x19, #36]
	cbz	w9, LBB0_8
LBB0_5:
Lloh9:
	adrp	x9, _qn_word@GOTPAGE
Lloh10:
	ldr	x9, [x9, _qn_word@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_14
LBB0_8:
Lloh12:
	adrp	x8, _universal_tag_hash@GOTPAGE
Lloh13:
	ldr	x8, [x8, _universal_tag_hash@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #36]
LBB0_9:
Lloh15:
	adrp	x9, _Q_words@GOTPAGE
Lloh16:
	ldr	x9, [x9, _Q_words@GOTPAGEOFF]
	ldr	x8, [x9]
Lloh17:
	adrp	x10, _MAX_WORDS@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MAX_WORDS@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ge	LBB0_13
; %bb.10:
	add	x10, x8, #1
	str	x10, [x9]
Lloh20:
	adrp	x23, _IHE@GOTPAGE
Lloh21:
	ldr	x23, [x23, _IHE@GOTPAGEOFF]
	ldr	x9, [x23]
	sxtw	x22, w8
	add	x8, x22, w8, sxtw #1
	lsl	x24, x8, #3
	add	x0, x9, x24
	mov	w8, #-2
	str	w8, [x0]
	ldr	w1, [x19, #36]
	mov	w2, #0
	mov	w3, #0
	bl	_ihe_init
	ldr	x8, [x23]
	add	x9, x8, x24
	ldr	x10, [x9, #8]
	ldr	w11, [x9, #20]
	str	x9, [x19, #24]
	str	x10, [x19]
	str	w11, [x19, #32]
	ldr	x9, [x21]
	cmp	x10, x9
	b.ne	LBB0_12
; %bb.11:
Lloh22:
	adrp	x9, _reoptimize_flag@GOTPAGE
Lloh23:
	ldr	x9, [x9, _reoptimize_flag@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
	ldr	x9, [x20]
	str	x9, [x19, #8]
LBB0_12:
	mov	w9, #24
	madd	x8, x22, x9, x8
	ldr	w8, [x8, #16]
	and	w8, w8, #0x1
	str	w8, [x19, #16]
	mov	w0, #1
	b	LBB0_14
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_qn_false,8,3                   ; @qn_false
	.comm	_MAX_ITEM_ID,8,3                ; @MAX_ITEM_ID
	.comm	_MIN_ITEM_ID,8,3                ; @MIN_ITEM_ID
	.comm	_qn_true,8,3                    ; @qn_true
	.comm	_universal_tag_hash,4,2         ; @universal_tag_hash
	.comm	_qn_word,8,3                    ; @qn_word
	.comm	_Q_words,8,3                    ; @Q_words
	.comm	_MAX_WORDS,8,3                  ; @MAX_WORDS
	.comm	_IHE,8,3                        ; @IHE
	.comm	_reoptimize_flag,4,2            ; @reoptimize_flag
.subsections_via_symbols
