	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encodeLZ77
_encodeLZ77:                            ## @encodeLZ77
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movl	%r9d, %eax
	shrl	$3, %eax
	cmpl	$8192, %r9d                     ## imm = 0x2000
	movq	_MAX_SUPPORTED_DEFLATE_LENGTH@GOTPCREL(%rip), %rcx
	movl	$64, %edx
	cmovael	(%rcx), %edx
	movl	%edx, -116(%rbp)                ## 4-byte Spill
	cmovael	%r9d, %eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movl	%r15d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpq	%r8, %rax
	jae	LBB0_58
## %bb.1:
	movl	%r9d, %r12d
	movq	%r8, %rbx
	movl	%r9d, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	$0, -100(%rbp)                  ## 4-byte Folded Spill
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movzbl	(%rcx,%rax), %esi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_uivector_push_back
	testl	%eax, %eax
	je	LBB0_44
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r15d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %r15
	jae	LBB0_58
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##       Child Loop BB0_23 Depth 3
                                        ##     Child Loop BB0_55 Depth 2
	movl	%r14d, -104(%rbp)               ## 4-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	cmpl	$8192, %r12d                    ## imm = 0x2000
	setae	-44(%rbp)                       ## 1-byte Folded Spill
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r12d
	movl	%edx, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_getHash
	movl	%r12d, %ecx
	movl	%eax, %r12d
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_updateHashChain
	testl	%r12d, %r12d
	sete	%al
	andb	-44(%rbp), %al                  ## 1-byte Folded Reload
	movb	%al, -45(%rbp)                  ## 1-byte Spill
	cmpb	$1, %al
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_countZeros
	movq	(%r13), %rcx
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movw	%ax, (%rcx,%r14,2)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	_MAX_SUPPORTED_DEFLATE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	leal	(%rax,%r15), %r8d
	cmpq	%rbx, %r8
	cmovaeq	%rbx, %r8
	movq	24(%r13), %r9
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	%r12d, (%r9,%r14,4)
	jne	LBB0_31
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %r8
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	16(%rcx), %r10
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movzwl	(%rax,%rcx,2), %r12d
	movzwl	(%r10,%r12,2), %ecx
	addq	%rdx, -80(%rbp)                 ## 8-byte Folded Spill
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%edi, %edi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	incl	%edi
	movzwl	(%r10,%rdx,2), %ecx
	cmpw	%cx, %r12w
	je	LBB0_31
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_23 Depth 3
	movl	%r12d, %esi
	movl	%ecx, %r12d
	movzwl	%si, %ecx
	movzwl	%r12w, %edx
	cmpq	%r14, %rcx
	jae	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpw	%si, %r12w
	jbe	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpl	%edx, %r14d
	jae	LBB0_31
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpw	%cx, %r12w
	seta	%bl
	cmpl	%edx, %r14d
	setae	%al
	cmpq	%r14, %rcx
	jbe	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	orb	%bl, %al
	jne	LBB0_31
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpl	-120(%rbp), %edi                ## 4-byte Folded Reload
	je	LBB0_31
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%edx, %edx
	movq	%r14, %rax
	subq	%rdx, %rax
	movl	$0, %ecx
	cmovbq	-152(%rbp), %rcx                ## 8-byte Folded Reload
	leaq	(%rax,%rcx), %r11
	testl	%r11d, %r11d
	je	LBB0_9
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%r15d, %ebx
	subl	%r11d, %ebx
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	cmpb	$0, -45(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpl	$0, (%r9,%rdx,4)
	je	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r8, %rcx
	cmpq	%r8, %rsi
	je	LBB0_27
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	(%rbx), %eax
	cmpb	(%rsi), %al
	jne	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=3
	incq	%rbx
	incq	%rsi
	cmpq	%r8, %rsi
	jne	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r8, %rcx
	jmp	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%rsi, %rcx
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=2
	subq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	cmpl	%ecx, %r13d
	jae	LBB0_9
## %bb.28:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpl	24(%rbp), %ecx
	jae	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%ecx, %r13d
	movl	%r11d, %eax
	movl	%r11d, -44(%rbp)                ## 4-byte Spill
	cmpl	%ecx, -144(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_9
	jmp	LBB0_30
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movzwl	(%rax,%rdx,2), %eax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	cmpw	%cx, %ax
	cmovael	%ecx, %eax
	movzwl	%ax, %esi
	addq	%rsi, %rbx
	addq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$83, %edi
	callq	_ERROR_BREAK
	jmp	LBB0_3
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, %r13d
	movl	%r11d, %eax
	movl	%r11d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 32(%rbp)
	je	LBB0_37
## %bb.32:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-104(%rbp), %eax                ## 4-byte Reload
	testl	%eax, %eax
	jne	LBB0_38
## %bb.33:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$3, %r13d
	jb	LBB0_38
## %bb.34:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	-116(%rbp), %r13d               ## 4-byte Folded Reload
	ja	LBB0_38
## %bb.35:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r14d
	cmpl	-144(%rbp), %r13d               ## 4-byte Folded Reload
	jae	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-104(%rbp), %r14d               ## 4-byte Reload
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r14d, %r14d
	testl	%eax, %eax
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_46
## %bb.39:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$81, %edi
	callq	_ERROR_BREAK
LBB0_41:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leal	1(%rcx), %eax
	cmpl	%eax, %r13d
	jbe	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_5 Depth=1
	leal	-1(%r15), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movzbl	(%rcx,%rax), %esi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_uivector_push_back
	testl	%eax, %eax
	jne	LBB0_46
## %bb.43:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$83, %edi
	callq	_ERROR_BREAK
	jmp	LBB0_46
LBB0_45:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movw	$-1, (%rax,%rdx,2)
	decl	%r15d
	movl	%ecx, %r13d
	movl	-100(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$3, %r13d
	jb	LBB0_49
## %bb.47:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	jbe	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$86, %edi
	callq	_ERROR_BREAK
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$2, %r13d
	jbe	LBB0_2
LBB0_50:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	16(%rbp), %r13d
	jb	LBB0_2
## %bb.51:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$3, %r13d
	jne	LBB0_53
## %bb.52:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$4097, -44(%rbp)                ## 4-byte Folded Reload
                                        ## imm = 0x1001
	jae	LBB0_2
LBB0_53:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_addLengthDistance
	decl	%r13d
	jmp	LBB0_55
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_55 Depth=2
	decl	%r13d
	je	LBB0_3
LBB0_55:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_getHash
	movl	%eax, %ebx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%r12d, %ecx
	callq	_updateHashChain
	cmpl	$8192, %r12d                    ## imm = 0x2000
	jb	LBB0_54
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=2
	testl	%ebx, %ebx
	jne	LBB0_54
## %bb.57:                              ##   in Loop: Header=BB0_55 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_countZeros
	movq	%rax, %rcx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
	movw	%cx, (%rsi,%rdx,2)
	jmp	LBB0_54
LBB0_58:
	xorl	%eax, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SUPPORTED_DEFLATE_LENGTH,4,2 ## @MAX_SUPPORTED_DEFLATE_LENGTH
	.no_dead_strip	_encodeLZ77
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encodeLZ77
_encodeLZ77:                            ; @encodeLZ77
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	w7, [sp, #52]                   ; 4-byte Folded Spill
	str	w6, [sp, #24]                   ; 4-byte Folded Spill
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	lsr	w8, w5, #3
	lsr	w9, w5, #13
Lloh0:
	adrp	x10, _MAX_SUPPORTED_DEFLATE_LENGTH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAX_SUPPORTED_DEFLATE_LENGTH@GOTPAGEOFF]
	cmp	w9, #0
	csel	w8, w5, w8, ne
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
Lloh2:
	ldr	w8, [x10]
	mov	w9, #64
	csel	w8, w8, w9, ne
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	and	x25, x3, #0xffffffff
	cmp	x25, x4
	b.hs	LBB0_56
; %bb.1:
	mov	x21, x5
	mov	x22, x4
	mov	x26, x3
	mov	x23, x2
	mov	x24, x1
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	str	wzr, [sp, #4]                   ; 4-byte Folded Spill
	mov	w27, #0
	str	wzr, [sp, #56]                  ; 4-byte Folded Spill
	ldr	w8, [x29, #16]
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
	mov	w8, w5
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
	mov	x27, x28
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w26, #1
	mov	x26, x25
	cmp	x25, x22
	b.hs	LBB0_56
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
                                        ;     Child Loop BB0_53 Depth 2
	str	w27, [sp, #60]                  ; 4-byte Folded Spill
	udiv	w8, w26, w21
	msub	w27, w8, w21, w26
	mov	x0, x23
	mov	x1, x22
	mov	x2, x26
	bl	_getHash
	mov	x20, x0
	mov	x0, x24
	mov	x1, x26
	mov	x2, x20
	mov	x3, x21
	bl	_updateHashChain
	tst	w21, #0xffffe000
	ccmp	w20, #0, #0, ne
	cset	w19, eq
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x26
	bl	_countZeros
	ldr	x8, [x24]
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	strh	w0, [x8, x27, lsl #1]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w7, w20
Lloh3:
	adrp	x8, _MAX_SUPPORTED_DEFLATE_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SUPPORTED_DEFLATE_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w8, w26
	cmp	x9, x22
	csel	x9, x9, x22, lo
	ldr	x10, [x24, #24]
	ldr	w11, [x10, x27, lsl #2]
	cmp	w11, w20
	b.ne	LBB0_27
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	mov	w20, #0
	mov	w11, #0
	add	x12, x23, x9
	ldp	x14, x13, [x24, #8]
	ldrh	w14, [x14, x7, lsl #1]
	ldrh	w16, [x13, w14, uxtw #1]
	add	x15, x23, x25
	ldr	w5, [sp, #20]                   ; 4-byte Folded Reload
	ldr	x6, [sp, #8]                    ; 8-byte Folded Reload
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w11, w11, #1
	ldrh	w16, [x13, x16, lsl #1]
	cmp	w14, w16
	b.eq	LBB0_28
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
	mov	x17, x14
	mov	x14, x16
	and	x16, x17, #0xffff
	cmp	x16, x27
	ccmp	w14, w17, #0, lo
	ccmp	w27, w14, #0, hi
	b.hs	LBB0_28
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w27, w14
	ccmp	w14, w17, #2, lo
	cset	w17, hi
	cmp	x16, x27
	b.ls	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	tbnz	w17, #0, LBB0_28
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=2
	cmp	w11, w5
	b.eq	LBB0_28
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	and	x16, x14, #0xffff
	subs	x17, x27, x16
	csel	x0, x6, xzr, lo
	add	x17, x17, x0
	cbz	w17, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=2
	sub	w0, w26, w17
	add	x0, x23, x0
	cbz	w19, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w2, [x10, x16, lsl #2]
	mov	x1, x15
	cbnz	w2, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x1, [x24]
	ldrh	w1, [x1, x16, lsl #1]
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	and	w2, w2, #0xffff
	cmp	w1, w2
	csel	w1, w1, w2, lo
	add	x0, x0, x1
	add	x1, x15, x1
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x1, x15
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x2, x12
	cmp	x1, x12
	b.eq	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x2, x1, x23
	add	x2, x2, x9
	sub	x2, x2, x1
LBB0_20:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrb	w3, [x0]
	ldrb	w4, [x1]
	cmp	w3, w4
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=3
	add	x0, x0, #1
	add	x1, x1, #1
	cmp	x1, x12
	b.ne	LBB0_20
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x2, x1
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=2
	sub	x0, x2, x15
	cmp	w28, w0
	b.hs	LBB0_8
; %bb.24:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w1, [sp, #52]                   ; 4-byte Folded Reload
	cmp	w0, w1
	b.hs	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x28, x0
	mov	x20, x17
	cmp	w8, w0
	b.ne	LBB0_8
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x0
	mov	x20, x17
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	mov	w20, #0
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [sp, #48]                   ; 4-byte Folded Reload
	cbz	w9, LBB0_41
; %bb.29:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [sp, #56]                  ; 4-byte Folded Reload
	cbnz	w10, LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, #3
	b.lo	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w28, w9
	b.hi	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, w8
	b.lo	LBB0_2
LBB0_33:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w10, LBB0_40
; %bb.34:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w27, [sp, #60]                  ; 4-byte Folded Reload
	cbnz	w26, LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #81
	mov	x19, x7
	bl	_ERROR_BREAK
	mov	x7, x19
LBB0_36:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w27, #1
	cmp	w28, w8
	b.ls	LBB0_44
; %bb.37:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w26, #1
	ldrb	w1, [x23, w8, uxtw]
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_uivector_push_back
	cbnz	w0, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #83
	bl	_ERROR_BREAK
LBB0_39:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [sp, #56]                  ; 4-byte Folded Spill
	cmp	w28, #3
	b.hs	LBB0_42
	b	LBB0_45
LBB0_40:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [sp, #56]                  ; 4-byte Folded Spill
LBB0_41:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w27, [sp, #60]                  ; 4-byte Folded Reload
	cmp	w28, #3
	b.lo	LBB0_45
LBB0_42:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w20, w21
	b.ls	LBB0_45
; %bb.43:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #86
	bl	_ERROR_BREAK
	b	LBB0_46
LBB0_44:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [sp, #56]                  ; 4-byte Folded Spill
	ldr	x8, [x24, #8]
	mov	w9, #65535
	strh	w9, [x8, x7, lsl #1]
	sub	w26, w26, #1
	mov	x28, x27
	ldr	w20, [sp, #4]                   ; 4-byte Folded Reload
	cmp	w28, #3
	b.hs	LBB0_42
LBB0_45:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, #2
	b.ls	LBB0_49
LBB0_46:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w28, w8
	b.lo	LBB0_49
; %bb.47:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, #3
	b.ne	LBB0_51
; %bb.48:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w20, #1, lsl #12                ; =4096
	b.ls	LBB0_51
LBB0_49:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w1, [x23, w26, uxtw]
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_uivector_push_back
	cbnz	w0, LBB0_3
; %bb.50:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #83
	bl	_ERROR_BREAK
	b	LBB0_3
LBB0_51:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x1, x28
	mov	x2, x20
	bl	_addLengthDistance
	sub	w19, w28, #1
	b	LBB0_53
LBB0_52:                                ;   in Loop: Header=BB0_53 Depth=2
	subs	w19, w19, #1
	b.eq	LBB0_3
LBB0_53:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w26, w26, #1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x26
	bl	_getHash
	mov	x20, x0
	mov	x0, x24
	mov	x1, x26
	mov	x2, x20
	mov	x3, x21
	bl	_updateHashChain
	cmp	w21, #2, lsl #12                ; =8192
	b.lo	LBB0_52
; %bb.54:                               ;   in Loop: Header=BB0_53 Depth=2
	cbnz	w20, LBB0_52
; %bb.55:                               ;   in Loop: Header=BB0_53 Depth=2
	mov	x0, x23
	mov	x1, x22
	mov	x2, x26
	bl	_countZeros
	ldr	x8, [x24]
	udiv	w9, w26, w21
	msub	w9, w9, w21, w26
	strh	w0, [x8, w9, uxtw #1]
	b	LBB0_52
LBB0_56:
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SUPPORTED_DEFLATE_LENGTH,4,2 ; @MAX_SUPPORTED_DEFLATE_LENGTH
	.no_dead_strip	_encodeLZ77
.subsections_via_symbols
