	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_esdhc_imx_remove
_sdhci_esdhc_imx_remove:                ## @sdhci_esdhc_imx_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_platform_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r12
	movq	_SDHCI_INT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	sete	%bl
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movq	%r14, %rdi
	callq	_pm_runtime_put_noidle
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sdhci_remove_host
	movl	24(%r12), %edi
	callq	_clk_disable_unprepare
	movl	20(%r12), %edi
	callq	_clk_disable_unprepare
	movl	16(%r12), %edi
	callq	_clk_disable_unprepare
	movq	8(%r12), %rax
	movq	_ESDHC_FLAG_PMQOS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_pm_qos_remove_request
LBB0_2:
	movq	%r14, %rdi
	callq	_sdhci_pltfm_free
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_INT_STATUS,8,3           ## @SDHCI_INT_STATUS
	.comm	_ESDHC_FLAG_PMQOS,4,2           ## @ESDHC_FLAG_PMQOS
	.no_dead_strip	_sdhci_esdhc_imx_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_esdhc_imx_remove
_sdhci_esdhc_imx_remove:                ; @sdhci_esdhc_imx_remove
	.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
	bl	_platform_get_drvdata
	mov	x21, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x20, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _SDHCI_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDHCI_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cmn	w0, #1
	cset	w22, eq
	mov	x0, x19
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_put_noidle
	mov	x0, x21
	mov	x1, x22
	bl	_sdhci_remove_host
	ldr	w0, [x20, #24]
	bl	_clk_disable_unprepare
	ldr	w0, [x20, #20]
	bl	_clk_disable_unprepare
	ldr	w0, [x20, #16]
	bl	_clk_disable_unprepare
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ESDHC_FLAG_PMQOS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ESDHC_FLAG_PMQOS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_pm_qos_remove_request
LBB0_2:
	mov	x0, x19
	bl	_sdhci_pltfm_free
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_INT_STATUS,8,3           ; @SDHCI_INT_STATUS
	.comm	_ESDHC_FLAG_PMQOS,4,2           ; @ESDHC_FLAG_PMQOS
	.no_dead_strip	_sdhci_esdhc_imx_remove
.subsections_via_symbols
