	.file	"extr_dw_mmc.c_dw_mci_remove.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"remove slot\n"
	.text
	.p2align 4
	.globl	dw_mci_remove
	.type	dw_mci_remove, @function
dw_mci_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR 40[rdi]
	lea	rsi, .LC0[rip]
	call	dev_dbg@PLT
	mov	rdi, QWORD PTR 32[rbx]
	test	rdi, rdi
	jne	.L13
.L2:
	mov	esi, DWORD PTR RINTSTS[rip]
	mov	edx, -1
	mov	rdi, rbx
	call	mci_writel@PLT
	mov	esi, DWORD PTR INTMASK[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	mci_writel@PLT
	mov	esi, DWORD PTR CLKENA[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	mci_writel@PLT
	mov	esi, DWORD PTR CLKSRC[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	mci_writel@PLT
	cmp	QWORD PTR 24[rbx], 0
	je	.L3
	mov	rax, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L3
	mov	rdi, rbx
	call	rax
.L3:
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	IS_ERR@PLT
	test	eax, eax
	je	.L14
	mov	edi, DWORD PTR 4[rbx]
	call	clk_disable_unprepare@PLT
	mov	edi, DWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	clk_disable_unprepare@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	dw_mci_cleanup_slot@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	reset_control_assert@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	clk_disable_unprepare@PLT
	mov	edi, DWORD PTR [rbx]
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	clk_disable_unprepare@PLT
	.cfi_endproc
.LFE0:
	.size	dw_mci_remove, .-dw_mci_remove
	.comm	RINTSTS,4,4
	.comm	INTMASK,4,4
	.comm	CLKSRC,4,4
	.comm	CLKENA,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_dw_mmc.c_dw_mci_remove.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"remove slot\012\000"
	.text
	.align	2
	.global	dw_mci_remove
	.syntax unified
	.arm
	.fpu softvfp
	.type	dw_mci_remove, %function
dw_mci_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r1, .L18
	ldr	r0, [r0, #24]
	bl	dev_dbg
	ldr	r0, [r4, #20]
	cmp	r0, #0
	bne	.L16
.L2:
	ldr	r3, .L18+4
	mvn	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	mci_writel
	ldr	r3, .L18+8
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	mci_writel
	ldr	r3, .L18+12
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	mci_writel
	ldr	r3, .L18+16
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	mci_writel
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [r4, #12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	mov	r0, r4
	blx	r3
.L3:
	ldr	r3, [r4, #8]
	ldr	r0, [r3]
	bl	IS_ERR
	cmp	r0, #0
	beq	.L17
.L4:
	ldr	r0, [r4, #4]
	bl	clk_disable_unprepare
	ldr	r0, [r4]
	pop	{r4, lr}
	b	clk_disable_unprepare
.L16:
	bl	dw_mci_cleanup_slot
	b	.L2
.L17:
	ldr	r3, [r4, #8]
	ldr	r0, [r3]
	bl	reset_control_assert
	b	.L4
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	RINTSTS
	.word	INTMASK
	.word	CLKENA
	.word	CLKSRC
	.size	dw_mci_remove, .-dw_mci_remove
	.comm	RINTSTS,4,4
	.comm	INTMASK,4,4
	.comm	CLKSRC,4,4
	.comm	CLKENA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
