	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mci_start_command
_dw_mci_start_command:                  ## @dw_mci_start_command
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, 8(%rdi)
	movl	(%rdi), %edi
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	callq	_dev_vdbg
	movq	_CMDARG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_mci_writel
	xorl	%eax, %eax
	callq	_wmb
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_dw_mci_wait_while_busy
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SDMMC_CMD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r14d, %edx
	movq	%r15, %rdi
	callq	_mci_writel
	movq	_SDMMC_CMD_RESP_EXP@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dw_mci_set_cto                 ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start command: ARGR=0x%08x CMDR=0x%08x\n"

	.comm	_CMDARG,4,2                     ## @CMDARG
	.comm	_CMD,4,2                        ## @CMD
	.comm	_SDMMC_CMD_START,4,2            ## @SDMMC_CMD_START
	.comm	_SDMMC_CMD_RESP_EXP,4,2         ## @SDMMC_CMD_RESP_EXP
	.no_dead_strip	_dw_mci_start_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mci_start_command
_dw_mci_start_command:                  ; @dw_mci_start_command
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	x1, [x0, #8]
	ldr	w0, [x0]
	ldr	w2, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_dev_vdbg
Lloh2:
	adrp	x8, _CMDARG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMDARG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_mci_writel
	bl	_wmb
	mov	x0, x19
	mov	x1, x20
	bl	_dw_mci_wait_while_busy
Lloh5:
	adrp	x8, _CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _SDMMC_CMD_START@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDMMC_CMD_START@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w2, w8, w20
	mov	x0, x19
	bl	_mci_writel
Lloh11:
	adrp	x8, _SDMMC_CMD_RESP_EXP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDMMC_CMD_RESP_EXP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	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
	b	_dw_mci_set_cto
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start command: ARGR=0x%08x CMDR=0x%08x\n"

	.comm	_CMDARG,4,2                     ; @CMDARG
	.comm	_CMD,4,2                        ; @CMD
	.comm	_SDMMC_CMD_START,4,2            ; @SDMMC_CMD_START
	.comm	_SDMMC_CMD_RESP_EXP,4,2         ; @SDMMC_CMD_RESP_EXP
	.no_dead_strip	_dw_mci_start_command
.subsections_via_symbols
