	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deflateDynamic
_deflateDynamic:                        ## @deflateDynamic
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %rbx
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, -216(%rbp)                ## 8-byte Spill
	movq	16(%rbp), %r15
	leaq	-72(%rbp), %rdi
	callq	_uivector_init
	leaq	-56(%rbp), %rdi
	callq	_HuffmanTree_init
	leaq	-112(%rbp), %rdi
	callq	_HuffmanTree_init
	leaq	-48(%rbp), %rdi
	callq	_HuffmanTree_init
	leaq	-184(%rbp), %rdi
	callq	_uivector_init
	leaq	-200(%rbp), %rdi
	callq	_uivector_init
	leaq	-168(%rbp), %rdi
	callq	_uivector_init
	leaq	-152(%rbp), %rdi
	callq	_uivector_init
	leaq	-104(%rbp), %rdi
	callq	_uivector_init
	leaq	-88(%rbp), %rdi
	callq	_uivector_init
	cmpq	$0, 16(%r15)
	je	LBB0_2
## %bb.1:
	movl	12(%r15), %r9d
	movl	8(%r15), %r10d
	movl	(%r15), %eax
	movl	4(%r15), %r11d
	subq	$8, %rsp
	leaq	-72(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_encodeLZ77
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_78
	jmp	LBB0_9
LBB0_2:
	movl	%r12d, %esi
	subl	%ebx, %esi
	leaq	-72(%rbp), %rdi
	callq	_uivector_resize
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cmpq	%rbx, %r12
	ja	LBB0_5
	jmp	LBB0_9
LBB0_3:
	movl	$83, %edi
	callq	_ERROR_BREAK
	cmpq	%rbx, %r12
	jbe	LBB0_9
LBB0_5:
	movl	%r12d, %ecx
	subl	%ebx, %ecx
	movq	%rbx, %rax
	notq	%rax
	addq	%r12, %rax
	andq	$3, %rcx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rbx), %edx
	movq	-72(%rbp), %rsi
	movb	%dl, (%rsi,%rbx)
	incq	%rbx
	decq	%rcx
	jne	LBB0_6
LBB0_7:
	cmpq	$3, %rax
	jb	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rbx), %eax
	movq	-72(%rbp), %rcx
	movb	%al, (%rcx,%rbx)
	movzbl	1(%r13,%rbx), %eax
	movq	-72(%rbp), %rcx
	movb	%al, 1(%rcx,%rbx)
	movzbl	2(%r13,%rbx), %eax
	movq	-72(%rbp), %rcx
	movb	%al, 2(%rcx,%rbx)
	movzbl	3(%r13,%rbx), %eax
	movq	-72(%rbp), %rcx
	movb	%al, 3(%rcx,%rbx)
	addq	$4, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_8
LBB0_9:
	leaq	-184(%rbp), %rdi
	movl	$286, %esi                      ## imm = 0x11E
	xorl	%edx, %edx
	callq	_uivector_resizev
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	$83, %edi
	callq	_ERROR_BREAK
LBB0_11:
	leaq	-200(%rbp), %rdi
	movl	$30, %esi
	xorl	%edx, %edx
	callq	_uivector_resizev
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	$83, %edi
	callq	_ERROR_BREAK
LBB0_13:
	cmpq	$0, -64(%rbp)
	je	LBB0_16
## %bb.14:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rcx
	movzbl	(%rcx,%rax), %ecx
	movq	-184(%rbp), %rdx
	incb	(%rdx,%rcx)
	incq	%rax
	cmpq	-64(%rbp), %rax
	jb	LBB0_15
LBB0_16:
	movq	-184(%rbp), %rsi
	movb	$1, 256(%rsi)
	movq	-176(%rbp), %rcx
	leaq	-56(%rbp), %rdi
	movl	$257, %edx                      ## imm = 0x101
	movl	$15, %r8d
	callq	_HuffmanTree_makeFromFrequencies
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_78
## %bb.17:
	movq	-200(%rbp), %rsi
	movq	-192(%rbp), %rcx
	leaq	-112(%rbp), %rdi
	movl	$2, %edx
	movl	$15, %r8d
	callq	_HuffmanTree_makeFromFrequencies
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_78
## %bb.18:
	movq	-56(%rbp), %rax
	cmpq	$286, %rax                      ## imm = 0x11E
	movl	$286, %r13d                     ## imm = 0x11E
	cmovbq	%rax, %r13
	movq	-112(%rbp), %rax
	cmpq	$30, %rax
	movl	$30, %r12d
	cmovbq	%rax, %r12
	testq	%r13, %r13
	je	LBB0_21
