	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxcmci_start_cmd
_mxcmci_start_cmd:                      ## @mxcmci_start_cmd
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, 40(%rbx)
	setne	%dil
	callq	_WARN_ON
	movq	%r15, 40(%rbx)
	movq	%r15, %rdi
	callq	_mmc_resp_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_CMD_DAT_CONT_RESPONSE_48BIT_CRC@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movl	32(%rbx), %edi
	callq	_mmc_dev
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mmc_resp_type
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	xorl	%r12d, %r12d
	movl	%ecx, (%r15)
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_3:
	movq	_CMD_DAT_CONT_RESPONSE_48BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_CMD_DAT_CONT_RESPONSE_136BIT@GOTPCREL(%rip), %rax
LBB0_6:
	orl	(%rax), %r12d
LBB0_7:
	movq	_INT_END_CMD_RES_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_mxcmci_use_dma
	testq	%rax, %rax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_11
## %bb.8:
	movq	(%rbx), %rax
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_mxcmci_dma_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	%rbx, (%rcx)
	jmp	LBB0_11
LBB0_10:
	movq	_INT_WRITE_OP_DONE_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_11:
	leaq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	xorl	%r12d, %r12d
	cmpq	$0, 16(%rbx)
	movl	$0, %esi
	je	LBB0_13
## %bb.12:
	movq	_INT_SDIO_IRQ_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_13:
	orl	%r14d, %esi
	movq	_MMC_REG_INT_CNTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mxcmci_writel
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movl	4(%r15), %esi
	movq	_MMC_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mxcmci_writew
	movl	8(%r15), %esi
	movq	_MMC_REG_ARG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mxcmci_writel
	movq	_MMC_REG_CMD_DAT_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_mxcmci_writew
LBB0_14:
	movl	%r12d, %eax
	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_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_CMD_DAT_CONT_RESPONSE_48BIT_CRC,4,2 ## @CMD_DAT_CONT_RESPONSE_48BIT_CRC
	.comm	_CMD_DAT_CONT_RESPONSE_136BIT,4,2 ## @CMD_DAT_CONT_RESPONSE_136BIT
	.comm	_CMD_DAT_CONT_RESPONSE_48BIT,4,2 ## @CMD_DAT_CONT_RESPONSE_48BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unhandled response type 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INT_END_CMD_RES_EN,4,2         ## @INT_END_CMD_RES_EN
	.comm	_DMA_FROM_DEVICE,8,3            ## @DMA_FROM_DEVICE
	.comm	_mxcmci_dma_callback,4,2        ## @mxcmci_dma_callback
	.comm	_INT_WRITE_OP_DONE_EN,4,2       ## @INT_WRITE_OP_DONE_EN
	.comm	_INT_SDIO_IRQ_EN,4,2            ## @INT_SDIO_IRQ_EN
	.comm	_MMC_REG_INT_CNTR,4,2           ## @MMC_REG_INT_CNTR
	.comm	_MMC_REG_CMD,4,2                ## @MMC_REG_CMD
	.comm	_MMC_REG_ARG,4,2                ## @MMC_REG_ARG
	.comm	_MMC_REG_CMD_DAT_CONT,4,2       ## @MMC_REG_CMD_DAT_CONT
	.no_dead_strip	_mxcmci_start_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxcmci_start_cmd
_mxcmci_start_cmd:                      ; @mxcmci_start_cmd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0, #40]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	str	x19, [x21, #40]
	mov	x0, x19
	bl	_mmc_resp_type
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _CMD_DAT_CONT_RESPONSE_48BIT_CRC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_DAT_CONT_RESPONSE_48BIT_CRC@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	w0, [x21, #32]
	bl	_mmc_dev
	mov	x20, x0
	mov	x0, x19
	bl	_mmc_resp_type
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	ldr	w9, [x8]
	neg	w9, w9
	str	w9, [x19]
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_4:
Lloh8:
	adrp	x8, _CMD_DAT_CONT_RESPONSE_48BIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_DAT_CONT_RESPONSE_48BIT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _CMD_DAT_CONT_RESPONSE_136BIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CMD_DAT_CONT_RESPONSE_136BIT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_7:
Lloh12:
	adrp	x8, _INT_END_CMD_RES_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INT_END_CMD_RES_EN@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_mxcmci_use_dma
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x8, [x21]
Lloh15:
	adrp	x9, _DMA_FROM_DEVICE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _mxcmci_dma_callback@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mxcmci_dma_callback@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	x9, [x21, #24]
	str	w8, [x9, #8]
	str	x21, [x9]
	b	LBB0_11
LBB0_10:
Lloh21:
	adrp	x8, _INT_WRITE_OP_DONE_EN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INT_WRITE_OP_DONE_EN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_11:
	add	x22, x21, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #16]
Lloh24:
	adrp	x9, _INT_SDIO_IRQ_EN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _INT_SDIO_IRQ_EN@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w1, w8, w23
Lloh27:
	adrp	x8, _MMC_REG_INT_CNTR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MMC_REG_INT_CNTR@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_mxcmci_writel
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w1, [x19, #4]
Lloh30:
	adrp	x8, _MMC_REG_CMD@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MMC_REG_CMD@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_mxcmci_writew
	ldr	w1, [x19, #8]
Lloh33:
	adrp	x8, _MMC_REG_ARG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MMC_REG_ARG@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_mxcmci_writel
Lloh36:
	adrp	x8, _MMC_REG_CMD_DAT_CONT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MMC_REG_CMD_DAT_CONT@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_mxcmci_writew
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_CMD_DAT_CONT_RESPONSE_48BIT_CRC,4,2 ; @CMD_DAT_CONT_RESPONSE_48BIT_CRC
	.comm	_CMD_DAT_CONT_RESPONSE_136BIT,4,2 ; @CMD_DAT_CONT_RESPONSE_136BIT
	.comm	_CMD_DAT_CONT_RESPONSE_48BIT,4,2 ; @CMD_DAT_CONT_RESPONSE_48BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unhandled response type 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INT_END_CMD_RES_EN,4,2         ; @INT_END_CMD_RES_EN
	.comm	_DMA_FROM_DEVICE,8,3            ; @DMA_FROM_DEVICE
	.comm	_mxcmci_dma_callback,4,2        ; @mxcmci_dma_callback
	.comm	_INT_WRITE_OP_DONE_EN,4,2       ; @INT_WRITE_OP_DONE_EN
	.comm	_INT_SDIO_IRQ_EN,4,2            ; @INT_SDIO_IRQ_EN
	.comm	_MMC_REG_INT_CNTR,4,2           ; @MMC_REG_INT_CNTR
	.comm	_MMC_REG_CMD,4,2                ; @MMC_REG_CMD
	.comm	_MMC_REG_ARG,4,2                ; @MMC_REG_ARG
	.comm	_MMC_REG_CMD_DAT_CONT,4,2       ; @MMC_REG_CMD_DAT_CONT
	.no_dead_strip	_mxcmci_start_cmd
.subsections_via_symbols
