	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dw_mci_remove                  ## -- Begin function dw_mci_remove
	.p2align	4, 0x90
_dw_mci_remove:                         ## @dw_mci_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	40(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_dw_mci_cleanup_slot
LBB0_2:
	movq	_RINTSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_mci_writel
	movq	_INTMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mci_writel
	movq	_CLKENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mci_writel
	movq	_CLKSRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mci_writel
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.3:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_5:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_reset_control_assert
LBB0_7:
	movl	4(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_clk_disable_unprepare          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remove slot\n"

	.comm	_RINTSTS,4,2                    ## @RINTSTS
	.comm	_INTMASK,4,2                    ## @INTMASK
	.comm	_CLKENA,4,2                     ## @CLKENA
	.comm	_CLKSRC,4,2                     ## @CLKSRC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dw_mci_remove                  ; -- Begin function dw_mci_remove
	.p2align	2
_dw_mci_remove:                         ; @dw_mci_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #40]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_dw_mci_cleanup_slot
LBB0_2:
Lloh2:
	adrp	x8, _RINTSTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RINTSTS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_mci_writel
Lloh5:
	adrp	x8, _INTMASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INTMASK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mci_writel
Lloh8:
	adrp	x8, _CLKENA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CLKENA@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mci_writel
Lloh11:
	adrp	x8, _CLKSRC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CLKSRC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mci_writel
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x8
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_IS_ERR
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_reset_control_assert
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clk_disable_unprepare
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remove slot\n"

	.comm	_RINTSTS,4,2                    ; @RINTSTS
	.comm	_INTMASK,4,2                    ; @INTMASK
	.comm	_CLKENA,4,2                     ; @CLKENA
	.comm	_CLKSRC,4,2                     ; @CLKSRC
.subsections_via_symbols
