	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mci_wait_while_busy
_dw_mci_wait_while_busy:                ## @dw_mci_wait_while_busy
	.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
	movq	_SDMMC_CMD_PRV_DAT_WAIT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_SDMMC_CMD_VOLT_SWITCH@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rbx
	movq	_SDMMC_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	movq	_USEC_PER_MSEC@GOTPCREL(%rip), %rax
	imull	$500, (%rax), %r8d              ## imm = 0x1F4
	movl	$1, %edx
	movl	$10, %ecx
	callq	_readl_poll_timeout_atomic
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMMC_CMD_PRV_DAT_WAIT,4,2     ## @SDMMC_CMD_PRV_DAT_WAIT
	.comm	_SDMMC_CMD_VOLT_SWITCH,4,2      ## @SDMMC_CMD_VOLT_SWITCH
	.comm	_SDMMC_STATUS,8,3               ## @SDMMC_STATUS
	.comm	_SDMMC_STATUS_BUSY,4,2          ## @SDMMC_STATUS_BUSY
	.comm	_USEC_PER_MSEC,4,2              ## @USEC_PER_MSEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Busy; trying anyway\n"

	.no_dead_strip	_dw_mci_wait_while_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mci_wait_while_busy
_dw_mci_wait_while_busy:                ; @dw_mci_wait_while_busy
	.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
Lloh0:
	adrp	x8, _SDMMC_CMD_PRV_DAT_WAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDMMC_CMD_PRV_DAT_WAIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SDMMC_CMD_VOLT_SWITCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDMMC_CMD_VOLT_SWITCH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x9, _SDMMC_STATUS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDMMC_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
Lloh9:
	adrp	x8, _USEC_PER_MSEC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USEC_PER_MSEC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #500
	mul	w4, w8, w9
	mov	w2, #1
	mov	w3, #10
	bl	_readl_poll_timeout_atomic
	cbz	x0, LBB0_2
; %bb.4:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMMC_CMD_PRV_DAT_WAIT,4,2     ; @SDMMC_CMD_PRV_DAT_WAIT
	.comm	_SDMMC_CMD_VOLT_SWITCH,4,2      ; @SDMMC_CMD_VOLT_SWITCH
	.comm	_SDMMC_STATUS,8,3               ; @SDMMC_STATUS
	.comm	_SDMMC_STATUS_BUSY,4,2          ; @SDMMC_STATUS_BUSY
	.comm	_USEC_PER_MSEC,4,2              ; @USEC_PER_MSEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Busy; trying anyway\n"

	.no_dead_strip	_dw_mci_wait_while_busy
.subsections_via_symbols
