	.file	"extr_aic7xxx_proc.c_copy_mem_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	copy_mem_info, @function
copy_mem_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movsx	rax, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	rbp, rax
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR [rdi]
	mov	rcx, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR 16[rbx]
	add	rax, rdi
	lea	r8, [rcx+rdx]
	cmp	rax, r8
	jle	.L2
	lea	ebp, [rcx+rdx]
	sub	ebp, edi
	movsx	rax, ebp
	add	rax, rdi
.L2:
	cmp	rcx, rax
	jg	.L8
	cmp	rdi, rcx
	jge	.L5
	mov	rax, rcx
	mov	QWORD PTR [rbx], rcx
	sub	rax, rdi
	add	rsi, rax
	sub	ebp, eax
.L5:
	test	ebp, ebp
	jg	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rbx]
	mov	edx, ebp
	call	memcpy@PLT
	add	DWORD PTR 24[rbx], ebp
	movsx	rax, ebp
	add	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	copy_mem_info, .-copy_mem_info
	.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_aic7xxx_proc.c_copy_mem_info.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_mem_info, %function
copy_mem_info:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r2
	ldr	r3, [r4, #8]
	ldr	r2, [r0]
	ldr	r0, [r0, #4]
	add	ip, r2, r5
	add	r3, r0, r3
	cmp	ip, r3
	movgt	ip, r3
	subgt	r5, r3, r2
	cmp	r0, ip
	bgt	.L8
	cmp	r2, r0
	sublt	r2, r0, r2
	sublt	r5, r5, r2
	addlt	r1, r1, r2
	strlt	r0, [r4]
	cmp	r5, #0
	pople	{r4, r5, r6, pc}
	mov	r2, r5
	ldr	r0, [r4, #12]
	bl	memcpy
	ldr	r3, [r4]
	ldr	r2, [r4, #12]
	add	r3, r3, r5
	add	r2, r2, r5
	str	r3, [r4]
	str	r2, [r4, #12]
	pop	{r4, r5, r6, pc}
.L8:
	str	ip, [r4]
	pop	{r4, r5, r6, pc}
	.size	copy_mem_info, .-copy_mem_info
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