## %bb.19:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r14
	leaq	-152(%rbp), %r15
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_HuffmanTree_getLength
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_uivector_push_back
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_20
LBB0_21:
	movq	%r13, -208(%rbp)                ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_24
## %bb.22:
	xorl	%ebx, %ebx
	leaq	-112(%rbp), %r14
	leaq	-152(%rbp), %r15
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_HuffmanTree_getLength
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_uivector_push_back
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_23
LBB0_24:
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movl	-144(%rbp), %eax
	testq	%rax, %rax
	je	LBB0_46
## %bb.25:
	xorl	%r12d, %r12d
	leaq	-104(%rbp), %r13
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	%r13, %rdi
	callq	_uivector_push_back
LBB0_45:                                ##   in Loop: Header=BB0_26 Depth=1
	incq	%r12
	movl	-144(%rbp), %eax
	cmpq	%rax, %r12
	jae	LBB0_46
LBB0_26:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
                                        ##     Child Loop BB0_39 Depth 2
	leaq	1(%r12), %rcx
	movq	-152(%rbp), %rdx
	movzbl	(%rdx,%r12), %esi
	cmpq	%rax, %rcx
	jae	LBB0_44
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	xorl	%r14d, %r14d
	movq	%rcx, %rdi
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	%sil, (%rdx,%rdi)
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
	incl	%r14d
	leaq	(%rcx,%r14), %rdi
	cmpq	%rax, %rdi
	jb	LBB0_28
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=1
	testl	%esi, %esi
	jne	LBB0_36
## %bb.31:                              ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$2, %r14d
	jb	LBB0_36
## %bb.32:                              ##   in Loop: Header=BB0_26 Depth=1
	leal	1(%r14), %ebx
	cmpl	$10, %ebx
	ja	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%r13, %rdi
	movl	$17, %esi
	callq	_uivector_push_back
	addl	$-2, %r14d
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$3, %r14d
	jb	LBB0_44
## %bb.37:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	%r14d, %ebx
	movl	$2863311531, %eax               ## imm = 0xAAAAAAAB
	imulq	%rax, %rbx
	shrq	$34, %rbx
	leal	(%rbx,%rbx), %eax
	leal	(%rax,%rax,2), %eax
	movl	%r14d, %r15d
	subl	%eax, %r15d
	movq	%r13, %rdi
	callq	_uivector_push_back
	cmpl	$6, %r14d
	jb	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_39:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_uivector_push_back
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_uivector_push_back
	decq	%rbx
	jne	LBB0_39
LBB0_40:                                ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$3, %r15d
	jb	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_uivector_push_back
	addl	$-3, %r15d
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_uivector_push_back
	jmp	LBB0_43
LBB0_34:                                ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$138, %ebx
	movl	$138, %eax
	cmovael	%eax, %ebx
	movq	%r13, %rdi
	movl	$18, %esi
	callq	_uivector_push_back
	leal	-11(%rbx), %r14d
LBB0_35:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_uivector_push_back
	decl	%ebx
	addq	%rbx, %r12
	jmp	LBB0_45
LBB0_42:                                ##   in Loop: Header=BB0_26 Depth=1
	subl	%r15d, %r14d
LBB0_43:                                ##   in Loop: Header=BB0_26 Depth=1
	movl	%r14d, %eax
	addq	%rax, %r12
	jmp	LBB0_45
LBB0_46:
	movq	_NUM_CODE_LENGTH_CODES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-168(%rbp), %rdi
	xorl	%edx, %edx
	callq	_uivector_resizev
	testl	%eax, %eax
	jne	LBB0_48
## %bb.47:
	movl	$83, %edi
	callq	_ERROR_BREAK
LBB0_48:
	cmpq	$0, -96(%rbp)
	je	LBB0_51
## %bb.49:
	movq	-104(%rbp), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movq	-168(%rbp), %rdx
	movzbl	(%rcx,%rax), %ecx
	incb	(%rdx,%rcx)
	movq	-104(%rbp), %rcx
	cmpb	$16, (%rcx,%rax)
	sbbq	$-1, %rax
	incq	%rax
	cmpq	-96(%rbp), %rax
	jb	LBB0_50
