	.file	"extr_dm.c___clone_and_map_discard.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__clone_and_map_discard, @function
__clone_and_map_discard:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	esi, DWORD PTR [rdi]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	call	max_io_len_target_boundary@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	esi, eax
	call	min@PLT
	mov	rbx, rax
.L6:
	mov	edx, DWORD PTR 0[rbp]
	mov	rsi, rbp
	mov	rcx, rbx
	mov	rdi, r12
	call	__issue_target_requests@PLT
	mov	esi, DWORD PTR [r12]
	mov	eax, DWORD PTR 4[r12]
	add	esi, ebx
	sub	eax, ebx
	mov	DWORD PTR [r12], esi
	mov	DWORD PTR 4[r12], eax
	je	.L1
.L7:
	mov	edi, DWORD PTR 8[r12]
	call	dm_table_find_target@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	dm_target_is_valid@PLT
	test	eax, eax
	je	.L11
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	je	.L12
	mov	eax, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR [r12]
	mov	rsi, rbp
	test	eax, eax
	je	.L13
	call	max_io_len@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	esi, eax
	call	min@PLT
	mov	rbx, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	__clone_and_map_discard, .-__clone_and_map_discard
	.comm	EOPNOTSUPP,4,4
	.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_dm.c___clone_and_map_discard.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__clone_and_map_discard, %function
__clone_and_map_discard:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r1, [r0]
	mov	r5, r0
	b	.L7
.L13:
	bl	max_io_len_target_boundary
	mov	r1, r0
	mov	r0, r4
	bl	min
	mov	r4, r0
.L6:
	mov	r1, r6
	mov	r3, r4
	mov	r0, r5
	ldr	r2, [r6]
	bl	__issue_target_requests
	ldr	r0, [r5, #4]
	ldr	r1, [r5]
	sub	r0, r0, r4
	cmp	r0, #0
	add	r1, r4, r1
	str	r0, [r5, #4]
	str	r1, [r5]
	popeq	{r4, r5, r6, pc}
.L7:
	ldr	r0, [r5, #8]
	bl	dm_table_find_target
	mov	r6, r0
	bl	dm_target_is_valid
	cmp	r0, #0
	beq	.L11
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [r6, #4]
	mov	r1, r6
	cmp	r3, #0
	ldr	r4, [r5, #4]
	ldr	r0, [r5]
	beq	.L13
	bl	max_io_len
	mov	r1, r0
	mov	r0, r4
	bl	min
	mov	r4, r0
	b	.L6
.L11:
	ldr	r3, .L14
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L14+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	EIO
	.word	EOPNOTSUPP
	.size	__clone_and_map_discard, .-__clone_and_map_discard
	.comm	EOPNOTSUPP,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
