	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_remove_host              ## -- Begin function sdhci_remove_host
	.p2align	4, 0x90
_sdhci_remove_host:                     ## @sdhci_remove_host
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	64(%rdi), %r14
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	leaq	56(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_SDHCI_DEVICE_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 60(%rbx)
	movq	%rbx, %rdi
	callq	_sdhci_has_requests
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_error_out_mrqs
LBB0_3:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_sdhci_disable_card_detection
	movq	%r14, %rdi
	callq	_mmc_remove_host
	movq	%rbx, %rdi
	callq	_sdhci_led_unregister
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_sdhci_disable_card_detection
	movq	%r14, %rdi
	callq	_mmc_remove_host
	movq	%rbx, %rdi
	callq	_sdhci_led_unregister
	movq	_SDHCI_RESET_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_do_reset
LBB0_5:
	movq	_SDHCI_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sdhci_writel
	movq	_SDHCI_SIGNAL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sdhci_writel
	movl	52(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	leaq	48(%rbx), %rdi
	callq	_del_timer_sync
	leaq	44(%rbx), %rdi
	callq	_del_timer_sync
	movl	40(%rbx), %edi
	callq	_destroy_workqueue
	movl	(%r14), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	cmpq	$0, (%rbx)
	je	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_mmc_dev
	movq	24(%rbx), %rsi
	addq	32(%rbx), %rsi
	movq	(%rbx), %rdx
	movl	16(%rbx), %ecx
	movl	%eax, %edi
	callq	_dma_free_coherent
LBB0_9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r14), %edi
	callq	_regulator_disable
	cmpq	$0, (%rbx)
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_DEVICE_DEAD,4,2          ## @SDHCI_DEVICE_DEAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Controller removed during  transfer!\n"

	.comm	_ENOMEDIUM,4,2                  ## @ENOMEDIUM
	.comm	_SDHCI_RESET_ALL,4,2            ## @SDHCI_RESET_ALL
	.comm	_SDHCI_INT_ENABLE,4,2           ## @SDHCI_INT_ENABLE
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ## @SDHCI_SIGNAL_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_remove_host              ; -- Begin function sdhci_remove_host
	.p2align	2
_sdhci_remove_host:                     ; @sdhci_remove_host
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x20, [x0, #64]
	cbz	w1, LBB0_4
; %bb.1:
	add	x21, x19, #56
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _SDHCI_DEVICE_DEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_DEVICE_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #60]
	orr	w8, w9, w8
	str	w8, [x19, #60]
	mov	x0, x19
	bl	_sdhci_has_requests
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh5:
	adrp	x8, _ENOMEDIUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEDIUM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x19
	bl	_sdhci_error_out_mrqs
LBB0_3:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_sdhci_disable_card_detection
	mov	x0, x20
	bl	_mmc_remove_host
	mov	x0, x19
	bl	_sdhci_led_unregister
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_sdhci_disable_card_detection
	mov	x0, x20
	bl	_mmc_remove_host
	mov	x0, x19
	bl	_sdhci_led_unregister
Lloh8:
	adrp	x8, _SDHCI_RESET_ALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDHCI_RESET_ALL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sdhci_do_reset
LBB0_5:
Lloh11:
	adrp	x8, _SDHCI_INT_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDHCI_INT_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sdhci_writel
Lloh14:
	adrp	x8, _SDHCI_SIGNAL_ENABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SDHCI_SIGNAL_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sdhci_writel
	ldr	w0, [x19, #52]
	mov	x1, x19
	bl	_free_irq
	add	x0, x19, #48
	bl	_del_timer_sync
	add	x0, x19, #44
	bl	_del_timer_sync
	ldr	w0, [x19, #40]
	bl	_destroy_workqueue
	ldr	w0, [x20]
	bl	_IS_ERR
	cbz	w0, LBB0_9
; %bb.6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_mmc_dev
	ldp	x9, x8, [x19, #24]
	add	x1, x9, x8
	ldr	x2, [x19]
	ldr	w3, [x19, #16]
	bl	_dma_free_coherent
LBB0_8:
	stp	xzr, xzr, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x20]
	bl	_regulator_disable
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_DEVICE_DEAD,4,2          ; @SDHCI_DEVICE_DEAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Controller removed during  transfer!\n"

	.comm	_ENOMEDIUM,4,2                  ; @ENOMEDIUM
	.comm	_SDHCI_RESET_ALL,4,2            ; @SDHCI_RESET_ALL
	.comm	_SDHCI_INT_ENABLE,4,2           ; @SDHCI_INT_ENABLE
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ; @SDHCI_SIGNAL_ENABLE
.subsections_via_symbols