LBB0_51:
	movq	-168(%rbp), %rsi
	movq	-160(%rbp), %rcx
	leaq	-48(%rbp), %rdi
	movl	%ecx, %edx
	movl	$7, %r8d
	callq	_HuffmanTree_makeFromFrequencies
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_78
## %bb.52:
	movl	-48(%rbp), %esi
	leaq	-88(%rbp), %rdi
	callq	_uivector_resize
	testl	%eax, %eax
	jne	LBB0_54
## %bb.53:
	movl	$83, %edi
	callq	_ERROR_BREAK
LBB0_54:
	cmpq	$0, -48(%rbp)
	movq	-216(%rbp), %r13                ## 8-byte Reload
	movq	-120(%rbp), %r12                ## 8-byte Reload
	je	LBB0_57
## %bb.55:
	xorl	%ebx, %ebx
	movq	_CLCL_ORDER@GOTPCREL(%rip), %r15
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_56:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_HuffmanTree_getLength
	movq	-88(%rbp), %rcx
	movb	%al, (%rcx,%rbx)
	incq	%rbx
	cmpq	-48(%rbp), %rbx
	jb	LBB0_56
LBB0_57:
	movl	24(%rbp), %r14d
	movq	-88(%rbp), %rax
	movq	-80(%rbp), %rsi
	cmpb	$0, -1(%rax,%rsi)
	jne	LBB0_64
## %bb.58:
	cmpq	$5, %rsi
	jb	LBB0_64
## %bb.59:
	decq	%rsi
	leaq	-88(%rbp), %rbx
	.p2align	4, 0x90
LBB0_60:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_uivector_resize
	testl	%eax, %eax
	jne	LBB0_62
## %bb.61:                              ##   in Loop: Header=BB0_60 Depth=1
	movl	$83, %edi
	callq	_ERROR_BREAK
LBB0_62:                                ##   in Loop: Header=BB0_60 Depth=1
	movq	-88(%rbp), %rcx
	movq	-80(%rbp), %rax
	cmpb	$0, -1(%rcx,%rax)
	jne	LBB0_64
## %bb.63:                              ##   in Loop: Header=BB0_60 Depth=1
	leaq	-1(%rax), %rsi
	cmpq	$4, %rax
	ja	LBB0_60
LBB0_64:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_addBitToStream
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_addBitToStream
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_addBitToStream
	movq	-88(%rbp), %rax
	movq	-80(%rbp), %r15
	leal	-4(%r15), %ecx
	.p2align	4, 0x90
LBB0_65:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rcx,%rbx), %rdx
	leal	3(%rdx), %esi
	decq	%rbx
	cmpb	$0, (%rax,%rsi)
	jne	LBB0_67
## %bb.66:                              ##   in Loop: Header=BB0_65 Depth=1
	testq	%rdx, %rdx
	jne	LBB0_65
