	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_build_word_iterator            ## -- Begin function build_word_iterator
	.p2align	4, 0x90
_build_word_iterator:                   ## @build_word_iterator
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_get_hash_node
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %r15
LBB0_2:
	leaq	-36(%rbp), %rsi
	movl	%ebx, %edi
	callq	_idx_word_lookup
	movq	%rax, %rbx
	xorl	%edi, %edi
	movq	%r15, %rax
	orq	%rbx, %rax
	setne	%dil
	callq	_assert
	movq	%r15, %rax
	orq	%rbx, %rax
	je	LBB0_3
## %bb.4:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.7:
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:
	movl	$56, %edi
	callq	_zmalloc
	movq	%rax, %r14
	leaq	32(%rax), %r12
	movl	-36(%rbp), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_init_wordlist_subiterator
	leaq	16(%r14), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_init_tree_subiterator
	movq	_wordlist_tree_iterator_jump_to@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r14)
	movq	24(%r14), %rax
	cmpq	40(%r14), %rax
	jge	LBB0_11
## %bb.10:
	movq	16(%r14), %rax
	movq	%rax, (%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movq	24(%r14), %rax
	movq	%rax, 8(%r14)
	jmp	LBB0_16
LBB0_3:
	xorl	%eax, %eax
	callq	_build_empty_iterator
	movl	%eax, %r14d
	jmp	LBB0_16
LBB0_5:
	movl	$40, %edi
	callq	_zmalloc
	movq	%rax, %r14
	leaq	24(%rax), %rdi
	movq	%r15, %rsi
	callq	_init_tree_subiterator
	movq	24(%r14), %rax
	movq	%rax, (%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movq	32(%r14), %rax
	movq	%rax, 8(%r14)
	movq	_tree_iterator_jump_to@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movl	$40, %edi
	callq	_zmalloc
	movq	%rax, %r14
	leaq	24(%rax), %rdi
	movl	-36(%rbp), %edx
	movq	%rbx, %rsi
	callq	_init_wordlist_subiterator
	movq	24(%r14), %rax
	movq	%rax, (%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movq	32(%r14), %rax
	movq	%rax, 8(%r14)
	movq	_wordlist_iterator_jump_to@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_16:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	jle	LBB0_13
## %bb.12:
	movq	32(%r14), %rax
	movq	%rax, (%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movq	40(%r14), %rax
	movq	%rax, 8(%r14)
	jmp	LBB0_16
LBB0_13:
	movq	(%r12), %rcx
	addq	(%rbx), %rcx
	jle	LBB0_15
## %bb.14:
	movq	%rcx, (%r14)
	movq	%rax, 8(%r14)
	jmp	LBB0_16
LBB0_15:
	sete	%al
	movzbl	%al, %edi
	callq	_assert
	movq	24(%r14), %rsi
	incq	%rsi
	movl	%r14d, %edi
	callq	_wordlist_tree_iterator_jump_to
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_tree_iterator_jump_to,4,2      ## @tree_iterator_jump_to
	.comm	_wordlist_iterator_jump_to,4,2  ## @wordlist_iterator_jump_to
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_build_word_iterator            ; -- Begin function build_word_iterator
	.p2align	2
_build_word_iterator:                   ; @build_word_iterator
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	w1, #0
	bl	_get_hash_node
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x20, [x0]
	b	LBB0_3
LBB0_2:
	mov	x20, #0
LBB0_3:
	add	x1, sp, #12
	mov	x0, x19
	bl	_idx_word_lookup
	mov	x21, x0
	orr	x19, x20, x0
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	cbz	x19, LBB0_8
; %bb.4:
	cbz	x21, LBB0_9
; %bb.5:
	cbz	x20, LBB0_10
; %bb.6:
	mov	w0, #56
	bl	_zmalloc
	mov	x19, x0
	add	x22, x0, #32
	ldr	w2, [sp, #12]
	mov	x0, x22
	mov	x1, x21
	bl	_init_wordlist_subiterator
	add	x21, x19, #16
	mov	x0, x21
	mov	x1, x20
	bl	_init_tree_subiterator
Lloh0:
	adrp	x8, _wordlist_tree_iterator_jump_to@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wordlist_tree_iterator_jump_to@GOTPAGEOFF]
	str	x8, [x19, #48]
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.ge	LBB0_13
; %bb.7:
	ldr	x8, [x19, #16]
	str	x8, [x19]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [x19, #24]
	str	x8, [x19, #8]
	b	LBB0_12
LBB0_8:
	bl	_build_empty_iterator
	mov	x19, x0
	b	LBB0_12
LBB0_9:
	mov	w0, #40
	bl	_zmalloc
	mov	x19, x0
	add	x0, x0, #24
	mov	x1, x20
	bl	_init_tree_subiterator
	ldr	x8, [x19, #24]
	str	x8, [x19]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [x19, #32]
	str	x8, [x19, #8]
Lloh2:
	adrp	x8, _tree_iterator_jump_to@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tree_iterator_jump_to@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	w0, #40
	bl	_zmalloc
	mov	x19, x0
	add	x0, x0, #24
	ldr	w2, [sp, #12]
	mov	x1, x21
	bl	_init_wordlist_subiterator
	ldr	x8, [x19, #24]
	str	x8, [x19]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [x19, #32]
	str	x8, [x19, #8]
Lloh4:
	adrp	x8, _wordlist_iterator_jump_to@GOTPAGE
Lloh5:
	ldr	x8, [x8, _wordlist_iterator_jump_to@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_12:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_13:
	b.le	LBB0_15
; %bb.14:
	ldr	x8, [x19, #32]
	str	x8, [x19]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [x19, #40]
	str	x8, [x19, #8]
	b	LBB0_12
LBB0_15:
	ldr	x9, [x21]
	ldr	x10, [x22]
	add	x9, x10, x9
	cmp	x9, #1
	b.lt	LBB0_17
; %bb.16:
	stp	x9, x8, [x19]
	b	LBB0_12
LBB0_17:
	cmp	x9, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #24]
	add	x1, x8, #1
	mov	x0, x19
	bl	_wordlist_tree_iterator_jump_to
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_tree_iterator_jump_to,4,2      ; @tree_iterator_jump_to
	.comm	_wordlist_iterator_jump_to,4,2  ; @wordlist_iterator_jump_to
.subsections_via_symbols
