	.file	"extr_flashsvenc.c_copy_region_enc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	copy_region_enc, @function
copy_region_enc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	ebp, edx
	add	edx, r8d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	eax, DWORD PTR 56[rsp]
	mov	r11, QWORD PTR 64[rsp]
	cmp	ebp, edx
	jge	.L6
	mov	r12d, eax
	imul	eax, edx
	lea	ecx, [rcx+rcx*2]
	movsx	rcx, ecx
	lea	r14d, [r9+r9*2]
	neg	r12d
	movsx	r12, r12d
	movsx	r13, r14d
	cdqe
	sub	r13, r12
	lea	r15, 0[0+r12*4]
	lea	rbx, [rcx+rax]
	sal	r13, 2
	mov	r8, rbx
	neg	r8
	lea	r10, [rsi+r8*4]
	lea	esi, -1[r14]
	lea	r9, 1[rcx+rsi]
	xor	esi, esi
	add	r9, rax
	sal	r9, 2
	.p2align 4,,10
	.p2align 3
.L5:
	test	r14d, r14d
	jle	.L3
	lea	rax, 0[0+rbx*4]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, DWORD PTR [rdi+rax]
	mov	r8d, DWORD PTR [r11+rax]
	mov	DWORD PTR [r10+rax], ecx
	xor	r8d, ecx
	add	rax, 4
	or	esi, r8d
	cmp	r9, rax
	jne	.L4
.L3:
	sub	edx, 1
	add	rbx, r12
	add	r10, r13
	add	r9, r15
	cmp	ebp, edx
	jne	.L5
	xor	eax, eax
	test	esi, esi
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	setne	al
	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
.L6:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 48
	xor	eax, eax
	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	copy_region_enc, .-copy_region_enc
	.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_flashsvenc.c_copy_region_enc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_region_enc, %function
copy_region_enc:
	@ args = 16, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	ldr	r8, [sp, #48]
	ldr	fp, [sp, #52]
	add	r8, r2, r8
	cmp	r2, r8
	ldr	r10, [sp, #56]
	str	r0, [sp, #4]
	bge	.L6
	mov	r4, #0
	add	r3, r3, r3, lsl #1
	sub	r7, r3, #-1073741823
	mla	r7, r10, r8, r7
	add	r9, fp, fp, lsl #1
	lsl	r9, r9, #2
	rsb	r10, r10, r10, lsl #30
	sub	r6, r9, #4
	lsl	r7, r7, #2
	lsl	r10, r10, #2
	add	r6, r1, r6
.L5:
	cmp	fp, #0
	ble	.L3
	ldr	r3, [sp, #60]
	sub	r0, r1, #4
	add	lr, r3, r7
	ldr	r3, [sp, #4]
	add	ip, r3, r7
.L4:
	ldr	r3, [ip, #4]!
	ldr	r5, [lr, #4]!
	str	r3, [r0, #4]!
	cmp	r6, r0
	eor	r3, r3, r5
	orr	r4, r4, r3
	bne	.L4
.L3:
	sub	r8, r8, #1
	cmp	r2, r8
	add	r1, r1, r9
	add	r6, r6, r9
	add	r7, r7, r10
	bne	.L5
	subs	r0, r4, #0
	movne	r0, #1
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	copy_region_enc, .-copy_region_enc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
