	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_mmc_remove
_meson_mmc_remove:                      ## @meson_mmc_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
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_mmc_remove_host
	movq	_SD_EMMC_IRQ_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	40(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	_SD_EMMC_DESC_BUF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%rbx), %edx
	movl	24(%rbx), %edi
	movl	32(%rbx), %ecx
	callq	_dma_free_coherent
	cmpl	$0, 28(%rbx)
	jne	LBB0_2
## %bb.1:
	movl	24(%rbx), %edi
	movl	20(%rbx), %esi
	movl	12(%rbx), %ecx
	movl	16(%rbx), %edx
	callq	_dma_free_coherent
LBB0_2:
	movl	8(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	4(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	(%rbx), %edi
	callq	_mmc_free_host
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_EMMC_IRQ_EN,8,3             ## @SD_EMMC_IRQ_EN
	.comm	_SD_EMMC_DESC_BUF_LEN,4,2       ## @SD_EMMC_DESC_BUF_LEN
	.no_dead_strip	_meson_mmc_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_mmc_remove
_meson_mmc_remove:                      ; @meson_mmc_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
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	w0, [x0]
	bl	_mmc_remove_host
	ldr	x8, [x19, #48]
Lloh0:
	adrp	x9, _SD_EMMC_IRQ_EN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SD_EMMC_IRQ_EN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w0, [x19, #40]
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x8, _SD_EMMC_DESC_BUF_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SD_EMMC_DESC_BUF_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w3, w2, [x19, #32]
	bl	_dma_free_coherent
	ldr	w8, [x19, #28]
	cbnz	w8, LBB0_2
; %bb.1:
	ldp	w1, w0, [x19, #20]
	ldp	w3, w2, [x19, #12]
	bl	_dma_free_coherent
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
	ldr	w0, [x19]
	bl	_mmc_free_host
	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	_SD_EMMC_IRQ_EN,8,3             ; @SD_EMMC_IRQ_EN
	.comm	_SD_EMMC_DESC_BUF_LEN,4,2       ; @SD_EMMC_DESC_BUF_LEN
	.no_dead_strip	_meson_mmc_remove
.subsections_via_symbols
