	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_davinci_start_command
_mmc_davinci_start_command:             ## @mmc_davinci_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	64(%rdi), %edi
	callq	_mmc_dev
	movl	%eax, %r12d
	movl	(%rbx), %r13d
	movl	4(%rbx), %r15d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_mmc_resp_type
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_1
## %bb.2:
	cltq
	leaq	l_reltable.mmc_davinci_start_command(%rip), %rcx
	movslq	(%rcx,%rax,4), %r8
	addq	%rcx, %r8
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.5(%rip), %r8
LBB0_3:
	movl	%r15d, %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r12d, %edi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 72(%r14)
	movq	%rbx, %rdi
	callq	_mmc_resp_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_MMCCMD_RSPFMT_R3@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_10
LBB0_9:
	movq	_MMCCMD_RSPFMT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	64(%r14), %edi
	callq	_mmc_dev
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_mmc_resp_type
	leaq	L_.str.6(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_10
LBB0_7:
	movq	_MMCCMD_RSPFMT_R2@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_10
LBB0_5:
	movq	_MMCCMD_BSYEXP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_6:
	movq	_MMCCMD_RSPFMT_R1456@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_10:
	orl	(%rbx), %r15d
	movq	_MMCCMD_DMATRIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r15d, %eax
	cmpq	$0, 48(%r14)
	cmovnel	%eax, %r15d
	movq	(%r14), %rcx
	movq	_MMC_CTLR_VERSION_2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.11:
	cmpq	$0, 56(%r14)
	je	LBB0_13
## %bb.12:
	movq	8(%r14), %rcx
	movq	_DAVINCI_MMC_DATADIR_READ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	cmovel	%eax, %r15d
LBB0_13:
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rbx)
	movl	$0, %eax
	je	LBB0_15
## %bb.14:
	movq	_MMCCMD_WDATX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	movq	_DAVINCI_MMC_DATADIR_WRITE@GOTPCREL(%rip), %r13
	movq	8(%r14), %rdi
	movq	16(%r14), %rdx
	movl	$0, %esi
	cmpq	(%r13), %rdi
	jne	LBB0_17
## %bb.16:
	movq	_MMCCMD_DTRW@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_17:
	orl	%esi, %r15d
	movq	_MMC_BUSMODE_PUSHPULL@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_19
## %bb.18:
	movq	_MMCCMD_PPLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_19:
	orl	%ecx, %eax
	orl	%eax, %r15d
	movq	_DAVINCI_MMCTOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	40(%r14), %rsi
	movl	$8191, %edi                     ## imm = 0x1FFF
	callq	_writel
	movq	_MMCST0_RSPDNE@GOTPCREL(%rip), %rax
	movq	_MMCST0_CRCRS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_MMCST0_TOUTRS@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	8(%r14), %rax
	cmpq	(%r13), %rax
	jne	LBB0_22
## %bb.20:
	movq	_MMCST0_DATDNE@GOTPCREL(%rip), %rax
	movq	_MMCST0_CRCWR@GOTPCREL(%rip), %rcx
	orl	(%rax), %r12d
	orl	(%rcx), %r12d
	cmpq	$0, 48(%r14)
	jne	LBB0_25
## %bb.21:
	movq	_MMCST0_DXRDY@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_rw_threshold@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_davinci_fifo_data_trans
	jmp	LBB0_25
LBB0_22:
	movq	_DAVINCI_MMC_DATADIR_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.23:
	movq	_MMCST0_DATDNE@GOTPCREL(%rip), %rax
	movq	_MMCST0_CRCRD@GOTPCREL(%rip), %rcx
	movq	_MMCST0_TOUTRD@GOTPCREL(%rip), %rdx
	orl	(%rax), %r12d
	orl	(%rcx), %r12d
	orl	(%rdx), %r12d
	cmpq	$0, 48(%r14)
	jne	LBB0_25
## %bb.24:
	movq	_MMCST0_DRRDY@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_25:
	movl	4(%rbx), %edi
	movq	_DAVINCI_MMCARGHL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	40(%r14), %rsi
	callq	_writel
	movq	_DAVINCI_MMCCMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	40(%r14), %rsi
	movl	%r15d, %edi
	callq	_writel
	movl	$1, 24(%r14)
	cmpq	$0, 48(%r14)
	je	LBB0_26
