	.file	"extr_lzss.h_lzss_copy_bytes_from_window.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lzss_copy_bytes_from_window, @function
lzss_copy_bytes_from_window:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	mov	esi, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	lzss_offset_for_position@PLT
	mov	rdi, rbp
	movsx	rbx, eax
	call	lzss_size@PLT
	sub	eax, ebx
	movsx	r12, eax
	mov	rax, QWORD PTR 0[rbp]
	lea	rsi, [rax+rbx*4]
	cmp	r12d, r13d
	jl	.L2
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r14
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	memcpy@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, r12d
	mov	rdi, r14
	call	memcpy@PLT
	mov	edx, r13d
	mov	rsi, QWORD PTR 0[rbp]
	pop	rbx
	.cfi_def_cfa_offset 40
	lea	rdi, [r14+r12*4]
	pop	rbp
	.cfi_def_cfa_offset 32
	sub	edx, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	memcpy@PLT
	.cfi_endproc
.LFE0:
	.size	lzss_copy_bytes_from_window, .-lzss_copy_bytes_from_window
	.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_lzss.h_lzss_copy_bytes_from_window.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lzss_copy_bytes_from_window, %function
lzss_copy_bytes_from_window:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r1
	mov	r1, r2
	mov	r5, r0
	mov	r6, r3
	bl	lzss_offset_for_position
	mov	r7, r0
	mov	r0, r5
	bl	lzss_size
	sub	r4, r0, r7
	cmp	r4, r6
	ldr	r1, [r5]
	blt	.L2
	mov	r2, r6
	mov	r0, r8
	add	r1, r1, r7, lsl #2
	pop	{r4, r5, r6, r7, r8, lr}
	b	memcpy
.L2:
	mov	r2, r4
	add	r1, r1, r7, lsl #2
	mov	r0, r8
	bl	memcpy
	ldr	r1, [r5]
	sub	r2, r6, r4
	add	r0, r8, r4, lsl #2
	pop	{r4, r5, r6, r7, r8, lr}
	b	memcpy
	.size	lzss_copy_bytes_from_window, .-lzss_copy_bytes_from_window
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
