	.file	"extr_lzss.h_lzss_emit_match.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lzss_emit_match, @function
lzss_emit_match:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], edx
	call	lzss_current_window_offset@PLT
	test	r15d, r15d
	jle	.L2
	mov	ecx, r15d
	mov	r13d, eax
	sub	ecx, ebx
	sub	r13d, ebx
	mov	ebp, ecx
	add	ebp, eax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r14
	mov	r15, QWORD PTR 8[r14]
	call	lzss_mask@PLT
	mov	rdi, r14
	and	eax, r13d
	cdqe
	lea	r12, [r15+rax*4]
	mov	r15, QWORD PTR 8[r14]
	call	lzss_mask@PLT
	mov	edx, DWORD PTR [r12]
	mov	r8d, eax
	lea	eax, 0[r13+rbx]
	add	r13d, 1
	and	eax, r8d
	cdqe
	mov	DWORD PTR [r15+rax*4], edx
	cmp	r13d, ebp
	jne	.L3
.L2:
	mov	eax, DWORD PTR 12[rsp]
	add	DWORD PTR [r14], eax
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	lzss_emit_match, .-lzss_emit_match
	.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_emit_match.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lzss_emit_match, %function
lzss_emit_match:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r2
	mov	r7, r1
	mov	r5, r0
	bl	lzss_current_window_offset
	cmp	r9, #0
	ble	.L2
	sub	r8, r9, r7
	add	r8, r8, r0
	sub	r4, r0, r7
.L3:
	mov	r0, r5
	ldr	fp, [r5, #4]
	bl	lzss_mask
	mov	r6, r0
	mov	r0, r5
	ldr	r10, [r5, #4]
	bl	lzss_mask
	and	r6, r6, r4
	add	r3, r4, r7
	ldr	r2, [fp, r6, lsl #2]
	add	r4, r4, #1
	and	r3, r3, r0
	cmp	r4, r8
	str	r2, [r10, r3, lsl #2]
	bne	.L3
.L2:
	ldr	r2, [r5]
	add	r9, r2, r9
	str	r9, [r5]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	lzss_emit_match, .-lzss_emit_match
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
