	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lzss_emit_match
_lzss_emit_match:                       ## @lzss_emit_match
	.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
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_lzss_current_offset
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_lzss_mask
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_35
## %bb.1:
	movl	%r13d, %ebx
	subl	%r12d, %ebx
	andl	%eax, %ebx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edx
	callq	_memcpy
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_lzss_mask
	movl	%eax, %r13d
	andl	-48(%rbp), %r13d                ## 4-byte Folded Reload
	movq	%r15, %rdi
	callq	_lzss_mask
	movl	%eax, %ebx
	andl	%r14d, %ebx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	subl	%r12d, %eax
	movl	%eax, %r12d
	jle	LBB0_35
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
                                        ##     Child Loop BB0_28 Depth 2
                                        ##     Child Loop BB0_31 Depth 2
                                        ##     Child Loop BB0_34 Depth 2
	movq	%r15, %rdi
	callq	_lzss_size
	cmpl	%ebx, %r13d
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	subl	%r13d, %eax
	movl	%r13d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	subl	%ebx, %eax
	movl	%ebx, %r14d
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %ecx
	cmpl	%eax, %r12d
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_lzss_size
	movl	%eax, %r12d
	subl	%r14d, %r12d
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %r11
	movslq	%r13d, %r8
	leaq	(%r11,%r8), %rdi
	movslq	%ebx, %r9
	leaq	(%r11,%r9), %rsi
	leal	(%r12,%r13), %eax
	leal	(%r12,%rbx), %r14d
	cmpl	%ebx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jl	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r13d, %r14d
	jl	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %r13d
	cmpl	$8, %r12d
	jb	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdi, %rax
	subq	%rsi, %rax
	cmpq	$32, %rax
	jae	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rax
	notq	%rax
	addq	%r13, %rax
	movq	%r13, %rcx
	andq	$3, %rcx
	je	LBB0_32
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rsi,%rbx), %edx
	movb	%dl, (%rdi,%rbx)
	incq	%rbx
	decq	%rcx
	jne	LBB0_31
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$3, %rax
	jb	LBB0_3
## %bb.33:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r11,%r8), %rax
	addq	$3, %rax
	leaq	(%r11,%r9), %rcx
	addq	$3, %rcx
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-3(%rcx,%rbx), %edx
	movb	%dl, -3(%rax,%rbx)
	movzbl	-2(%rcx,%rbx), %edx
	movb	%dl, -2(%rax,%rbx)
	movzbl	-1(%rcx,%rbx), %edx
	movb	%dl, -1(%rax,%rbx)
	movzbl	(%rcx,%rbx), %edx
	movb	%dl, (%rax,%rbx)
	addq	$4, %rbx
	cmpq	%rbx, %r13
	jne	LBB0_34
	jmp	LBB0_3
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$32, %r12d
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %ebx
	andl	$-32, %ebx
	leaq	-32(%rbx), %rax
	movq	%rax, %rdx
	shrq	$5, %rdx
	incq	%rdx
	movl	%edx, %r10d
	andl	$3, %r10d
	cmpq	$96, %rax
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	jae	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	andq	$-4, %rdx
	leaq	(%r11,%r9), %rcx
	addq	$112, %rcx
	addq	%r11, %r8
	addq	$112, %r8
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-112(%rcx,%rax), %xmm0
	movups	-96(%rcx,%rax), %xmm1
	movups	%xmm0, -112(%r8,%rax)
	movups	%xmm1, -96(%r8,%rax)
	movups	-80(%rcx,%rax), %xmm0
	movups	-64(%rcx,%rax), %xmm1
	movups	%xmm0, -80(%r8,%rax)
	movups	%xmm1, -64(%r8,%rax)
	movups	-48(%rcx,%rax), %xmm0
	movups	-32(%rcx,%rax), %xmm1
	movups	%xmm0, -48(%r8,%rax)
	movups	%xmm1, -32(%r8,%rax)
	movups	-16(%rcx,%rax), %xmm0
	movups	(%rcx,%rax), %xmm1
	movups	%xmm0, -16(%r8,%rax)
	movups	%xmm1, (%r8,%rax)
	subq	$-128, %rax
	addq	$-4, %rdx
	jne	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r10, %r10
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rax,%r8), %rcx
	addq	%r11, %rcx
	addq	$16, %rcx
	addq	%r9, %rax
	addq	%r11, %rax
	addq	$16, %rax
	shlq	$5, %r10
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rax,%rdx), %xmm0
	movups	(%rax,%rdx), %xmm1
	movups	%xmm0, -16(%rcx,%rdx)
	movups	%xmm1, (%rcx,%rdx)
	addq	$32, %rdx
	cmpq	%rdx, %r10
	jne	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r13, %rbx
	je	LBB0_3
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	testb	$24, %r13b
	je	LBB0_30
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rax
	movl	%r13d, %ebx
	andl	$-8, %ebx
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi,%rax), %rcx
	movq	%rcx, (%rdi,%rax)
	addq	$8, %rax
	cmpq	%rax, %rbx
	jne	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r13, %rbx
	je	LBB0_3
	jmp	LBB0_30
