	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _mmc_detect_change
__mmc_detect_change:                    ## @_mmc_detect_change
	.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	%rsi, %r14
	movq	%rdi, %rbx
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	movq	_MMC_CAP_NEEDS_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_mmc_dev
	movl	%eax, %edi
	callq	_device_can_wakeup
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_mmc_dev
	movl	%eax, %edi
	movl	$5000, %esi                     ## imm = 0x1388
	callq	_pm_wakeup_event
LBB0_4:
	movl	$1, 4(%rbx)
	addq	$8, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mmc_schedule_delayed_work      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CAP_NEEDS_POLL,4,2         ## @MMC_CAP_NEEDS_POLL
	.no_dead_strip	__mmc_detect_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _mmc_detect_change
__mmc_detect_change:                    ; @_mmc_detect_change
	.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, x1
	mov	x20, x0
	cbz	w2, LBB0_4
; %bb.1:
	ldr	w8, [x20]
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.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_mmc_dev
	bl	_device_can_wakeup
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_mmc_dev
	mov	w1, #5000
	bl	_pm_wakeup_event
LBB0_4:
	mov	w8, #1
	str	w8, [x20, #4]
	add	x0, x20, #8
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmc_schedule_delayed_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CAP_NEEDS_POLL,4,2         ; @MMC_CAP_NEEDS_POLL
	.no_dead_strip	__mmc_detect_change
.subsections_via_symbols
