	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writeLZ77data
_writeLZ77data:                         ## @writeLZ77data
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rdx)
	je	LBB0_5
## %bb.1:
	movq	%rdx, %r13
	xorl	%r12d, %r12d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	(%r13), %r12
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%r12,4), %ebx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_HuffmanTree_getCode
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_HuffmanTree_getLength
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_addHuffmanSymbol
	cmpl	$257, %ebx                      ## imm = 0x101
	jb	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_FIRST_LENGTH_CODE_INDEX@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	_LENGTHEXTRA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	8(%r13), %rax
	movl	4(%rax,%r12,4), %edx
	movl	8(%rax,%r12,4), %ebx
	movq	_DISTANCEEXTRA@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rsi,%rbx,4), %esi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	12(%rax,%r12,4), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	addq	$3, %r12
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_addBitsToStream
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_HuffmanTree_getCode
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_HuffmanTree_getLength
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_addHuffmanSymbol
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_addBitsToStream
	jmp	LBB0_4
LBB0_5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIRST_LENGTH_CODE_INDEX,4,2    ## @FIRST_LENGTH_CODE_INDEX
	.comm	_LENGTHEXTRA,8,3                ## @LENGTHEXTRA
	.comm	_DISTANCEEXTRA,8,3              ## @DISTANCEEXTRA
	.no_dead_strip	_writeLZ77data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writeLZ77data
_writeLZ77data:                         ; @writeLZ77data
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x2]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x28, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	ldr	x8, [x21]
	cmp	x28, x8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w24, [x8, x28, lsl #2]
	mov	x0, x20
	mov	x1, x24
	bl	_HuffmanTree_getCode
	mov	x25, x0
	mov	x0, x20
	mov	x1, x24
	bl	_HuffmanTree_getLength
	mov	x3, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	bl	_addHuffmanSymbol
	cmp	w24, #257
	b.lo	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh0:
	adrp	x8, _FIRST_LENGTH_CODE_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIRST_LENGTH_CODE_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w24, w8
Lloh3:
	adrp	x9, _LENGTHEXTRA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LENGTHEXTRA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w3, [x9, w8, uxtw #2]
	ldr	x8, [x21, #8]
	add	x9, x8, x28, lsl #2
	ldp	w2, w24, [x9, #4]
Lloh6:
	adrp	x9, _DISTANCEEXTRA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DISTANCEEXTRA@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w25, [x9, x24, lsl #2]
	add	x28, x28, #3
	ldr	w26, [x8, x28, lsl #2]
	mov	x0, x23
	mov	x1, x22
	bl	_addBitsToStream
	mov	x0, x19
	mov	x1, x24
	bl	_HuffmanTree_getCode
	mov	x27, x0
	mov	x0, x19
	mov	x1, x24
	bl	_HuffmanTree_getLength
	mov	x3, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x27
	bl	_addHuffmanSymbol
	mov	x0, x23
	mov	x1, x22
	mov	x2, x26
	mov	x3, x25
	bl	_addBitsToStream
	b	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FIRST_LENGTH_CODE_INDEX,4,2    ; @FIRST_LENGTH_CODE_INDEX
	.comm	_LENGTHEXTRA,8,3                ; @LENGTHEXTRA
	.comm	_DISTANCEEXTRA,8,3              ; @DISTANCEEXTRA
	.no_dead_strip	_writeLZ77data
.subsections_via_symbols
