	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function search_optimal_encode_lists
_search_optimal_encode_lists:           ## @search_optimal_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_search_estimate_compression_method
	movq	_lists_encoded@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movq	_Header@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_word_index_offset@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lseek
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_search_encode_lists
	movq	_idx_crc32_complement@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movq	_CRC32_Header@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_W@GOTPCREL(%rip), %r13
	movslq	%eax, %rbx
	leaq	(,%rbx,8), %rdi
	addq	(%r13), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_cur_offs@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	xorl	%eax, %eax
	callq	_flushout
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	(%r12), %rsi
	subq	(%r15), %rsi
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_kprintf
	movq	_compression_speed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jns	LBB0_3
## %bb.2:
	movq	_redundant_bits@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_interpolative_ext_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_percent
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_kprintf
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_lists_encoded,8,3              ## @lists_encoded
	.comm	_Header,4,2                     ## @Header
	.comm	_fd,8,3                         ## @fd
	.comm	_word_index_offset,8,3          ## @word_index_offset
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_idx_crc32_complement,4,2       ## @idx_crc32_complement
	.comm	_CRC32_Header,4,2               ## @CRC32_Header
	.comm	_W,8,3                          ## @W
	.comm	_cur_offs,8,3                   ## @cur_offs
	.comm	_verbosity,8,3                  ## @verbosity
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrote %lld codes bytes in %d lists\n"

	.comm	_compression_speed,8,3          ## @compression_speed
L_.str.1:                               ## @.str.1
	.asciz	"wrote %lld(%.6lf%%) interpolative redundant bits.\n"

	.comm	_redundant_bits,8,3             ## @redundant_bits
	.comm	_interpolative_ext_bits,4,2     ## @interpolative_ext_bits
	.no_dead_strip	_search_optimal_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_optimal_encode_lists
_search_optimal_encode_lists:           ; @search_optimal_encode_lists
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x0, sp
	bl	_search_estimate_compression_method
Lloh3:
	adrp	x19, _lists_encoded@GOTPAGE
Lloh4:
	ldr	x19, [x19, _lists_encoded@GOTPAGEOFF]
	str	xzr, [x19]
Lloh5:
	adrp	x8, _Header@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Header@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, sp
	mov	w2, #8
	bl	_memcpy
Lloh8:
	adrp	x8, _fd@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fd@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh11:
	adrp	x20, _word_index_offset@GOTPAGE
Lloh12:
	ldr	x20, [x20, _word_index_offset@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh13:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_lseek
	mov	x0, sp
	mov	w1, #0
	bl	_search_encode_lists
                                        ; kill: def $w0 killed $w0 def $x0
Lloh16:
	adrp	x8, _idx_crc32_complement@GOTPAGE
Lloh17:
	ldr	x8, [x8, _idx_crc32_complement@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	mvn	w8, w8
Lloh19:
	adrp	x9, _CRC32_Header@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CRC32_Header@GOTPAGEOFF]
Lloh21:
	str	w8, [x9]
Lloh22:
	adrp	x22, _W@GOTPAGE
Lloh23:
	ldr	x22, [x22, _W@GOTPAGEOFF]
	ldr	x8, [x22]
	sbfiz	x23, x0, #3, #32
	add	x0, x8, x23
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh24:
	adrp	x21, _cur_offs@GOTPAGE
Lloh25:
	ldr	x21, [x21, _cur_offs@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x22]
	str	x8, [x9, x23]
	bl	_flushout
Lloh26:
	adrp	x8, _verbosity@GOTPAGE
Lloh27:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x20]
	sub	x1, x8, x9
	ldr	x2, [x19]
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kprintf
Lloh31:
	adrp	x8, _compression_speed@GOTPAGE
Lloh32:
	ldr	x8, [x8, _compression_speed@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	tbz	x8, #63, LBB0_3
; %bb.2:
Lloh34:
	adrp	x8, _redundant_bits@GOTPAGE
Lloh35:
	ldr	x8, [x8, _redundant_bits@GOTPAGEOFF]
Lloh36:
	ldr	x19, [x8]
Lloh37:
	adrp	x8, _interpolative_ext_bits@GOTPAGE
Lloh38:
	ldr	x8, [x8, _interpolative_ext_bits@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_percent
	mov	x2, x0
Lloh40:
	adrp	x0, l_.str.1@PAGE
Lloh41:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_kprintf
LBB0_3:
	ldr	x8, [sp, #8]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_lists_encoded,8,3              ; @lists_encoded
	.comm	_Header,4,2                     ; @Header
	.comm	_fd,8,3                         ; @fd
	.comm	_word_index_offset,8,3          ; @word_index_offset
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_idx_crc32_complement,4,2       ; @idx_crc32_complement
	.comm	_CRC32_Header,4,2               ; @CRC32_Header
	.comm	_W,8,3                          ; @W
	.comm	_cur_offs,8,3                   ; @cur_offs
	.comm	_verbosity,8,3                  ; @verbosity
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrote %lld codes bytes in %d lists\n"

	.comm	_compression_speed,8,3          ; @compression_speed
l_.str.1:                               ; @.str.1
	.asciz	"wrote %lld(%.6lf%%) interpolative redundant bits.\n"

	.comm	_redundant_bits,8,3             ; @redundant_bits
	.comm	_interpolative_ext_bits,4,2     ; @interpolative_ext_bits
	.no_dead_strip	_search_optimal_encode_lists
.subsections_via_symbols
