	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ComputeDistanceCache
_ComputeDistanceCache:                  ## @ComputeDistanceCache
	.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
	shlq	$4, %rdi
	movq	8(%rdx,%rdi), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %r12
	movq	%r14, %rax
	shlq	$4, %rax
	leaq	(%rdx,%rax), %r13
	movq	(%rdx,%rax), %r15
	movq	%r13, %rdi
	callq	_ZopfliNodeCopyLength
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_ZopfliNodeCopyDistance
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	1(%r12), %rdi
	movl	%eax, (%rcx,%r12,4)
	cmpq	$2, %r12
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %r15
	subq	%r15, %r14
	shlq	$4, %r14
	movq	8(%rdx,%r14), %r14
	testq	%r14, %r14
	jne	LBB0_2
LBB0_4:
	testl	$-4, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_21
	jmp	LBB0_6
LBB0_5:
	xorl	%edi, %edi
LBB0_6:
	movl	%edi, %r9d
	movl	$4, %r10d
	subq	%rdi, %r10
	cmpq	$8, %r10
	jb	LBB0_7
## %bb.8:
	leaq	(%rcx,%rdi,4), %rdx
	movq	%rdx, %rax
	subq	%rsi, %rax
	cmpq	$32, %rax
	jae	LBB0_10
LBB0_7:
	movq	%rsi, %rax
LBB0_16:
	movl	%r9d, %edx
	negl	%edx
	movq	%r9, %rdi
	andq	$3, %rdx
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %esi
	addq	$4, %rax
	movl	%esi, (%rcx,%rdi,4)
	incq	%rdi
	decq	%rdx
	jne	LBB0_17
LBB0_18:
	decq	%r9
	cmpq	$3, %r9
	jb	LBB0_21
## %bb.19:
	movl	$4, %edx
	subq	%rdi, %rdx
	leaq	(%rcx,%rdi,4), %rcx
	addq	$12, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %edi
	movl	%edi, -12(%rcx,%rsi,4)
	movl	4(%rax,%rsi,4), %edi
	movl	%edi, -8(%rcx,%rsi,4)
	movl	8(%rax,%rsi,4), %edi
	movl	%edi, -4(%rcx,%rsi,4)
	movl	12(%rax,%rsi,4), %edi
	movl	%edi, (%rcx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_20
	jmp	LBB0_21
LBB0_10:
	movq	%r10, %r8
	andq	$-8, %r8
	addq	%r8, %r9
	leaq	(%rsi,%r8,4), %rax
	leaq	-8(%r8), %rbx
	shrq	$3, %rbx
	incq	%rbx
	movl	%ebx, %r11d
	andl	$3, %r11d
	andq	$-4, %rbx
	movl	$112, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movups	-112(%rsi,%rdi), %xmm0
	movups	-96(%rsi,%rdi), %xmm1
	movups	%xmm0, -112(%rdx,%rdi)
	movups	%xmm1, -96(%rdx,%rdi)
	movups	-80(%rsi,%rdi), %xmm0
	movups	-64(%rsi,%rdi), %xmm1
	movups	%xmm0, -80(%rdx,%rdi)
	movups	%xmm1, -64(%rdx,%rdi)
	movups	-48(%rsi,%rdi), %xmm0
	movups	-32(%rsi,%rdi), %xmm1
	movups	%xmm0, -48(%rdx,%rdi)
	movups	%xmm1, -32(%rdx,%rdi)
	movups	-16(%rsi,%rdi), %xmm0
	movups	(%rsi,%rdi), %xmm1
	movups	%xmm0, -16(%rdx,%rdi)
	movups	%xmm1, (%rdx,%rdi)
	subq	$-128, %rdi
	addq	$-4, %rbx
	jne	LBB0_11
## %bb.12:
	testq	%r11, %r11
	je	LBB0_15
## %bb.13:
	addq	$-96, %rdi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rdi), %xmm0
	movups	(%rsi,%rdi), %xmm1
	movups	%xmm0, -16(%rdx,%rdi)
	movups	%xmm1, (%rdx,%rdi)
	addq	$32, %rdi
	decq	%r11
	jne	LBB0_14
LBB0_15:
	cmpq	%r8, %r10
	jne	LBB0_16
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ComputeDistanceCache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ComputeDistanceCache
_ComputeDistanceCache:                  ; @ComputeDistanceCache
	.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, x3
	mov	x20, x1
	add	x8, x2, x0, lsl #4
	ldr	x24, [x8, #8]
	cbz	x24, LBB0_5
; %bb.1:
	mov	x21, x2
	add	x22, x2, x24, lsl #4
	ldr	x25, [x22]
	mov	x0, x22
	bl	_ZopfliNodeCopyLength
	mov	x23, x0
	mov	x0, x22
	bl	_ZopfliNodeCopyDistance
	str	w0, [x19]
	add	x8, x25, x23
	sub	x8, x24, x8
	add	x8, x21, x8, lsl #4
	ldr	x24, [x8, #8]
	cbz	x24, LBB0_6
; %bb.2:
	add	x22, x21, x24, lsl #4
	ldr	x25, [x22]
	mov	x0, x22
	bl	_ZopfliNodeCopyLength
	mov	x23, x0
	mov	x0, x22
	bl	_ZopfliNodeCopyDistance
	str	w0, [x19, #4]
	add	x8, x25, x23
	sub	x8, x24, x8
	add	x8, x21, x8, lsl #4
	ldr	x24, [x8, #8]
	cbz	x24, LBB0_7
; %bb.3:
	add	x22, x21, x24, lsl #4
	ldr	x25, [x22]
	mov	x0, x22
	bl	_ZopfliNodeCopyLength
	mov	x23, x0
	mov	x0, x22
	bl	_ZopfliNodeCopyDistance
	str	w0, [x19, #8]
	add	x8, x25, x23
	sub	x8, x24, x8
	add	x8, x21, x8, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.4:
	add	x21, x21, x8, lsl #4
	mov	x0, x21
	bl	_ZopfliNodeCopyLength
	mov	x0, x21
	bl	_ZopfliNodeCopyDistance
	str	w0, [x19, #12]
	mov	w8, #4
	tbz	w8, #2, LBB0_9
	b	LBB0_14
LBB0_5:
	mov	x8, #0
	b	LBB0_9
LBB0_6:
	mov	w8, #1
	tbz	w8, #2, LBB0_9
	b	LBB0_14
LBB0_7:
	mov	w8, #2
	tbz	w8, #2, LBB0_9
	b	LBB0_14
LBB0_8:
	mov	w8, #3
	tbnz	w8, #2, LBB0_14
LBB0_9:
	mov	w9, #4
	sub	x10, x9, x8
	cmp	x10, #16
	b.lo	LBB0_11
; %bb.10:
	add	x12, x19, x8, lsl #2
	sub	x9, x12, x20
	cmp	x9, #64
	b.hs	LBB0_15
LBB0_11:
	mov	x9, x20
LBB0_12:
	lsl	x8, x8, #2
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	str	w10, [x19, x8]
	add	x8, x8, #4
	cmp	x8, #16
	b.ne	LBB0_13
LBB0_14:
	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
LBB0_15:
	and	x11, x10, #0xfffffffffffffff0
	orr	x8, x8, x11
	add	x9, x20, x11, lsl #2
	add	x12, x12, #32
	add	x13, x20, #32
	mov	x14, x11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x14, x14, #16
	b.ne	LBB0_16
; %bb.17:
	cmp	x10, x11
	b.eq	LBB0_14
	b	LBB0_12
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ComputeDistanceCache
.subsections_via_symbols
