	.file	"extr_mv_sas.c_mvs_slot_task_free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mvs_slot_task_free, @function
mvs_slot_task_free:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdx, rdx
	je	.L16
	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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 16[rdx], 0
	je	.L1
	mov	r12, rdi
	mov	edi, DWORD PTR [rsi]
	mov	rbp, rsi
	mov	r13d, ecx
	call	sas_protocol_ata@PLT
	test	eax, eax
	jne	.L3
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jne	.L20
.L3:
	cmp	DWORD PTR 0[rbp], 130
	je	.L21
	mov	rsi, QWORD PTR 32[rbx]
	test	rsi, rsi
	je	.L5
.L22:
	mov	edx, DWORD PTR 40[rbx]
	mov	edi, DWORD PTR [r12]
	call	dma_pool_free@PLT
	mov	QWORD PTR 32[rbx], 0
.L5:
	lea	rdi, 24[rbx]
	call	list_del_init@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	esi, r13d
	mov	rdi, r12
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
	mov	DWORD PTR 4[rbx], -1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	mvs_slot_free@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[r12]
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	lea	rsi, 20[rbp]
	mov	edx, 1
	call	dma_unmap_sg@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
	lea	rsi, 16[rbp]
	mov	edx, 1
	call	dma_unmap_sg@PLT
	mov	rsi, QWORD PTR 32[rbx]
	test	rsi, rsi
	jne	.L22
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	mov	ecx, DWORD PTR 24[rbp]
	mov	rsi, QWORD PTR 32[rbp]
	mov	edi, DWORD PTR 4[r12]
	call	dma_unmap_sg@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	mvs_slot_task_free, .-mvs_slot_task_free
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_FROM_DEVICE,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_mv_sas.c_mvs_slot_task_free.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mvs_slot_task_free, %function
mvs_slot_task_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r2, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r6, r3
	ldr	r3, [r4, #12]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r7, r0
	ldr	r0, [r1]
	mov	r5, r1
	bl	sas_protocol_ata
	cmp	r0, #0
	bne	.L3
	ldr	r2, [r4]
	cmp	r2, #0
	bne	.L20
.L3:
	ldr	r3, [r5]
	cmp	r3, #130
	beq	.L21
	ldr	r1, [r4, #20]
	cmp	r1, #0
	beq	.L5
.L22:
	ldr	r2, [r4, #24]
	ldr	r0, [r7]
	bl	dma_pool_free
	mov	r3, #0
	str	r3, [r4, #20]
.L5:
	add	r0, r4, #16
	bl	list_del_init
	mov	r2, #0
	mvn	r3, #0
	str	r2, [r5, #4]
	mov	r1, r6
	mov	r0, r7
	str	r2, [r4, #12]
	str	r2, [r4, #8]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	mvs_slot_free
.L21:
	ldr	r3, .L23
	mov	r2, #1
	ldr	r3, [r3]
	add	r1, r5, #12
	ldr	r0, [r7, #4]
	bl	dma_unmap_sg
	ldr	r3, .L23+4
	add	r1, r5, #8
	mov	r2, #1
	ldr	r3, [r3]
	ldr	r0, [r7, #4]
	bl	dma_unmap_sg
	ldr	r1, [r4, #20]
	cmp	r1, #0
	bne	.L22
	b	.L5
.L20:
	ldr	r3, [r5, #16]
	ldr	r1, [r5, #20]
	ldr	r0, [r7, #4]
	bl	dma_unmap_sg
	b	.L3
.L24:
	.align	2
.L23:
	.word	DMA_FROM_DEVICE
	.word	DMA_TO_DEVICE
	.size	mvs_slot_task_free, .-mvs_slot_task_free
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