LBB0_67:
	leal	(%r15,%rbx), %eax
	addl	$-3, %eax
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	movq	-208(%rbp), %rdx                ## 8-byte Reload
	addl	$-257, %edx                     ## imm = 0xFEFF
	movq	-128(%rbp), %r14                ## 8-byte Reload
	decl	%r14d
	leaq	(%r15,%rbx), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$5, %ecx
	callq	_addBitsToStream
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	$5, %ecx
	callq	_addBitsToStream
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-132(%rbp), %edx                ## 4-byte Reload
	movl	$4, %ecx
	callq	_addBitsToStream
	cmpl	$-1, -128(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_70
## %bb.68:
	leaq	(%r15,%rbx), %rax
	incq	%rax
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_69:                                ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rax
	movzbl	(%rax,%rbx), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$3, %ecx
	callq	_addBitsToStream
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_69
LBB0_70:
	cmpq	$0, -96(%rbp)
	je	LBB0_75
## %bb.71:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	movq	-120(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_72
	.p2align	4, 0x90
LBB0_74:                                ##   in Loop: Header=BB0_72 Depth=1
	incq	%rbx
	cmpq	-96(%rbp), %rbx
	jae	LBB0_75
LBB0_72:                                ## =>This Inner Loop Header: Depth=1
	movq	-104(%rbp), %rax
	movzbl	(%rax,%rbx), %esi
	movq	%r14, %rdi
	callq	_HuffmanTree_getCode
	movl	%eax, %r15d
	movq	-104(%rbp), %rax
	movzbl	(%rax,%rbx), %esi
	movq	%r14, %rdi
	callq	_HuffmanTree_getLength
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movq	%rax, %rcx
	callq	_addHuffmanSymbol
	movq	-104(%rbp), %rax
	movzbl	(%rax,%rbx), %ecx
	addb	$-16, %cl
	cmpb	$2, %cl
	ja	LBB0_74
## %bb.73:                              ##   in Loop: Header=BB0_72 Depth=1
	movsbq	%cl, %rcx
	leaq	l_switch.table.deflateDynamic(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
	movzbl	1(%rax,%rbx), %edx
	incq	%rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_addBitsToStream
	jmp	LBB0_74
LBB0_75:
	leaq	-72(%rbp), %rdx
	leaq	-56(%rbp), %rbx
	leaq	-112(%rbp), %r8
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	callq	_writeLZ77data
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_HuffmanTree_getLength
	testq	%rax, %rax
	jne	LBB0_77
## %bb.76:
	movl	$64, %edi
	callq	_ERROR_BREAK
LBB0_77:
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_HuffmanTree_getCode
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_HuffmanTree_getLength
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	%rax, %rcx
	callq	_addHuffmanSymbol
	xorl	%ebx, %ebx
LBB0_78:
	leaq	-72(%rbp), %rdi
	callq	_uivector_cleanup
	leaq	-56(%rbp), %rdi
	callq	_HuffmanTree_cleanup
	leaq	-112(%rbp), %rdi
	callq	_HuffmanTree_cleanup
	leaq	-48(%rbp), %rdi
	callq	_HuffmanTree_cleanup
	leaq	-184(%rbp), %rdi
	callq	_uivector_cleanup
	leaq	-200(%rbp), %rdi
	callq	_uivector_cleanup
	leaq	-168(%rbp), %rdi
	callq	_uivector_cleanup
	leaq	-104(%rbp), %rdi
	callq	_uivector_cleanup
	leaq	-152(%rbp), %rdi
	callq	_uivector_cleanup
	leaq	-88(%rbp), %rdi
	callq	_uivector_cleanup
	movl	%ebx, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_CODE_LENGTH_CODES,4,2      ## @NUM_CODE_LENGTH_CODES
	.comm	_CLCL_ORDER,8,3                 ## @CLCL_ORDER
	.no_dead_strip	_deflateDynamic
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.deflateDynamic
l_switch.table.deflateDynamic:
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	7                               ## 0x7

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deflateDynamic
_deflateDynamic:                        ; @deflateDynamic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x21, x7
	mov	x26, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x20, x1
	mov	x19, x0
	sub	x0, x29, #96
	bl	_uivector_init
	sub	x0, x29, #104
	bl	_HuffmanTree_init
	add	x0, sp, #112
	bl	_HuffmanTree_init
	add	x0, sp, #104
	bl	_HuffmanTree_init
	add	x0, sp, #88
	bl	_uivector_init
	add	x0, sp, #72
	bl	_uivector_init
	add	x0, sp, #56
	bl	_uivector_init
	add	x0, sp, #40
	bl	_uivector_init
	add	x0, sp, #24
	bl	_uivector_init
	add	x0, sp, #8
	bl	_uivector_init
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w6, w5, [x26, #8]
	ldp	w8, w7, [x26]
	str	w8, [sp]
	sub	x0, x29, #96
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	bl	_encodeLZ77
	mov	x22, x0
	cbnz	w0, LBB0_70
	b	LBB0_5
LBB0_2:
	sub	w1, w22, w23
	sub	x0, x29, #96
	bl	_uivector_resize
	cbz	w0, LBB0_41
; %bb.3:
	cmp	x22, x23
	b.ls	LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x24, x23]
	ldur	x9, [x29, #-96]
	strb	w8, [x9, x23]
	add	x23, x23, #1
	cmp	x22, x23
	b.ne	LBB0_4
LBB0_5:
	add	x0, sp, #88
	mov	w1, #286
	mov	w2, #0
	bl	_uivector_resizev
	cbnz	w0, LBB0_7
; %bb.6:
	mov	w0, #83
	bl	_ERROR_BREAK
LBB0_7:
	add	x0, sp, #72
	mov	w1, #30
	mov	w2, #0
	bl	_uivector_resizev
	cbnz	w0, LBB0_9
; %bb.8:
	mov	w0, #83
	bl	_ERROR_BREAK
LBB0_9:
	ldur	x8, [x29, #-88]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x8, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	x9, [x29, #-96]
	ldrb	w9, [x9, x8]
	ldr	x10, [sp, #88]
	ldrb	w11, [x10, x9]
	add	w11, w11, #1
	strb	w11, [x10, x9]
	add	x8, x8, #1
	ldur	x9, [x29, #-88]
	cmp	x8, x9
	b.lo	LBB0_11
LBB0_12:
	mov	w8, #1
	ldp	x1, x3, [sp, #88]
	strb	w8, [x1, #256]
	sub	x0, x29, #104
	mov	w2, #257
	mov	w4, #15
	bl	_HuffmanTree_makeFromFrequencies
	mov	x22, x0
	cbnz	w0, LBB0_70
; %bb.13:
	ldp	x1, x3, [sp, #72]
	add	x0, sp, #112
	mov	w2, #2
	mov	w4, #15
	bl	_HuffmanTree_makeFromFrequencies
	mov	x22, x0
	cbnz	w0, LBB0_70
; %bb.14:
	ldur	x8, [x29, #-104]
	mov	w9, #286
	cmp	x8, #286
	csel	x23, x8, x9, lo
	ldr	x8, [sp, #112]
	mov	w9, #30
	cmp	x8, #30
	csel	x24, x8, x9, lo
	cbz	x23, LBB0_17
; %bb.15:
	mov	x22, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #104
	mov	x1, x22
	bl	_HuffmanTree_getLength
	mov	x1, x0
	add	x0, sp, #40
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_uivector_push_back
	add	x22, x22, #1
	cmp	x23, x22
	b.ne	LBB0_16
LBB0_17:
	cbz	x24, LBB0_20
; %bb.18:
	mov	x22, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #112
	mov	x1, x22
	bl	_HuffmanTree_getLength
	mov	x1, x0
	add	x0, sp, #40
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_uivector_push_back
	add	x22, x22, #1
	cmp	x24, x22
	b.ne	LBB0_19
LBB0_20:
	ldr	w8, [sp, #48]
	cbz	x8, LBB0_42
; %bb.21:
	mov	x25, #0
	mov	w28, #6
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x0, sp, #24
	bl	_uivector_push_back
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x25, x25, #1
	ldr	w8, [sp, #48]
	cmp	x25, x8
	b.hs	LBB0_42
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
                                        ;     Child Loop BB0_35 Depth 2
	add	x9, x25, #1
	ldr	x10, [sp, #40]
	ldrb	w1, [x10, x25]
	cmp	x9, x8
	b.hs	LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w26, #0
	mov	x11, x9
LBB0_26:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w11, [x10, x11]
	cmp	w11, w1
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	add	w26, w26, #1
	add	x11, x9, x26
	cmp	x11, x8
	b.lo	LBB0_26
LBB0_28:                                ;   in Loop: Header=BB0_24 Depth=1
	cbnz	w1, LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=1
	subs	w22, w26, #2
	b.lo	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_24 Depth=1
	add	w26, w26, #1
	cmp	w26, #10
	b.hi	LBB0_38
; %bb.31:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x0, sp, #24
	mov	w1, #17
	bl	_uivector_push_back
	b	LBB0_39
LBB0_32:                                ;   in Loop: Header=BB0_24 Depth=1
	cmp	w26, #3
	b.lo	LBB0_22
; %bb.33:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w8, #43691
	movk	w8, #43690, lsl #16
	umull	x8, w26, w8
	lsr	x22, x8, #34
	add	x0, sp, #24
	bl	_uivector_push_back
	cmp	w26, #6
	b.lo	LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w27, w22
LBB0_35:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #24
	mov	w1, #16
	bl	_uivector_push_back
	add	x0, sp, #24
	mov	w1, #3
	bl	_uivector_push_back
	subs	x27, x27, #1
	b.ne	LBB0_35
LBB0_36:                                ;   in Loop: Header=BB0_24 Depth=1
	msub	w8, w22, w28, w26
	subs	w22, w8, #3
	b.lo	LBB0_40
; %bb.37:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x0, sp, #24
	mov	w1, #16
	bl	_uivector_push_back
	add	x0, sp, #24
	mov	x1, x22
	bl	_uivector_push_back
	add	x25, x25, w26, uxtw
	b	LBB0_23
LBB0_38:                                ;   in Loop: Header=BB0_24 Depth=1
	cmp	w26, #138
	mov	w8, #138
	csel	w26, w26, w8, lo
	add	x0, sp, #24
	mov	w1, #18
	bl	_uivector_push_back
	sub	w22, w26, #11
LBB0_39:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x0, sp, #24
	mov	x1, x22
	bl	_uivector_push_back
	sub	w8, w26, #1
	add	x25, x25, x8
	b	LBB0_23
LBB0_40:                                ;   in Loop: Header=BB0_24 Depth=1
	sub	w26, w26, w8
	add	x25, x25, w26, uxtw
	b	LBB0_23
LBB0_41:
	mov	w0, #83
	bl	_ERROR_BREAK
	cmp	x22, x23
	b.hi	LBB0_4
	b	LBB0_5
LBB0_42:
Lloh0:
	adrp	x8, _NUM_CODE_LENGTH_CODES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_CODE_LENGTH_CODES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #56
	mov	w2, #0
	bl	_uivector_resizev
	cbnz	w0, LBB0_44
; %bb.43:
	mov	w0, #83
	bl	_ERROR_BREAK
LBB0_44:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_47
; %bb.45:
	mov	x8, #0
	ldr	x9, [sp, #24]
LBB0_46:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [sp, #56]
	ldrb	w9, [x9, x8]
	ldrb	w11, [x10, x9]
	add	w11, w11, #1
	strb	w11, [x10, x9]
	ldp	x9, x10, [sp, #24]
	ldrb	w11, [x9, x8]
	cmp	w11, #15
	cinc	x8, x8, hi
	add	x8, x8, #1
	cmp	x8, x10
	b.lo	LBB0_46
LBB0_47:
	ldp	x1, x2, [sp, #56]
	add	x0, sp, #104
	mov	x3, x2
	mov	w4, #7
	bl	_HuffmanTree_makeFromFrequencies
	mov	x22, x0
	cbnz	w0, LBB0_70
; %bb.48:
	ldr	w1, [sp, #104]
	add	x0, sp, #8
	bl	_uivector_resize
	cbnz	w0, LBB0_50
; %bb.49:
	mov	w0, #83
	bl	_ERROR_BREAK
LBB0_50:
	ldr	x8, [sp, #104]
	cbz	x8, LBB0_53
; %bb.51:
	mov	x22, #0
Lloh3:
	adrp	x25, _CLCL_ORDER@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CLCL_ORDER@GOTPAGEOFF]
LBB0_52:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w1, [x8, x22, lsl #2]
	add	x0, sp, #104
	bl	_HuffmanTree_getLength
	ldr	x8, [sp, #8]
	strb	w0, [x8, x22]
	add	x22, x22, #1
	ldr	x8, [sp, #104]
	cmp	x22, x8
	b.lo	LBB0_52
LBB0_53:
	ldp	x8, x9, [sp, #8]
	sub	x1, x9, #1
	ldrb	w8, [x8, x1]
	cmp	w8, #0
	ccmp	x9, #5, #0, eq
	b.hs	LBB0_65
LBB0_54:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_addBitToStream
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_addBitToStream
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_addBitToStream
	mov	x8, #0
	ldp	x10, x9, [sp, #8]
	sub	w11, w9, #4
LBB0_55:                                ; =>This Inner Loop Header: Depth=1
	add	x12, x11, x8
	add	w13, w12, #3
	ldrb	w13, [x10, w13, uxtw]
	sub	x8, x8, #1
	cmp	w13, #0
	ccmp	x12, #0, #4, eq
	b.ne	LBB0_55
; %bb.56:
	add	w10, w9, w8
	sub	w21, w10, #3
	sub	w2, w23, #257
	sub	w22, w24, #1
	add	x23, x9, x8
	mov	x0, x20
	mov	x1, x19
	mov	w3, #5
	bl	_addBitsToStream
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w3, #5
	bl	_addBitsToStream
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #4
	bl	_addBitsToStream
	cmn	w23, #1
	b.eq	LBB0_59
; %bb.57:
	mov	x21, #0
	add	x8, x23, #1
	and	x22, x8, #0xffffffff
LBB0_58:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldrb	w2, [x8, x21]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #3
	bl	_addBitsToStream
	add	x21, x21, #1
	cmp	x22, x21
	b.ne	LBB0_58
LBB0_59:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_67
; %bb.60:
	mov	x22, #0
Lloh5:
	adrp	x23, l_switch.table.deflateDynamic@PAGE
Lloh6:
	add	x23, x23, l_switch.table.deflateDynamic@PAGEOFF
	b	LBB0_62
LBB0_61:                                ;   in Loop: Header=BB0_62 Depth=1
	add	x22, x22, #1
	ldr	x8, [sp, #32]
	cmp	x22, x8
	b.hs	LBB0_67
LBB0_62:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldrb	w1, [x8, x22]
	add	x0, sp, #104
	bl	_HuffmanTree_getCode
	mov	x21, x0
	ldr	x8, [sp, #24]
	ldrb	w1, [x8, x22]
	add	x0, sp, #104
	bl	_HuffmanTree_getLength
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_addHuffmanSymbol
	ldr	x8, [sp, #24]
	ldrb	w9, [x8, x22]
	sub	w9, w9, #16
	cmp	w9, #2
	b.hi	LBB0_61
; %bb.63:                               ;   in Loop: Header=BB0_62 Depth=1
	sxtb	x9, w9
	ldr	w3, [x23, x9, lsl #2]
	add	x22, x22, #1
	ldrb	w2, [x8, x22]
	mov	x0, x20
	mov	x1, x19
	bl	_addBitsToStream
	b	LBB0_61
LBB0_64:                                ;   in Loop: Header=BB0_65 Depth=1
	ldp	x8, x9, [sp, #8]
	sub	x1, x9, #1
	ldrb	w8, [x8, x1]
	cmp	w8, #0
	ccmp	x9, #4, #0, eq
	b.ls	LBB0_54
LBB0_65:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_uivector_resize
	cbnz	w0, LBB0_64
; %bb.66:                               ;   in Loop: Header=BB0_65 Depth=1
	mov	w0, #83
	bl	_ERROR_BREAK
	b	LBB0_64
LBB0_67:
	sub	x2, x29, #96
	sub	x3, x29, #104
	add	x4, sp, #112
	mov	x0, x20
	mov	x1, x19
	bl	_writeLZ77data
	sub	x0, x29, #104
	mov	w1, #256
	bl	_HuffmanTree_getLength
	cbnz	x0, LBB0_69
; %bb.68:
	mov	w0, #64
	bl	_ERROR_BREAK
LBB0_69:
	sub	x0, x29, #104
	mov	w1, #256
	bl	_HuffmanTree_getCode
	mov	x21, x0
	sub	x0, x29, #104
	mov	w1, #256
	bl	_HuffmanTree_getLength
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_addHuffmanSymbol
	mov	w22, #0
LBB0_70:
	sub	x0, x29, #96
	bl	_uivector_cleanup
	sub	x0, x29, #104
	bl	_HuffmanTree_cleanup
	add	x0, sp, #112
	bl	_HuffmanTree_cleanup
	add	x0, sp, #104
	bl	_HuffmanTree_cleanup
	add	x0, sp, #88
	bl	_uivector_cleanup
	add	x0, sp, #72
	bl	_uivector_cleanup
	add	x0, sp, #56
	bl	_uivector_cleanup
	add	x0, sp, #24
	bl	_uivector_cleanup
	add	x0, sp, #40
	bl	_uivector_cleanup
	add	x0, sp, #8
	bl	_uivector_cleanup
	mov	x0, x22
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_CODE_LENGTH_CODES,4,2      ; @NUM_CODE_LENGTH_CODES
	.comm	_CLCL_ORDER,8,3                 ; @CLCL_ORDER
	.no_dead_strip	_deflateDynamic
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.deflateDynamic
l_switch.table.deflateDynamic:
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	7                               ; 0x7

.subsections_via_symbols
