	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function search_encode_lists
_search_encode_lists:                   ## @search_encode_lists
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_encode_lists_reset
	movq	_PC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$0, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_P@GOTPCREL(%rip), %r15
	movq	_Header@GOTPCREL(%rip), %r8
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	(%r8), %ebx
	setl	%dil
	callq	_assert
	movq	_W@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rbx
	leaq	(%rax,%rbx,8), %rdx
	movq	%r15, (%rax,%rbx,8)
	movq	_P@GOTPCREL(%rip), %r15
	addq	(%r15), %r13
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	callq	_search_encode_list
	movq	_Header@GOTPCREL(%rip), %r8
	incl	%ebx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r14d
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %eax
	movq	(%r15), %rdi
	movslq	%r14d, %rdx
	movq	%rdx, %r13
	shlq	$4, %r13
	movq	(%rdi,%r13), %r15
	movslq	%ecx, %rcx
	leal	1(%rdx), %esi
	cmpl	%esi, %ecx
	cmovgl	%ecx, %esi
	incq	%rdx
	addq	%r13, %rdi
	addq	$16, %rdi
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rcx, %rdx
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	incl	%r14d
	incq	%rdx
	leaq	16(%rdi), %rbx
	cmpq	%r15, (%rdi)
	movq	%rbx, %rdi
	je	LBB0_3
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %r14d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r12d
	subl	%eax, %r12d
	cmpl	$2, %r12d
	jge	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r8), %ecx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	cmpl	%ecx, %r12d
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movq	%r8, %rbx
	callq	_vkprintf
	movl	4(%rbx), %ecx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpl	%ecx, %r12d
	setl	%dil
	callq	_assert
	movq	_HL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rbx
	shlq	$4, %rbx
	movq	%r15, 8(%rax,%rbx)
	movq	_P@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	leaq	(%rcx,%r13), %rdi
	movl	8(%rcx,%r13), %ecx
	movl	%ecx, (%rax,%rbx)
	callq	_in_title
	movq	_HL@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rax
	orl	$-2147483648, (%rax,%rbx)       ## imm = 0x80000000
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	movq	_Header@GOTPCREL(%rip), %r8
	jmp	LBB0_13
LBB0_14:
	movq	_Header@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	(%r14), %ebx
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	4(%r14), %r12d
	sete	%dil
	callq	_assert
	movq	_HL@GOTPCREL(%rip), %rax
	movslq	%r12d, %rdi
	shlq	$4, %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_encoded_bytes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movslq	(%rdi), %rsi
	movl	%edx, (%rcx,%rsi,8)
	movl	4(%rax), %eax
	movslq	4(%rdi), %rdx
	movl	%eax, 4(%rcx,%rdx,8)
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PC,4,2                         ## @PC
	.comm	_P,8,3                          ## @P
	.comm	_Header,16,3                    ## @Header
	.comm	_W,8,3                          ## @W
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"h1 = %d, Header.hapax_legomena = %d\n"

	.comm	_HL,8,3                         ## @HL
	.comm	_encoded_bytes,8,3              ## @encoded_bytes
	.no_dead_strip	_search_encode_lists
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function search_encode_lists
_search_encode_lists:                   ; @search_encode_lists
	.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
	mov	x22, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_encode_lists_reset
Lloh0:
	adrp	x27, _PC@GOTPAGE
Lloh1:
	ldr	x27, [x27, _PC@GOTPAGEOFF]
	ldr	w9, [x27]
Lloh2:
	adrp	x25, _Header@GOTPAGE
Lloh3:
	ldr	x25, [x25, _Header@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.1:
	mov	w20, #0
	mov	w21, #0
	mov	w28, #0
Lloh4:
	adrp	x23, _P@GOTPAGE
Lloh5:
	ldr	x23, [x23, _P@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	cmp	w20, w8
	cset	w0, lt
	bl	_assert
Lloh6:
	adrp	x8, _W@GOTPAGE
Lloh7:
	ldr	x8, [x8, _W@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x2, x8, w20, sxtw #3
	str	x19, [x2]
	ldr	x8, [x23]
	add	x0, x8, x26, lsl #4
	mov	x1, x24
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	mov	x4, x22
	bl	_search_encode_list
	add	w20, w20, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x27]
	cmp	w28, w9
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x8, x28
	ldr	x10, [x23]
	add	x10, x10, w28, sxtw #4
	ldr	x19, [x10], #16
	sxtw	x26, w8
	sxtw	x11, w9
	add	w12, w28, #1
	cmp	w9, w12
	csinc	w9, w9, w28, gt
	add	x12, x26, #1
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x12, x11
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x13, [x10], #16
	add	w28, w28, #1
	add	x12, x12, #1
	cmp	x13, x19
	b.eq	LBB0_5
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w24, w28, w8
	cmp	w24, #2
	b.ge	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x25, #4]
	cmp	w21, w3
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_vkprintf
	ldr	w3, [x25, #4]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w21, w3
	cset	w0, lt
	bl	_assert
Lloh11:
	adrp	x24, _HL@GOTPAGE
Lloh12:
	ldr	x24, [x24, _HL@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x8, x8, w21, sxtw #4
	str	x19, [x8, #8]
	ldr	x9, [x23]
	add	x0, x9, x26, lsl #4
	ldr	w9, [x0, #8]
	str	w9, [x8]
	bl	_in_title
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w21
	ldr	x9, [x24]
	lsl	x8, x8, #4
	ldr	w10, [x9, x8]
	orr	w10, w10, #0x80000000
	str	w10, [x9, x8]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	b	LBB0_3
LBB0_14:
	mov	w21, #0
	mov	w20, #0
LBB0_15:
	ldr	w8, [x25]
	cmp	w20, w8
	cset	w0, eq
	bl	_assert
	ldr	w8, [x25, #4]
	cmp	w21, w8
	cset	w0, eq
	bl	_assert
Lloh13:
	adrp	x8, _HL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x0, x8, w21, sxtw #4
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh16:
	adrp	x8, _encoded_bytes@GOTPAGE
Lloh17:
	ldr	x8, [x8, _encoded_bytes@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x25, #8]
	ldr	w10, [x8]
	ldr	x12, [sp, #8]                   ; 8-byte Folded Reload
	ldrsw	x11, [x12]
	lsl	x11, x11, #3
	str	w10, [x9, x11]
	ldr	w8, [x8, #4]
	ldrsw	x10, [x12, #4]
	add	x9, x9, x10, lsl #3
	str	w8, [x9, #4]
	mov	x0, x20
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PC,4,2                         ; @PC
	.comm	_P,8,3                          ; @P
	.comm	_Header,16,3                    ; @Header
	.comm	_W,8,3                          ; @W
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"h1 = %d, Header.hapax_legomena = %d\n"

	.comm	_HL,8,3                         ; @HL
	.comm	_encoded_bytes,8,3              ; @encoded_bytes
	.no_dead_strip	_search_encode_lists
.subsections_via_symbols