LBB0_33:
	movq	_DAVINCI_MMCIM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	40(%r14), %rsi
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_26:
	movq	32(%r14), %rax
	movq	_poll_threshold@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_33
## %bb.27:
	movq	_poll_loopcount@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_33
## %bb.28:
	decl	%ebx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_mmc_davinci_irq
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	24(%r14), %eax
	subl	$1, %ebx
	setb	%cl
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	testb	%cl, %cl
	je	LBB0_29
LBB0_31:
	testl	%eax, %eax
	jne	LBB0_33
## %bb.32:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD%d, arg 0x%08x%s\n"

L_.str.1:                               ## @.str.1
	.asciz	", R1/R5/R6/R7 response"

L_.str.2:                               ## @.str.2
	.asciz	", R1b response"

L_.str.3:                               ## @.str.3
	.asciz	", R2 response"

L_.str.4:                               ## @.str.4
	.asciz	", R3/R4 response"

L_.str.5:                               ## @.str.5
	.asciz	", (R? response)"

	.comm	_MMCCMD_BSYEXP,4,2              ## @MMCCMD_BSYEXP
	.comm	_MMCCMD_RSPFMT_R1456,4,2        ## @MMCCMD_RSPFMT_R1456
	.comm	_MMCCMD_RSPFMT_R2,4,2           ## @MMCCMD_RSPFMT_R2
	.comm	_MMCCMD_RSPFMT_R3,4,2           ## @MMCCMD_RSPFMT_R3
	.comm	_MMCCMD_RSPFMT_NONE,4,2         ## @MMCCMD_RSPFMT_NONE
L_.str.6:                               ## @.str.6
	.asciz	"unknown resp_type %04x\n"

	.comm	_MMCCMD_DMATRIG,4,2             ## @MMCCMD_DMATRIG
	.comm	_MMC_CTLR_VERSION_2,8,3         ## @MMC_CTLR_VERSION_2
	.comm	_DAVINCI_MMC_DATADIR_READ,8,3   ## @DAVINCI_MMC_DATADIR_READ
	.comm	_MMCCMD_WDATX,4,2               ## @MMCCMD_WDATX
	.comm	_DAVINCI_MMC_DATADIR_WRITE,8,3  ## @DAVINCI_MMC_DATADIR_WRITE
	.comm	_MMCCMD_DTRW,4,2                ## @MMCCMD_DTRW
	.comm	_MMC_BUSMODE_PUSHPULL,8,3       ## @MMC_BUSMODE_PUSHPULL
	.comm	_MMCCMD_PPLEN,4,2               ## @MMCCMD_PPLEN
	.comm	_DAVINCI_MMCTOR,8,3             ## @DAVINCI_MMCTOR
	.comm	_MMCST0_RSPDNE,4,2              ## @MMCST0_RSPDNE
	.comm	_MMCST0_CRCRS,4,2               ## @MMCST0_CRCRS
	.comm	_MMCST0_TOUTRS,4,2              ## @MMCST0_TOUTRS
	.comm	_MMCST0_DATDNE,4,2              ## @MMCST0_DATDNE
	.comm	_MMCST0_CRCWR,4,2               ## @MMCST0_CRCWR
	.comm	_MMCST0_DXRDY,4,2               ## @MMCST0_DXRDY
	.comm	_MMCST0_CRCRD,4,2               ## @MMCST0_CRCRD
	.comm	_MMCST0_TOUTRD,4,2              ## @MMCST0_TOUTRD
	.comm	_MMCST0_DRRDY,4,2               ## @MMCST0_DRRDY
	.comm	_rw_threshold,4,2               ## @rw_threshold
	.comm	_DAVINCI_MMCARGHL,8,3           ## @DAVINCI_MMCARGHL
	.comm	_DAVINCI_MMCCMD,8,3             ## @DAVINCI_MMCCMD
	.comm	_poll_threshold,8,3             ## @poll_threshold
	.comm	_poll_loopcount,4,2             ## @poll_loopcount
	.comm	_DAVINCI_MMCIM,8,3              ## @DAVINCI_MMCIM
	.no_dead_strip	_mmc_davinci_start_command
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.mmc_davinci_start_command
l_reltable.mmc_davinci_start_command:
	.long	L_.str.4-l_reltable.mmc_davinci_start_command
	.long	L_.str.3-l_reltable.mmc_davinci_start_command
	.long	L_.str.2-l_reltable.mmc_davinci_start_command
	.long	L_.str.1-l_reltable.mmc_davinci_start_command

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_davinci_start_command
_mmc_davinci_start_command:             ; @mmc_davinci_start_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #64]
	bl	_mmc_dev
	mov	x21, x0
	ldp	w22, w23, [x20]
	mov	x0, x20
	bl	_mmc_resp_type
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.mmc_davinci_start_command@PAGE
Lloh1:
	add	x9, x9, l_switch.table.mmc_davinci_start_command@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, l_.str.5@PAGE
