	.file	"extr_omap_hsmmc.c_omap_hsmmc_dma_cleanup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	omap_hsmmc_dma_cleanup, @function
omap_hsmmc_dma_cleanup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r8d, esi
	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, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rsi, QWORD PTR 8[rdi]
	cmp	QWORD PTR 32[rdi], 0
	mov	DWORD PTR [rsi], r8d
	je	.L2
	cmp	DWORD PTR [rdi], -1
	jne	.L5
.L2:
	mov	QWORD PTR 8[rbx], 0
	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
.L5:
	.cfi_restore_state
	call	omap_hsmmc_get_dma_dir@PLT
	mov	edi, DWORD PTR 24[rbx]
	mov	r13d, DWORD PTR 20[rbx]
	mov	r12d, eax
	mov	rax, QWORD PTR 8[rbx]
	mov	ebp, DWORD PTR 4[rax]
	call	mmc_dev@PLT
	mov	ecx, r12d
	mov	edx, r13d
	mov	esi, ebp
	mov	edi, eax
	call	dma_unmap_sg@PLT
	mov	edi, DWORD PTR [rbx]
	call	omap_free_dma@PLT
	mov	DWORD PTR [rbx], -1
	lea	rdi, 16[rbx]
	call	up@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	omap_hsmmc_dma_cleanup, .-omap_hsmmc_dma_cleanup
	.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_omap_hsmmc.c_omap_hsmmc_dma_cleanup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap_hsmmc_dma_cleanup, %function
omap_hsmmc_dma_cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #20]
	ldr	r3, [r0, #4]
	cmp	r2, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	str	r1, [r3]
	beq	.L2
	ldr	r3, [r0]
	cmn	r3, #1
	bne	.L11
.L2:
	mov	r3, #0
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r0, [r0, #16]
	bl	mmc_dev
	ldr	r1, [r4, #4]
	mov	r5, r0
	mov	r0, r4
	ldr	r6, [r1, #4]
	ldr	r7, [r4, #12]
	bl	omap_hsmmc_get_dma_dir
	mov	r2, r7
	mov	r3, r0
	mov	r1, r6
	mov	r0, r5
	bl	dma_unmap_sg
	ldr	r0, [r4]
	bl	omap_free_dma
	mvn	r3, #0
	mov	r0, r4
	str	r3, [r0], #8
	bl	up
	b	.L2
	.size	omap_hsmmc_dma_cleanup, .-omap_hsmmc_dma_cleanup
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
