	.file	"extr_dm-rq.c_dm_done.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"unimplemented target endio return value: %d"
	.text
	.p2align 4
	.type	dm_done, @function
dm_done:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r14, QWORD PTR 8[rdi]
	mov	rdi, QWORD PTR 8[r14]
	test	rdi, rdi
	je	.L2
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax]
	test	edx, edx
	je	.L2
	test	rax, rax
	je	.L2
	mov	edx, esi
	lea	rcx, 4[r14]
	mov	rsi, rbp
	call	rax
	xor	edi, edi
	cmp	DWORD PTR BLK_STS_TARGET[rip], r13d
	sete	dil
	mov	r12d, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L12
.L3:
	cmp	r12d, 129
	je	.L1
	jg	.L7
	xor	esi, esi
	cmp	r12d, 128
	jne	.L9
.L30:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	dm_requeue_original_request@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	edi, edi
	cmp	DWORD PTR BLK_STS_TARGET[rip], r13d
	mov	r12d, 130
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L10
.L12:
	mov	rdi, rbp
	call	req_op@PLT
	cmp	rax, QWORD PTR REQ_OP_DISCARD[rip]
	jne	.L4
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR 8[rax]
	test	ecx, ecx
	jne	.L4
	mov	edi, DWORD PTR [r14]
	call	disable_discard@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, r13d
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	dm_end_request@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	call	req_op@PLT
	cmp	rax, QWORD PTR REQ_OP_WRITE_SAME[rip]
	jne	.L5
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR 4[rax]
	test	edx, edx
	je	.L32
.L5:
	mov	rdi, rbp
	call	req_op@PLT
	cmp	rax, QWORD PTR REQ_OP_WRITE_ZEROES[rip]
	jne	.L3
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L3
	mov	edi, DWORD PTR [r14]
	call	disable_write_zeroes@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	r12d, 130
	je	.L10
	mov	esi, 1
	cmp	r12d, 131
	je	.L30
.L9:
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	call	DMWARN@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	BUG@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	edi, DWORD PTR [r14]
	call	disable_write_same@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	dm_done, .-dm_done
	.comm	REQ_OP_WRITE_ZEROES,8,8
	.comm	REQ_OP_WRITE_SAME,8,8
	.comm	REQ_OP_DISCARD,8,8
	.comm	BLK_STS_TARGET,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-rq.c_dm_done.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unimplemented target endio return value: %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dm_done, %function
dm_done:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #4]
	mov	r4, r0
	ldr	r0, [r6, #8]
	mov	r5, r1
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r0]
	ldr	r7, [r3]
	cmp	r2, #0
	cmpne	r7, #0
	beq	.L2
	mov	r2, r1
	add	r3, r6, #4
	mov	r1, r4
	blx	r7
	ldr	r3, .L26
	mov	r7, r0
	ldr	r0, [r3]
	sub	r0, r0, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L12
.L3:
	sub	r3, r7, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L11
	.word	.L1
	.word	.L9
	.word	.L7
.L2:
	ldr	r3, .L26
	ldr	r0, [r3]
	sub	r0, r0, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	movne	r7, #130
	beq	.L9
.L12:
	mov	r0, r4
	bl	req_op
	ldr	r3, .L26+4
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L4
	ldr	r3, [r4]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L4
	ldr	r0, [r6]
	bl	disable_discard
	b	.L3
.L7:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #1
	b	dm_requeue_original_request
.L11:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	b	dm_requeue_original_request
.L9:
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	dm_end_request
.L4:
	mov	r0, r4
	bl	req_op
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L5
	ldr	r3, [r4]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L25
.L5:
	mov	r0, r4
	bl	req_op
	ldr	r3, .L26+12
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L3
	ldr	r3, [r4]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r0, [r6]
	bl	disable_write_zeroes
	b	.L3
.L1:
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	ldr	r0, [r6]
	bl	disable_write_same
	b	.L3
.L6:
	mov	r1, r7
	ldr	r0, .L26+16
	bl	DMWARN
	pop	{r4, r5, r6, r7, r8, lr}
	b	BUG
.L27:
	.align	2
.L26:
	.word	BLK_STS_TARGET
	.word	REQ_OP_DISCARD
	.word	REQ_OP_WRITE_SAME
	.word	REQ_OP_WRITE_ZEROES
	.word	.LC0
	.size	dm_done, .-dm_done
	.comm	REQ_OP_WRITE_ZEROES,4,4
	.comm	REQ_OP_WRITE_SAME,4,4
	.comm	REQ_OP_DISCARD,4,4
	.comm	BLK_STS_TARGET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