Lloh3:
	add	x8, x8, l_.str.5@PAGEOFF
LBB0_3:
	stp	x23, x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_dbg
	str	x20, [x19, #72]
	mov	x0, x20
	bl	_mmc_resp_type
	sub	w9, w0, #128
	cmp	w9, #3
	b.hi	LBB0_6
; %bb.4:
	mov	w8, #0
Lloh6:
	adrp	x10, lJTI0_0@PAGE
Lloh7:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_5:
Lloh8:
	adrp	x8, _MMCCMD_RSPFMT_R3@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMCCMD_RSPFMT_R3@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	b	LBB0_10
LBB0_6:
Lloh11:
	adrp	x8, _MMCCMD_RSPFMT_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MMCCMD_RSPFMT_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	ldr	w0, [x19, #64]
	bl	_mmc_dev
	mov	x21, x0
	mov	x0, x20
	bl	_mmc_resp_type
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	b	LBB0_10
LBB0_7:
Lloh16:
	adrp	x8, _MMCCMD_RSPFMT_R2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MMCCMD_RSPFMT_R2@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
	b	LBB0_10
LBB0_8:
Lloh19:
	adrp	x8, _MMCCMD_BSYEXP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MMCCMD_BSYEXP@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
LBB0_9:
Lloh22:
	adrp	x9, _MMCCMD_RSPFMT_R1456@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MMCCMD_RSPFMT_R1456@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w22, w9, w8
LBB0_10:
	ldr	w8, [x20]
	orr	w8, w8, w22
	ldr	x10, [x19, #48]
Lloh25:
	adrp	x9, _MMCCMD_DMATRIG@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MMCCMD_DMATRIG@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w9, w9, w8
	cmp	x10, #0
	csel	w8, w8, w9, eq
	ldr	x10, [x19]
Lloh28:
	adrp	x11, _MMC_CTLR_VERSION_2@GOTPAGE
Lloh29:
	ldr	x11, [x11, _MMC_CTLR_VERSION_2@GOTPAGEOFF]
Lloh30:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_13
; %bb.11:
	ldr	x10, [x19, #56]
	cbz	x10, LBB0_13
; %bb.12:
	ldr	x10, [x19, #8]
Lloh31:
	adrp	x11, _DAVINCI_MMC_DATADIR_READ@GOTPAGE
Lloh32:
	ldr	x11, [x11, _DAVINCI_MMC_DATADIR_READ@GOTPAGEOFF]
Lloh33:
	ldr	x11, [x11]
	cmp	x10, x11
	csel	w8, w9, w8, eq
LBB0_13:
Lloh34:
	adrp	x9, _MMCCMD_WDATX@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MMCCMD_WDATX@GOTPAGEOFF]
	ldr	x10, [x20, #8]
Lloh36:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
Lloh37:
	adrp	x23, _DAVINCI_MMC_DATADIR_WRITE@GOTPAGE
Lloh38:
	ldr	x23, [x23, _DAVINCI_MMC_DATADIR_WRITE@GOTPAGEOFF]
	ldr	x10, [x23]
	ldp	x11, x12, [x19, #8]
	cmp	x11, x10
Lloh39:
	adrp	x10, _MMCCMD_DTRW@GOTPAGE
Lloh40:
	ldr	x10, [x10, _MMCCMD_DTRW@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh41:
	ldr	w9, [x10]
	csel	w9, w9, wzr, eq
	orr	w8, w8, w9
Lloh42:
	adrp	x9, _MMC_BUSMODE_PUSHPULL@GOTPAGE
Lloh43:
	ldr	x9, [x9, _MMC_BUSMODE_PUSHPULL@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
Lloh45:
	adrp	x10, _MMCCMD_PPLEN@GOTPAGE
Lloh46:
	ldr	x10, [x10, _MMCCMD_PPLEN@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	cmp	x12, x9
	csel	w9, w10, wzr, eq
	orr	w22, w8, w9
	ldr	x8, [x19, #40]
Lloh48:
	adrp	x9, _DAVINCI_MMCTOR@GOTPAGE
Lloh49:
	ldr	x9, [x9, _DAVINCI_MMCTOR@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #8191
	bl	_writel
Lloh51:
	adrp	x8, _MMCST0_RSPDNE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MMCST0_RSPDNE@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _MMCST0_CRCRS@GOTPAGE
Lloh55:
	ldr	x9, [x9, _MMCST0_CRCRS@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
Lloh57:
	adrp	x10, _MMCST0_TOUTRS@GOTPAGE
Lloh58:
	ldr	x10, [x10, _MMCST0_TOUTRS@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh59:
	ldr	w9, [x10]
	orr	w21, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
Lloh60:
	adrp	x8, _MMCST0_DATDNE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _MMCST0_DATDNE@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	adrp	x9, _MMCST0_CRCWR@GOTPAGE
Lloh64:
	ldr	x9, [x9, _MMCST0_CRCWR@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	orr	w8, w8, w21
	orr	w21, w8, w9
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_19
; %bb.15:
Lloh66:
	adrp	x8, _MMCST0_DXRDY@GOTPAGE
Lloh67:
	ldr	x8, [x8, _MMCST0_DXRDY@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	orr	w21, w8, w21
Lloh69:
	adrp	x8, _rw_threshold@GOTPAGE
Lloh70:
	ldr	x8, [x8, _rw_threshold@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_davinci_fifo_data_trans
	b	LBB0_19
LBB0_16:
Lloh72:
	adrp	x9, _DAVINCI_MMC_DATADIR_READ@GOTPAGE
Lloh73:
	ldr	x9, [x9, _DAVINCI_MMC_DATADIR_READ@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.17:
Lloh75:
	adrp	x8, _MMCST0_DATDNE@GOTPAGE
Lloh76:
	ldr	x8, [x8, _MMCST0_DATDNE@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
Lloh78:
	adrp	x9, _MMCST0_CRCRD@GOTPAGE
Lloh79:
	ldr	x9, [x9, _MMCST0_CRCRD@GOTPAGEOFF]
Lloh80:
	adrp	x10, _MMCST0_TOUTRD@GOTPAGE
Lloh81:
	ldr	x10, [x10, _MMCST0_TOUTRD@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
Lloh83:
	ldr	w10, [x10]
	orr	w8, w8, w21
	orr	w8, w8, w9
	orr	w21, w8, w10
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_19
; %bb.18:
Lloh84:
	adrp	x8, _MMCST0_DRRDY@GOTPAGE
Lloh85:
	ldr	x8, [x8, _MMCST0_DRRDY@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_19:
	ldr	w0, [x20, #4]
	ldr	x8, [x19, #40]
Lloh87:
	adrp	x9, _DAVINCI_MMCARGHL@GOTPAGE
Lloh88:
	ldr	x9, [x9, _DAVINCI_MMCARGHL@GOTPAGEOFF]
Lloh89:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #40]
Lloh90:
	adrp	x9, _DAVINCI_MMCCMD@GOTPAGE
Lloh91:
	ldr	x9, [x9, _DAVINCI_MMCCMD@GOTPAGEOFF]
Lloh92:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
	mov	w8, #1
	str	w8, [x19, #24]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_21
LBB0_20:
	ldr	x8, [x19, #40]
Lloh93:
	adrp	x9, _DAVINCI_MMCIM@GOTPAGE
Lloh94:
	ldr	x9, [x9, _DAVINCI_MMCIM@GOTPAGEOFF]
Lloh95:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_writel
LBB0_21:
	ldr	x8, [x19, #32]
Lloh96:
	adrp	x9, _poll_threshold@GOTPAGE
Lloh97:
	ldr	x9, [x9, _poll_threshold@GOTPAGEOFF]
Lloh98:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_20
; %bb.22:
Lloh99:
	adrp	x8, _poll_loopcount@GOTPAGE
Lloh100:
	ldr	x8, [x8, _poll_loopcount@GOTPAGEOFF]
Lloh101:
	ldr	w8, [x8]
	cbz	w8, LBB0_20
; %bb.23:
	sub	w20, w8, #1
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	x1, x19
	bl	_mmc_davinci_irq
	bl	_cpu_relax
	ldr	w8, [x19, #24]
	cmp	w8, #0
	ccmp	w20, #0, #4, ne
	sub	w20, w20, #1
	b.ne	LBB0_24
; %bb.25:
	cbnz	w8, LBB0_20
; %bb.26:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh82
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD%d, arg 0x%08x%s\n"

l_.str.1:                               ; @.str.1
	.asciz	", R1/R5/R6/R7 response"

l_.str.2:                               ; @.str.2
	.asciz	", R1b response"

l_.str.3:                               ; @.str.3
	.asciz	", R2 response"

l_.str.4:                               ; @.str.4
	.asciz	", R3/R4 response"

l_.str.5:                               ; @.str.5
	.asciz	", (R? response)"

	.comm	_MMCCMD_BSYEXP,4,2              ; @MMCCMD_BSYEXP
	.comm	_MMCCMD_RSPFMT_R1456,4,2        ; @MMCCMD_RSPFMT_R1456
	.comm	_MMCCMD_RSPFMT_R2,4,2           ; @MMCCMD_RSPFMT_R2
	.comm	_MMCCMD_RSPFMT_R3,4,2           ; @MMCCMD_RSPFMT_R3
	.comm	_MMCCMD_RSPFMT_NONE,4,2         ; @MMCCMD_RSPFMT_NONE
l_.str.6:                               ; @.str.6
	.asciz	"unknown resp_type %04x\n"

	.comm	_MMCCMD_DMATRIG,4,2             ; @MMCCMD_DMATRIG
	.comm	_MMC_CTLR_VERSION_2,8,3         ; @MMC_CTLR_VERSION_2
	.comm	_DAVINCI_MMC_DATADIR_READ,8,3   ; @DAVINCI_MMC_DATADIR_READ
	.comm	_MMCCMD_WDATX,4,2               ; @MMCCMD_WDATX
	.comm	_DAVINCI_MMC_DATADIR_WRITE,8,3  ; @DAVINCI_MMC_DATADIR_WRITE
	.comm	_MMCCMD_DTRW,4,2                ; @MMCCMD_DTRW
	.comm	_MMC_BUSMODE_PUSHPULL,8,3       ; @MMC_BUSMODE_PUSHPULL
	.comm	_MMCCMD_PPLEN,4,2               ; @MMCCMD_PPLEN
	.comm	_DAVINCI_MMCTOR,8,3             ; @DAVINCI_MMCTOR
	.comm	_MMCST0_RSPDNE,4,2              ; @MMCST0_RSPDNE
	.comm	_MMCST0_CRCRS,4,2               ; @MMCST0_CRCRS
	.comm	_MMCST0_TOUTRS,4,2              ; @MMCST0_TOUTRS
	.comm	_MMCST0_DATDNE,4,2              ; @MMCST0_DATDNE
	.comm	_MMCST0_CRCWR,4,2               ; @MMCST0_CRCWR
	.comm	_MMCST0_DXRDY,4,2               ; @MMCST0_DXRDY
	.comm	_MMCST0_CRCRD,4,2               ; @MMCST0_CRCRD
	.comm	_MMCST0_TOUTRD,4,2              ; @MMCST0_TOUTRD
	.comm	_MMCST0_DRRDY,4,2               ; @MMCST0_DRRDY
	.comm	_rw_threshold,4,2               ; @rw_threshold
	.comm	_DAVINCI_MMCARGHL,8,3           ; @DAVINCI_MMCARGHL
	.comm	_DAVINCI_MMCCMD,8,3             ; @DAVINCI_MMCCMD
	.comm	_poll_threshold,8,3             ; @poll_threshold
	.comm	_poll_loopcount,4,2             ; @poll_loopcount
	.comm	_DAVINCI_MMCIM,8,3              ; @DAVINCI_MMCIM
	.no_dead_strip	_mmc_davinci_start_command
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mmc_davinci_start_command
l_switch.table.mmc_davinci_start_command:
	.quad	l_.str.4
	.quad	l_.str.3
	.quad	l_.str.2
	.quad	l_.str.1

.subsections_via_symbols
