	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_detect_card_removed        ## -- Begin function mmc_detect_card_removed
	.p2align	4, 0x90
_mmc_detect_card_removed:               ## @mmc_detect_card_removed
	.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, %rbx
	movq	24(%rdi), %r14
	xorl	%edi, %edi
	cmpl	$0, 16(%rbx)
	sete	%dil
	callq	_WARN_ON
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_mmc_card_is_removable
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.3:
	movq	%r14, %rdi
	callq	_mmc_card_removed
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_MMC_CAP_NEEDS_POLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_10
LBB0_5:
	movq	$0, 8(%rbx)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	%rbx, %rdi
	callq	__mmc_detect_card_removed
	movl	%eax, %r14d
	movl	$0, %eax
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.7:
	movq	_MMC_CAP_NEEDS_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.8:
	leaq	4(%rbx), %rdi
	callq	_cancel_delayed_work
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	__mmc_detect_change
LBB0_9:
	movl	%r14d, %eax
	jmp	LBB0_10
LBB0_1:
	movl	$1, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CAP_NEEDS_POLL,4,2         ## @MMC_CAP_NEEDS_POLL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_detect_card_removed        ; -- Begin function mmc_detect_card_removed
	.p2align	2
_mmc_detect_card_removed:               ; @mmc_detect_card_removed
	.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
	ldr	x20, [x0, #24]
	ldr	w8, [x0, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x20, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_mmc_card_is_removable
	cbz	w0, LBB0_9
; %bb.2:
	mov	x0, x20
	bl	_mmc_card_removed
	mov	x20, x0
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _MMC_CAP_NEEDS_POLL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_CAP_NEEDS_POLL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_4:
	str	xzr, [x19, #8]
	cbnz	w20, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	__mmc_detect_card_removed
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.6:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _MMC_CAP_NEEDS_POLL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_CAP_NEEDS_POLL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	add	x0, x19, #4
	bl	_cancel_delayed_work
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	__mmc_detect_change
	b	LBB0_10
LBB0_8:
	mov	w20, #1
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	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
.subsections_via_symbols
