	.file	"extr_target.c_target_xfer_memory.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	target_xfer_memory, @function
target_xfer_memory:
.LFB0:
	.cfi_startproc
	endbr64
	test	edx, edx
	jle	.L23
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
.L27:
	movsx	rdx, r12d
.L15:
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rdx
	call	lookup_mem_region@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rbx, rax
	mov	rax, QWORD PTR [rax]
	lea	rcx, [rdx+r15]
	mov	r14d, eax
	sub	r14d, r15d
	cmp	rcx, rax
	mov	eax, DWORD PTR 8[rbx]
	cmovl	r14d, r12d
	cmp	eax, 128
	je	.L4
	cmp	eax, 129
	jne	.L5
	test	ebp, ebp
	jne	.L6
.L5:
	lea	rax, 8[rbx]
	mov	QWORD PTR 8[rsp], rax
	test	r14d, r14d
	jg	.L7
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edi, DWORD PTR target_dcache[rip]
	mov	r8d, ebp
	mov	ecx, r14d
	mov	rdx, r13
	mov	rsi, r15
	call	dcache_xfer_memory@PLT
	test	eax, eax
	jle	.L29
.L12:
	movsx	rdx, eax
	sub	r14d, eax
	sub	r12d, eax
	add	r15, rdx
	add	r13, rdx
	test	r14d, r14d
	jle	.L30
.L7:
	cmp	QWORD PTR 16[rbx], 0
	jne	.L31
	mov	r8, QWORD PTR 8[rsp]
	mov	ecx, ebp
	mov	edx, r14d
	mov	rsi, r13
	mov	rdi, r15
	call	do_xfer_memory@PLT
	test	eax, eax
	jg	.L12
.L29:
	test	ebp, ebp
	je	.L32
.L13:
	mov	rax, QWORD PTR errno[rip]
	test	rax, rax
	cmove	eax, DWORD PTR EIO[rip]
.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
.L30:
	.cfi_restore_state
	test	r12d, r12d
	jg	.L27
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	test	ebp, ebp
	jne	.L5
.L6:
	mov	eax, DWORD PTR EIO[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	edx, r12d
	xor	esi, esi
	mov	rdi, r13
	call	memset@PLT
	jmp	.L13
.L23:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	target_xfer_memory, .-target_xfer_memory
	.comm	target_dcache,4,4
	.comm	errno,8,8
	.comm	EIO,4,4
	.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_target.c_target_xfer_memory.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	target_xfer_memory, %function
target_xfer_memory:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r7, r2, #0
	sub	sp, sp, #12
	ble	.L2
	mov	r5, r0
	mov	r6, r1
	mov	r9, r3
	ldr	fp, .L29
.L22:
	add	r10, r5, r7
.L14:
	mov	r0, r5
	bl	lookup_mem_region
	ldr	r4, [r0]
	ldr	r3, [r0, #4]
	cmp	r10, r4
	movlt	r4, r7
	subge	r4, r4, r5
	cmp	r3, #128
	mov	r8, r0
	beq	.L4
	cmp	r3, #129
	bne	.L5
	cmp	r9, #0
	bne	.L23
.L5:
	cmp	r4, #0
	ble	.L14
	add	r10, r8, #4
	b	.L7
.L27:
	mov	r3, r4
	mov	r2, r6
	mov	r1, r5
	ldr	r0, [fp]
	str	r9, [sp]
	bl	dcache_xfer_memory
	cmp	r0, #0
	sub	r4, r4, r0
	ble	.L25
.L12:
	cmp	r4, #0
	add	r6, r6, r0
	sub	r7, r7, r0
	add	r5, r5, r0
	ble	.L26
.L7:
	ldr	r3, [r8, #8]
	cmp	r3, #0
	bne	.L27
	mov	r2, r4
	mov	r3, r9
	mov	r1, r6
	mov	r0, r5
	str	r10, [sp]
	bl	do_xfer_memory
	cmp	r0, #0
	sub	r4, r4, r0
	bgt	.L12
.L25:
	cmp	r9, #0
	beq	.L28
	ldr	r3, .L29+4
	ldr	r0, [r3]
	cmp	r0, #0
	bne	.L1
.L23:
	ldr	r3, .L29+8
	ldr	r0, [r3]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	cmp	r7, #0
	bgt	.L22
.L2:
	mov	r0, #0
	b	.L1
.L4:
	cmp	r9, #0
	bne	.L5
	b	.L23
.L28:
	mov	r2, r7
	mov	r1, r9
	mov	r0, r6
	bl	memset
	ldr	r3, .L29+4
	ldr	r0, [r3]
	cmp	r0, #0
	bne	.L1
	b	.L23
.L30:
	.align	2
.L29:
	.word	target_dcache
	.word	errno
	.word	EIO
	.size	target_xfer_memory, .-target_xfer_memory
	.comm	target_dcache,4,4
	.comm	errno,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
