	.file	"extr_dm-thin.c_process_prepared_mapping.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dm_thin_insert_block"
	.text
	.p2align 4
	.type	process_prepared_mapping, @function
process_prepared_mapping:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 40[rdi]
	mov	r12, QWORD PTR 32[rdi]
	mov	rbx, QWORD PTR 8[r13]
	test	r12, r12
	je	.L2
	mov	eax, DWORD PTR 24[rdi]
	mov	DWORD PTR [r12], eax
.L2:
	cmp	QWORD PTR 16[rbp], 0
	jne	.L11
	mov	edx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR 0[r13]
	call	dm_thin_insert_block@PLT
	test	eax, eax
	jne	.L13
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, r13
	test	r12, r12
	je	.L6
	call	cell_defer_no_holder@PLT
	xor	esi, esi
	mov	rdi, r12
	call	bio_endio@PLT
.L4:
	mov	rdi, rbp
	call	list_del@PLT
	mov	esi, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mempool_free@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, rbx
	call	metadata_operation_failed@PLT
.L11:
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, rbx
	call	cell_error@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	call	cell_defer@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	process_prepared_mapping, .-process_prepared_mapping
	.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-thin.c_process_prepared_mapping.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dm_thin_insert_block\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_prepared_mapping, %function
process_prepared_mapping:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0, #24]
	ldr	r6, [r0, #28]
	cmp	r5, #0
	ldrne	r3, [r0, #20]
	ldr	r8, [r6, #4]
	strne	r3, [r5]
	ldr	r3, [r0, #16]
	mov	r4, r0
	cmp	r3, #0
	bne	.L11
	ldr	r2, [r0, #8]
	ldr	r1, [r0, #12]
	ldr	r0, [r6]
	bl	dm_thin_insert_block
	subs	r7, r0, #0
	bne	.L13
	cmp	r5, #0
	mov	r0, r6
	ldr	r1, [r4, #4]
	beq	.L6
	bl	cell_defer_no_holder
	mov	r1, r7
	mov	r0, r5
	bl	bio_endio
.L4:
	mov	r0, r4
	bl	list_del
	mov	r0, r4
	ldr	r1, [r8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	mempool_free
.L13:
	mov	r2, r7
	mov	r0, r8
	ldr	r1, .L14
	bl	metadata_operation_failed
.L11:
	mov	r0, r8
	ldr	r1, [r4, #4]
	bl	cell_error
	b	.L4
.L6:
	bl	cell_defer
	b	.L4
.L15:
	.align	2
.L14:
	.word	.LC0
	.size	process_prepared_mapping, .-process_prepared_mapping
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
