	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_remove_card                ## -- Begin function mmc_remove_card
	.p2align	4, 0x90
_mmc_remove_card:                       ## @mmc_remove_card
	.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
	movq	8(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	$0, (%rbx)
LBB0_2:
	movq	%r14, %rdi
	callq	_mmc_card_present
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	8(%r14), %rdi
	callq	_mmc_host_is_spi
	movq	%rax, %rbx
	movq	8(%r14), %rdi
	callq	_mmc_hostname
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_6
LBB0_5:
	movl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_6:
	movq	%r14, %rdi
	callq	_device_del
	movl	(%r14), %edi
	callq	_of_node_put
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_put_device                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: SPI card removed\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: card %04x removed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_remove_card                ; -- Begin function mmc_remove_card
	.p2align	2
_mmc_remove_card:                       ; @mmc_remove_card
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	str	wzr, [x20]
LBB0_2:
	mov	x0, x19
	bl	_mmc_card_present
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_mmc_host_is_spi
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_mmc_hostname
	mov	x1, x0
	cbz	x20, LBB0_5
; %bb.4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_pr_info
	mov	x0, x19
	bl	_device_del
	ldr	w0, [x19]
	bl	_of_node_put
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_put_device
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: SPI card removed\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: card %04x removed\n"

.subsections_via_symbols
