	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imxmci_tasklet_fnc
_imxmci_tasklet_fnc:                    ## @imxmci_tasklet_fnc
	.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	%rdi, %r12
	addq	$84, %rdi
	callq	_atomic_read
	movl	%eax, %ebx
	cmpl	$5, %eax
	jl	LBB0_10
## %bb.1:
	movq	_MMC_REG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	64(%r12), %rdi
	callq	_readw
	movl	%eax, -44(%rbp)
	movl	%eax, (%r12)
	movq	_IMXMCI_PEND_WAIT_RESP_b@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	56(%r12), %r15
	movq	%r15, %rsi
	callq	_test_bit
	movq	%rax, %r14
	movq	_IMXMCI_PEND_DMA_DATA_b@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%r14, %r14
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_3
## %bb.2:
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_6
LBB0_10:
	cmpl	$0, 72(%r12)
	jne	LBB0_12
	jmp	LBB0_11
LBB0_3:
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_IMXMCI_PEND_DMA_END_b@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rbx
LBB0_6:
	cmoveq	%rax, %rbx
LBB0_7:
	movl	24(%r12), %edi
	callq	_mmc_dev
	movl	%eax, %r13d
	movl	-44(%rbp), %r14d
	movq	_MMC_REG_INT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	64(%r12), %rdi
	callq	_readw
	leaq	L_.str.5(%rip), %rsi
	movl	%r13d, %edi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_err
	movl	24(%r12), %edi
	callq	_mmc_dev
	movl	%eax, %r13d
	movq	_MMC_REG_CMD_DAT_CONT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	64(%r12), %rdi
	callq	_readw
	movl	%eax, %r14d
	movq	_MMC_REG_BLK_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	64(%r12), %rdi
	callq	_readw
	movl	%eax, %ebx
	movq	_MMC_REG_NOB@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	64(%r12), %rdi
	callq	_readw
	movl	%eax, %r15d
	movl	80(%r12), %edi
	callq	_CCR
	leaq	L_.str.6(%rip), %rsi
	movl	%r13d, %edi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_dev_err
	movl	24(%r12), %edi
	callq	_mmc_dev
	xorl	%edx, %edx
	movq	48(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movl	(%rcx), %edx
LBB0_9:
	movl	4(%r12), %ebx
	movb	8(%r12), %cl
	movl	$1, %r8d
	shll	%cl, %r8d
	movl	76(%r12), %r9d
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_11:
	movq	_STATUS_TIME_OUT_RESP@GOTPCREL(%rip), %rax
	movq	_STATUS_TIME_OUT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_STATUS_CRC_READ_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_STATUS_CRC_WRITE_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
LBB0_12:
	movq	_IMXMCI_PEND_IRQ_b@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	56(%r12), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	cmpl	$5, %ebx
	jl	LBB0_29
LBB0_14:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_MMC_REG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	64(%r12), %rdi
	callq	_readw
	movl	%eax, %ebx
	orl	(%r12), %ebx
	movl	%ebx, -44(%rbp)
	movq	_IMXMCI_PEND_CPU_DATA_b@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_STATUS_CRC_READ_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	%ebx, -44(%rbp)
LBB0_16:
	movq	_IMXMCI_PEND_WAIT_RESP_b@GOTPCREL(%rip), %rax
	movq	%rax, %r15
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_STATUS_END_CMD_RESP@GOTPCREL(%rip), %rax
	movq	_STATUS_ERR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	L_.str.8(%rip), %r8
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	movl	$20, %ecx
	callq	_imxmci_busy_wait_for_status
	movl	-44(%rbp), %ebx
LBB0_18:
	movq	_STATUS_END_CMD_RESP@GOTPCREL(%rip), %rax
	movq	_STATUS_ERR_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_24
## %bb.19:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	callq	_imxmci_cmd_done
LBB0_21:
	cmpq	$0, 40(%r12)
	je	LBB0_24
## %bb.22:
	movl	-44(%rbp), %esi
	testl	%esi, (%r13)
	je	LBB0_24
## %bb.23:
	movq	%r12, %rdi
	callq	_imxmci_data_done
LBB0_24:
	movq	_IMXMCI_PEND_CPU_DATA_b@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_29
## %bb.25:
	movq	_MMC_REG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	64(%r12), %rdi
	callq	_readw
	orl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_imxmci_cpu_driven_data
	testq	%rax, %rax
	je	LBB0_29
## %bb.26:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	callq	_imxmci_cmd_done
LBB0_28:
	movq	_IMXMCI_PEND_IRQ_m@GOTPCREL(%rip), %rax
	movq	_IMXMCI_PEND_CPU_DATA_m@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	%r14, %rsi
	callq	_atomic_clear_mask
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	callq	_imxmci_data_done
LBB0_29:
	movq	_IMXMCI_PEND_DMA_END_b@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_36
## %bb.30:
	movq	_IMXMCI_PEND_WAIT_RESP_b@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_36
## %bb.31:
	movq	_MMC_REG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	64(%r12), %rdi
	callq	_readw
	orl	(%r12), %eax
	movl	%eax, -44(%rbp)
	movq	16(%r12), %rcx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_32
## %bb.33:
	movq	_STATUS_WRITE_OP_DONE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_35
	jmp	LBB0_36
LBB0_32:
	movq	_STATUS_DATA_TRANS_DONE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_36
LBB0_35:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	callq	_imxmci_data_done
LBB0_36:
	movq	_IMXMCI_PEND_CARD_XCHG_b@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_44
## %bb.37:
	cmpq	$0, 48(%r12)
	je	LBB0_39
## %bb.38:
	movq	_STATUS_TIME_OUT_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_imxmci_cmd_done
LBB0_39:
	cmpq	$0, 40(%r12)
	je	LBB0_41
## %bb.40:
	movq	_STATUS_TIME_OUT_READ@GOTPCREL(%rip), %rax
	movq	_STATUS_CRC_READ_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_STATUS_CRC_WRITE_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_imxmci_data_done
LBB0_41:
	movq	32(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_43
## %bb.42:
	movq	%r12, %rdi
	callq	_imxmci_finish_request
LBB0_43:
	movl	24(%r12), %ebx
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_mmc_detect_change
LBB0_44:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.4(%rip), %rbx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_REG_STATUS,8,3             ## @MMC_REG_STATUS
	.comm	_IMXMCI_PEND_WAIT_RESP_b,4,2    ## @IMXMCI_PEND_WAIT_RESP_b
	.comm	_IMXMCI_PEND_DMA_DATA_b,4,2     ## @IMXMCI_PEND_DMA_DATA_b
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RESP+DMA"

L_.str.1:                               ## @.str.1
	.asciz	"RESP"

	.comm	_IMXMCI_PEND_DMA_END_b,4,2      ## @IMXMCI_PEND_DMA_END_b
L_.str.2:                               ## @.str.2
	.asciz	"DATA"

L_.str.3:                               ## @.str.3
	.asciz	"DMA"

L_.str.4:                               ## @.str.4
	.asciz	"???"

L_.str.5:                               ## @.str.5
	.asciz	"%s TIMEOUT, hardware stucked STATUS = 0x%04x IMASK = 0x%04x\n"

	.comm	_MMC_REG_INT_MASK,8,3           ## @MMC_REG_INT_MASK
L_.str.6:                               ## @.str.6
	.asciz	"CMD_DAT_CONT = 0x%04x, MMC_BLK_LEN = 0x%04x, MMC_NOB = 0x%04x, DMA_CCR = 0x%08x\n"

	.comm	_MMC_REG_CMD_DAT_CONT,8,3       ## @MMC_REG_CMD_DAT_CONT
	.comm	_MMC_REG_BLK_LEN,8,3            ## @MMC_REG_BLK_LEN
	.comm	_MMC_REG_NOB,8,3                ## @MMC_REG_NOB
L_.str.7:                               ## @.str.7
	.asciz	"CMD%d, prevCMD%d, bus %d-bit, dma_size = 0x%x\n"

	.comm	_STATUS_TIME_OUT_RESP,4,2       ## @STATUS_TIME_OUT_RESP
	.comm	_STATUS_TIME_OUT_READ,4,2       ## @STATUS_TIME_OUT_READ
	.comm	_STATUS_CRC_READ_ERR,4,2        ## @STATUS_CRC_READ_ERR
	.comm	_STATUS_CRC_WRITE_ERR,4,2       ## @STATUS_CRC_WRITE_ERR
	.comm	_IMXMCI_PEND_IRQ_b,4,2          ## @IMXMCI_PEND_IRQ_b
	.comm	_IMXMCI_PEND_CPU_DATA_b,4,2     ## @IMXMCI_PEND_CPU_DATA_b
	.comm	_STATUS_END_CMD_RESP,4,2        ## @STATUS_END_CMD_RESP
	.comm	_STATUS_ERR_MASK,4,2            ## @STATUS_ERR_MASK
L_.str.8:                               ## @.str.8
	.asciz	"imxmci_tasklet_fnc resp (ERRATUM #4)"

	.comm	_IMXMCI_PEND_IRQ_m,4,2          ## @IMXMCI_PEND_IRQ_m
	.comm	_IMXMCI_PEND_CPU_DATA_m,4,2     ## @IMXMCI_PEND_CPU_DATA_m
	.comm	_DMA_TO_DEVICE,8,3              ## @DMA_TO_DEVICE
	.comm	_STATUS_WRITE_OP_DONE,4,2       ## @STATUS_WRITE_OP_DONE
	.comm	_STATUS_DATA_TRANS_DONE,4,2     ## @STATUS_DATA_TRANS_DONE
	.comm	_IMXMCI_PEND_CARD_XCHG_b,4,2    ## @IMXMCI_PEND_CARD_XCHG_b
	.no_dead_strip	_imxmci_tasklet_fnc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imxmci_tasklet_fnc
_imxmci_tasklet_fnc:                    ; @imxmci_tasklet_fnc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	add	x0, x0, #84
	bl	_atomic_read
	mov	x21, x0
Lloh0:
	adrp	x25, _STATUS_TIME_OUT_RESP@GOTPAGE
Lloh1:
	ldr	x25, [x25, _STATUS_TIME_OUT_RESP@GOTPAGEOFF]
Lloh2:
	adrp	x27, _STATUS_TIME_OUT_READ@GOTPAGE
Lloh3:
	ldr	x27, [x27, _STATUS_TIME_OUT_READ@GOTPAGEOFF]
Lloh4:
	adrp	x26, _STATUS_CRC_READ_ERR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _STATUS_CRC_READ_ERR@GOTPAGEOFF]
Lloh6:
	adrp	x28, _STATUS_CRC_WRITE_ERR@GOTPAGE
Lloh7:
	ldr	x28, [x28, _STATUS_CRC_WRITE_ERR@GOTPAGEOFF]
Lloh8:
	adrp	x24, _IMXMCI_PEND_WAIT_RESP_b@GOTPAGE
Lloh9:
	ldr	x24, [x24, _IMXMCI_PEND_WAIT_RESP_b@GOTPAGEOFF]
Lloh10:
	adrp	x23, _IMXMCI_PEND_DMA_END_b@GOTPAGE
Lloh11:
	ldr	x23, [x23, _IMXMCI_PEND_DMA_END_b@GOTPAGEOFF]
	cmp	w0, #5
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x19, #64]
Lloh12:
	adrp	x9, _MMC_REG_STATUS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MMC_REG_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw
	str	w0, [sp, #44]
	str	w0, [x19]
	ldr	w0, [x24]
	add	x20, x19, #56
	mov	x1, x20
	bl	_test_bit
	mov	x22, x0
Lloh15:
	adrp	x8, _IMXMCI_PEND_DMA_DATA_b@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IMXMCI_PEND_DMA_DATA_b@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x22, LBB0_4
; %bb.2:
Lloh18:
	adrp	x8, l_.str@PAGE
Lloh19:
	add	x8, x8, l_.str@PAGEOFF
Lloh20:
	adrp	x9, l_.str.1@PAGE
Lloh21:
	add	x9, x9, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
	ldr	w8, [x19, #72]
	cbnz	w8, LBB0_11
	b	LBB0_10
LBB0_4:
	cbz	x0, LBB0_41
; %bb.5:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
Lloh22:
	adrp	x8, l_.str.2@PAGE
Lloh23:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh24:
	adrp	x9, l_.str.3@PAGE
Lloh25:
	add	x9, x9, l_.str.3@PAGEOFF
LBB0_6:
	cmp	x0, #0
	csel	x22, x9, x8, eq
LBB0_7:
	ldr	w0, [x19, #24]
	bl	_mmc_dev
	mov	x20, x0
	ldr	x8, [x19, #64]
Lloh26:
	adrp	x9, _MMC_REG_INT_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MMC_REG_INT_MASK@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w23, [sp, #44]
	bl	_readw
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #8]
	str	x22, [sp]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #24]
	bl	_mmc_dev
	mov	x20, x0
	ldr	x8, [x19, #64]
Lloh31:
	adrp	x9, _MMC_REG_CMD_DAT_CONT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MMC_REG_CMD_DAT_CONT@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw
	mov	x22, x0
	ldr	x8, [x19, #64]
Lloh34:
	adrp	x9, _MMC_REG_BLK_LEN@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MMC_REG_BLK_LEN@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw
	mov	x23, x0
	ldr	x8, [x19, #64]
Lloh37:
	adrp	x9, _MMC_REG_NOB@GOTPAGE
Lloh38:
	ldr	x9, [x9, _MMC_REG_NOB@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw
	mov	x24, x0
	ldr	w0, [x19, #80]
	bl	_CCR
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp, #16]
	stp	x22, x23, [sp]
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #24]
	bl	_mmc_dev
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w8, [x8]
LBB0_9:
	mov	w9, #1
	ldp	w11, w10, [x19, #4]
	lsl	w9, w9, w10
	ldr	w10, [x19, #76]
	stp	x8, x11, [sp]
	stp	x9, x10, [sp, #16]
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
Lloh44:
	adrp	x23, _IMXMCI_PEND_DMA_END_b@GOTPAGE
Lloh45:
	ldr	x23, [x23, _IMXMCI_PEND_DMA_END_b@GOTPAGEOFF]
Lloh46:
	adrp	x24, _IMXMCI_PEND_WAIT_RESP_b@GOTPAGE
Lloh47:
	ldr	x24, [x24, _IMXMCI_PEND_WAIT_RESP_b@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x25]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x28]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_11:
Lloh48:
	adrp	x22, _IMXMCI_PEND_IRQ_b@GOTPAGE
Lloh49:
	ldr	x22, [x22, _IMXMCI_PEND_IRQ_b@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x20, x19, #56
	mov	x1, x20
	bl	_test_bit
	cmp	x0, #0
	ccmp	w21, #5, #0, eq
	b.lt	LBB0_28
; %bb.12:
	mov	x21, x24
	ldr	w0, [x22]
	mov	x1, x20
	bl	_clear_bit
	ldr	x8, [x19, #64]
Lloh50:
	adrp	x9, _MMC_REG_STATUS@GOTPAGE
Lloh51:
	ldr	x9, [x9, _MMC_REG_STATUS@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw
	ldr	w8, [x19]
	orr	w24, w8, w0
	str	w24, [sp, #44]
Lloh53:
	adrp	x8, _IMXMCI_PEND_CPU_DATA_b@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IMXMCI_PEND_CPU_DATA_b@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	mov	x22, x23
	cbz	x0, LBB0_14
; %bb.13:
	mov	x25, x26
	ldr	w8, [x26]
	bic	w24, w24, w8
	str	w24, [sp, #44]
	b	LBB0_15
LBB0_14:
	mov	x25, x26
LBB0_15:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_test_bit
Lloh56:
	adrp	x26, _STATUS_END_CMD_RESP@GOTPAGE
Lloh57:
	ldr	x26, [x26, _STATUS_END_CMD_RESP@GOTPAGEOFF]
Lloh58:
	adrp	x23, _STATUS_ERR_MASK@GOTPAGE
Lloh59:
	ldr	x23, [x23, _STATUS_ERR_MASK@GOTPAGEOFF]
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w8, [x26]
	ldr	w9, [x23]
	orr	w2, w9, w8
Lloh60:
	adrp	x4, l_.str.8@PAGE
Lloh61:
	add	x4, x4, l_.str.8@PAGEOFF
	add	x1, sp, #44
	mov	x0, x19
	mov	w3, #20
	bl	_imxmci_busy_wait_for_status
	ldr	w24, [sp, #44]
LBB0_17:
	ldr	w8, [x26]
	ldr	w9, [x23]
	orr	w8, w9, w8
	tst	w8, w24
	mov	x26, x25
Lloh62:
	adrp	x25, _STATUS_TIME_OUT_RESP@GOTPAGE
Lloh63:
	ldr	x25, [x25, _STATUS_TIME_OUT_RESP@GOTPAGEOFF]
	mov	x24, x21
	b.eq	LBB0_23
; %bb.18:
	ldr	w0, [x24]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_20
; %bb.19:
	ldr	w1, [sp, #44]
	mov	x0, x19
	bl	_imxmci_cmd_done
LBB0_20:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_23
; %bb.21:
	ldr	w1, [sp, #44]
	ldr	w8, [x23]
	tst	w8, w1
	b.eq	LBB0_23
; %bb.22:
	mov	x0, x19
	bl	_imxmci_data_done
LBB0_23:
Lloh64:
	adrp	x8, _IMXMCI_PEND_CPU_DATA_b@GOTPAGE
Lloh65:
	ldr	x8, [x8, _IMXMCI_PEND_CPU_DATA_b@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	mov	x23, x22
	cbz	x0, LBB0_28
; %bb.24:
	ldr	x8, [x19, #64]
Lloh67:
	adrp	x9, _MMC_REG_STATUS@GOTPAGE
Lloh68:
	ldr	x9, [x9, _MMC_REG_STATUS@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw
	ldr	w8, [sp, #44]
	orr	w8, w8, w0
	str	w8, [sp, #44]
	add	x1, sp, #44
	mov	x0, x19
	bl	_imxmci_cpu_driven_data
	cbz	x0, LBB0_28
; %bb.25:
	ldr	w0, [x24]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_27
; %bb.26:
	ldr	w1, [sp, #44]
	mov	x0, x19
	bl	_imxmci_cmd_done
LBB0_27:
Lloh70:
	adrp	x8, _IMXMCI_PEND_IRQ_m@GOTPAGE
Lloh71:
	ldr	x8, [x8, _IMXMCI_PEND_IRQ_m@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
Lloh73:
	adrp	x9, _IMXMCI_PEND_CPU_DATA_m@GOTPAGE
Lloh74:
	ldr	x9, [x9, _IMXMCI_PEND_CPU_DATA_m@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	orr	w0, w9, w8
	mov	x1, x20
	bl	_atomic_clear_mask
	ldr	w1, [sp, #44]
	mov	x0, x19
	bl	_imxmci_data_done
LBB0_28:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_32
; %bb.29:
	ldr	w0, [x24]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_32
; %bb.30:
	ldr	x8, [x19, #64]
Lloh76:
	adrp	x9, _MMC_REG_STATUS@GOTPAGE
Lloh77:
	ldr	x9, [x9, _MMC_REG_STATUS@GOTPAGEOFF]
Lloh78:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [sp, #44]
	ldr	x9, [x19, #16]
Lloh79:
	adrp	x10, _DMA_TO_DEVICE@GOTPAGE
Lloh80:
	ldr	x10, [x10, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh81:
	ldr	x10, [x10]
Lloh82:
	adrp	x11, _STATUS_WRITE_OP_DONE@GOTPAGE
Lloh83:
	ldr	x11, [x11, _STATUS_WRITE_OP_DONE@GOTPAGEOFF]
Lloh84:
	adrp	x12, _STATUS_DATA_TRANS_DONE@GOTPAGE
Lloh85:
	ldr	x12, [x12, _STATUS_DATA_TRANS_DONE@GOTPAGEOFF]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.31:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_clear_bit
	ldr	w1, [sp, #44]
	mov	x0, x19
	bl	_imxmci_data_done
LBB0_32:
Lloh86:
	adrp	x8, _IMXMCI_PEND_CARD_XCHG_b@GOTPAGE
Lloh87:
	ldr	x8, [x8, _IMXMCI_PEND_CARD_XCHG_b@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_40
; %bb.33:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_35
; %bb.34:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_imxmci_cmd_done
LBB0_35:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_37
; %bb.36:
	ldr	w8, [x27]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x28]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_imxmci_data_done
LBB0_37:
	ldr	x1, [x19, #32]
	cbz	x1, LBB0_39
; %bb.38:
	mov	x0, x19
	bl	_imxmci_finish_request
LBB0_39:
	ldr	w19, [x19, #24]
	mov	w0, #100
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_mmc_detect_change
LBB0_40:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_41:
Lloh89:
	adrp	x22, l_.str.4@PAGE
Lloh90:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_REG_STATUS,8,3             ; @MMC_REG_STATUS
	.comm	_IMXMCI_PEND_WAIT_RESP_b,4,2    ; @IMXMCI_PEND_WAIT_RESP_b
	.comm	_IMXMCI_PEND_DMA_DATA_b,4,2     ; @IMXMCI_PEND_DMA_DATA_b
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RESP+DMA"

l_.str.1:                               ; @.str.1
	.asciz	"RESP"

	.comm	_IMXMCI_PEND_DMA_END_b,4,2      ; @IMXMCI_PEND_DMA_END_b
l_.str.2:                               ; @.str.2
	.asciz	"DATA"

l_.str.3:                               ; @.str.3
	.asciz	"DMA"

l_.str.4:                               ; @.str.4
	.asciz	"???"

l_.str.5:                               ; @.str.5
	.asciz	"%s TIMEOUT, hardware stucked STATUS = 0x%04x IMASK = 0x%04x\n"

	.comm	_MMC_REG_INT_MASK,8,3           ; @MMC_REG_INT_MASK
l_.str.6:                               ; @.str.6
	.asciz	"CMD_DAT_CONT = 0x%04x, MMC_BLK_LEN = 0x%04x, MMC_NOB = 0x%04x, DMA_CCR = 0x%08x\n"

	.comm	_MMC_REG_CMD_DAT_CONT,8,3       ; @MMC_REG_CMD_DAT_CONT
	.comm	_MMC_REG_BLK_LEN,8,3            ; @MMC_REG_BLK_LEN
	.comm	_MMC_REG_NOB,8,3                ; @MMC_REG_NOB
l_.str.7:                               ; @.str.7
	.asciz	"CMD%d, prevCMD%d, bus %d-bit, dma_size = 0x%x\n"

	.comm	_STATUS_TIME_OUT_RESP,4,2       ; @STATUS_TIME_OUT_RESP
	.comm	_STATUS_TIME_OUT_READ,4,2       ; @STATUS_TIME_OUT_READ
	.comm	_STATUS_CRC_READ_ERR,4,2        ; @STATUS_CRC_READ_ERR
	.comm	_STATUS_CRC_WRITE_ERR,4,2       ; @STATUS_CRC_WRITE_ERR
	.comm	_IMXMCI_PEND_IRQ_b,4,2          ; @IMXMCI_PEND_IRQ_b
	.comm	_IMXMCI_PEND_CPU_DATA_b,4,2     ; @IMXMCI_PEND_CPU_DATA_b
	.comm	_STATUS_END_CMD_RESP,4,2        ; @STATUS_END_CMD_RESP
	.comm	_STATUS_ERR_MASK,4,2            ; @STATUS_ERR_MASK
l_.str.8:                               ; @.str.8
	.asciz	"imxmci_tasklet_fnc resp (ERRATUM #4)"

	.comm	_IMXMCI_PEND_IRQ_m,4,2          ; @IMXMCI_PEND_IRQ_m
	.comm	_IMXMCI_PEND_CPU_DATA_m,4,2     ; @IMXMCI_PEND_CPU_DATA_m
	.comm	_DMA_TO_DEVICE,8,3              ; @DMA_TO_DEVICE
	.comm	_STATUS_WRITE_OP_DONE,4,2       ; @STATUS_WRITE_OP_DONE
	.comm	_STATUS_DATA_TRANS_DONE,4,2     ; @STATUS_DATA_TRANS_DONE
	.comm	_IMXMCI_PEND_CARD_XCHG_b,4,2    ; @IMXMCI_PEND_CARD_XCHG_b
	.no_dead_strip	_imxmci_tasklet_fnc
.subsections_via_symbols
