	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mmcif_remove
_sh_mmcif_remove:                       ## @sh_mmcif_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	movl	$1, (%rax)
	movl	8(%rax), %edi
	callq	_clk_prepare_enable
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movq	%r14, %rdi
	callq	_dev_pm_qos_hide_latency_limit
	movl	4(%rbx), %edi
	callq	_mmc_remove_host
	movl	16(%rbx), %edi
	movq	_MMCIF_CE_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_sh_mmcif_writel
	leaq	12(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movl	8(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	4(%rbx), %edi
	callq	_mmc_free_host
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMCIF_CE_INT_MASK,4,2          ## @MMCIF_CE_INT_MASK
	.comm	_MASK_ALL,4,2                   ## @MASK_ALL
	.no_dead_strip	_sh_mmcif_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_mmcif_remove
_sh_mmcif_remove:                       ; @sh_mmcif_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
	bl	_platform_get_drvdata
	mov	x20, x0
	mov	w8, #1
	str	w8, [x0]
	ldr	w0, [x0, #8]
	bl	_clk_prepare_enable
	mov	x0, x19
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	_dev_pm_qos_hide_latency_limit
	ldr	w0, [x20, #4]
	bl	_mmc_remove_host
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x8, _MMCIF_CE_INT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMCIF_CE_INT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MASK_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MASK_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_sh_mmcif_writel
	add	x0, x20, #12
	bl	_cancel_delayed_work_sync
	ldr	w0, [x20, #8]
	bl	_clk_disable_unprepare
	ldr	w0, [x20, #4]
	bl	_mmc_free_host
	mov	x0, x19
	bl	_pm_runtime_put_sync
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMCIF_CE_INT_MASK,4,2          ; @MMCIF_CE_INT_MASK
	.comm	_MASK_ALL,4,2                   ; @MASK_ALL
	.no_dead_strip	_sh_mmcif_remove
.subsections_via_symbols