LBB0_35:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 8(%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lzss_emit_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lzss_emit_match
_lzss_emit_match:                       ; @lzss_emit_match
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_lzss_current_offset
	mov	x22, x0
	mov	x0, x20
	bl	_lzss_mask
	cmp	w19, #1
	b.lt	LBB0_25
; %bb.1:
	sub	w8, w22, w21
	and	w26, w8, w0
	mov	x23, x19
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x8, x10
	add	x1, x8, x9
	mov	x2, x21
	bl	_memcpy
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w23, w23, w21
	mov	x0, x20
	bl	_lzss_mask
	and	w22, w0, w25
	mov	x0, x20
	bl	_lzss_mask
	and	w26, w0, w24
	cmp	w23, #0
	b.le	LBB0_25
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	mov	x0, x20
	bl	_lzss_size
	cmp	w22, w26
	b.le	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w0, w22
	cmp	w23, w8
	mov	x24, x22
	mov	x21, x23
	b.gt	LBB0_7
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w0, w26
	cmp	w23, w8
	mov	x24, x26
	mov	x21, x23
	b.le	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_lzss_size
	sub	w21, w0, w24
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	sxtw	x10, w22
	sxtw	x9, w26
	add	w24, w21, w26
	add	w25, w21, w22
	cmp	w25, w26
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w24, w22
	b.lt	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w11, w21
	cmp	w21, #8
	b.lo	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x8, x10
	add	x13, x8, x9
	sub	x12, x12, x13
	cmp	x12, #64
	b.hs	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x12, #0
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x12, x10
	add	x10, x8, x10
	add	x9, x12, x9
	add	x8, x8, x9
	sub	x9, x11, x12
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w11, [x8], #1
	strb	w11, [x10], #1
	subs	x9, x9, #1
	b.ne	LBB0_15
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w21, #64
	b.hs	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x12, #0
	b	LBB0_22
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	and	x12, x11, #0xffffffc0
	add	x14, x8, #32
	add	x13, x14, x10
	add	x14, x14, x9
	mov	x15, x12
LBB0_19:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x15, x15, #64
	b.ne	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x12, x11
	b.eq	LBB0_3
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	tst	x11, #0x38
	b.eq	LBB0_14
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x15, x12
	and	x12, x11, #0xfffffff8
	add	x13, x15, x9
	add	x13, x8, x13
	add	x14, x15, x10
	add	x14, x8, x14
	sub	x15, x15, x12
LBB0_23:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x13], #8
	str	d0, [x14], #8
	adds	x15, x15, #8
	b.ne	LBB0_23
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x12, x11
	b.eq	LBB0_3
	b	LBB0_14
LBB0_25:
	ldr	w8, [x20, #8]
	add	w8, w8, w19
	str	w8, [x20, #8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lzss_emit_match
.subsections_via_symbols
