	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movl	$1, %r14d
	testl	%edi, %edi
	je	LBB0_8
## %bb.1:
	callq	_mmc_card_removed
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_mmc_card_set_removed
	leaq	L_.str.1(%rip), %r15
LBB0_7:
	movq	%rbx, %rdi
	callq	_mmc_hostname
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pr_debug
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	xorl	%r14d, %r14d
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	*%rcx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	$200, %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mmc_detect_change
	xorl	%r14d, %r14d
	leaq	L_.str(%rip), %r15
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: card removed too slowly\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: card remove detected\n"

.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_2
; %bb.1:
	bl	_mmc_card_removed
	cbz	x0, LBB0_4
LBB0_2:
	mov	w20, #1
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_7
; %bb.5:
	mov	x20, x0
	ldr	w0, [x19]
	bl	_mmc_card_set_removed
Lloh0:
	adrp	x21, l_.str.1@PAGE
Lloh1:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_mmc_hostname
	mov	x1, x0
	mov	x0, x21
	bl	_pr_debug
	b	LBB0_3
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_10
LBB0_9:
	mov	w20, #0
	b	LBB0_3
LBB0_10:
	mov	w0, #200
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_mmc_detect_change
	mov	w20, #0
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: card removed too slowly\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: card remove detected\n"

.subsections_via_symbols
