	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xmmc_remove
_au1xmmc_remove:                        ## @au1xmmc_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	_platform_get_drvdata
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	callq	_mmc_remove_host
	movq	48(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	8(%rbx), %rdi
	movq	_MMC_CAP_NEEDS_POLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	jne	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	callq	*%rax
LBB0_5:
	movq	%rbx, %rdi
	callq	_HOST_ENABLE
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	___raw_writel
	movq	%rbx, %rdi
	callq	_HOST_CONFIG
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	___raw_writel
	movq	%rbx, %rdi
	callq	_HOST_CONFIG2
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	___raw_writel
	xorl	%eax, %eax
	callq	_wmb
	leaq	44(%rbx), %rdi
	callq	_tasklet_kill
	movq	%rbx, %rdi
	addq	$40, %rdi
	callq	_tasklet_kill
	movq	_HOST_F_DBDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_au1xmmc_dbdma_shutdown
LBB0_7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_au1xmmc_set_power
	movl	36(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	36(%rbx), %edi
	callq	_clk_put
	movl	32(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	24(%rbx), %rdi
	callq	_iounmap
	movl	16(%rbx), %edi
	callq	_release_resource
	movl	16(%rbx), %edi
	callq	_kfree
	movq	8(%rbx), %rdi
	callq	_mmc_free_host
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CAP_NEEDS_POLL,4,2         ## @MMC_CAP_NEEDS_POLL
	.comm	_HOST_F_DBDMA,4,2               ## @HOST_F_DBDMA
	.no_dead_strip	_au1xmmc_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xmmc_remove
_au1xmmc_remove:                        ; @au1xmmc_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	_platform_get_drvdata
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_mmc_remove_host
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x0, [x19, #8]
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _MMC_CAP_NEEDS_POLL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MMC_CAP_NEEDS_POLL@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_5
; %bb.4:
	mov	w1, #0
	blr	x8
LBB0_5:
	mov	x0, x19
	bl	_HOST_ENABLE
	mov	x1, x0
	mov	w0, #0
	bl	___raw_writel
	mov	x0, x19
	bl	_HOST_CONFIG
	mov	x1, x0
	mov	w0, #0
	bl	___raw_writel
	mov	x0, x19
	bl	_HOST_CONFIG2
	mov	x1, x0
	mov	w0, #0
	bl	___raw_writel
	bl	_wmb
	add	x0, x19, #44
	bl	_tasklet_kill
	add	x0, x19, #40
	bl	_tasklet_kill
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _HOST_F_DBDMA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HOST_F_DBDMA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_au1xmmc_dbdma_shutdown
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_au1xmmc_set_power
	ldr	w0, [x19, #36]
	bl	_clk_disable_unprepare
	ldr	w0, [x19, #36]
	bl	_clk_put
	ldr	w0, [x19, #32]
	mov	x1, x19
	bl	_free_irq
	ldr	x0, [x19, #24]
	bl	_iounmap
	ldr	w0, [x19, #16]
	bl	_release_resource
	ldr	w0, [x19, #16]
	bl	_kfree
	ldr	x0, [x19, #8]
	bl	_mmc_free_host
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CAP_NEEDS_POLL,4,2         ; @MMC_CAP_NEEDS_POLL
	.comm	_HOST_F_DBDMA,4,2               ; @HOST_F_DBDMA
	.no_dead_strip	_au1xmmc_remove
.subsections_via_symbols
