	.file	"extr_backward_references_hq.c_ComputeDistanceCache.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ComputeDistanceCache, @function
ComputeDistanceCache:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	sal	rdi, 4
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR 8[rdx+rdi]
	mov	QWORD PTR 8[rsp], rsi
	test	rbx, rbx
	je	.L6
	mov	r15, rdx
	mov	r14d, 1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r12, rbx
	sal	r12, 4
	add	r12, r15
	mov	r13d, DWORD PTR [r12]
	mov	rdi, r12
	call	ZopfliNodeCopyLength@PLT
	mov	rdi, r12
	and	r13d, 134217727
	mov	QWORD PTR [rsp], rax
	call	ZopfliNodeCopyDistance@PLT
	sub	rbx, QWORD PTR [rsp]
	sub	rbx, r13
	mov	r8, rax
	movsx	rax, r14d
	sal	rbx, 4
	cmp	r14d, 3
	mov	DWORD PTR -4[rbp+r14*4], r8d
	mov	rbx, QWORD PTR 8[r15+rbx]
	setle	dil
	test	rbx, rbx
	setne	sil
	add	r14, 1
	test	dil, sil
	jne	.L3
	cmp	eax, 4
	je	.L1
.L2:
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, rax
	neg	rdx
	lea	rsi, [rcx+rdx*4]
.L5:
	mov	edx, DWORD PTR [rsi+rax*4]
	mov	DWORD PTR 0[rbp+rax*4], edx
	add	rax, 1
	cmp	eax, 3
	jle	.L5
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	eax, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ComputeDistanceCache, .-ComputeDistanceCache
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_backward_references_hq.c_ComputeDistanceCache.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ComputeDistanceCache, %function
ComputeDistanceCache:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	r0, r2, r0, lsl #3
	ldr	r6, [r0, #4]
	sub	sp, sp, #12
	cmp	r6, #0
	mov	r9, r1
	str	r3, [sp, #4]
	beq	.L6
	mov	r8, r2
	mov	r5, #0
	sub	r10, r3, #4
.L3:
	add	r7, r8, r6, lsl #3
	mov	r0, r7
	ldr	r4, [r8, r6, lsl #3]
	bl	ZopfliNodeCopyLength
	bic	fp, r4, #-134217728
	mov	r4, r0
	sub	r4, r6, r4
	sub	r4, r4, fp
	mov	r0, r7
	add	r4, r8, r4, lsl #3
	bl	ZopfliNodeCopyDistance
	add	r5, r5, #1
	ldr	r6, [r4, #4]
	cmp	r5, #3
	movgt	r3, #0
	movle	r3, #1
	cmp	r6, #0
	moveq	r3, #0
	cmp	r3, #0
	str	r0, [r10, #4]!
	bne	.L3
	cmp	r5, #3
	bgt	.L1
.L2:
	ldr	r3, [sp, #4]
	add	r7, r3, r5, lsl #2
.L5:
	ldr	r3, [r9], #4
	add	r5, r5, #1
	cmp	r5, #4
	str	r3, [r7], #4
	bne	.L5
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r5, r6
	b	.L2
	.size	ComputeDistanceCache, .-ComputeDistanceCache
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
