	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc32xx_xfer
_lpc32xx_xfer:                          ## @lpc32xx_xfer
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mtd_to_nand
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_nand_get_controller_data
	movq	%rax, %r15
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_high_memory@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r14, %rax
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jae	LBB0_6
## %bb.4:
	movq	(%r15), %rdi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_memcpy
	jmp	LBB0_8
LBB0_6:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
LBB0_7:
	movl	16(%r15), %edi
	callq	_SLC_CFG
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %ebx
	movq	_SLCCFG_DMA_DIR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SLCCFG_ECC_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SLCCFG_DMA_ECC@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SLCCFG_DMA_BURST@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_9
LBB0_8:
	movl	16(%r15), %edi
	callq	_SLC_CFG
	movl	%eax, %edi
	callq	_readl
	movq	_SLCCFG_ECC_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SLCCFG_DMA_ECC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SLCCFG_DMA_BURST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SLCCFG_DMA_DIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
LBB0_9:
	movl	16(%r15), %edi
	callq	_SLC_CFG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	_SLCCTRL_ECC_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	16(%r15), %edi
	callq	_SLC_CTRL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movl	16(%r15), %edi
	callq	_SLC_TC
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	16(%r15), %edi
	callq	_SLC_CTRL
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %ebx
	movq	_SLCCTRL_DMA_START@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	16(%r15), %edi
	callq	_SLC_CTRL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	cmpl	$0, (%r13)
	jle	LBB0_17
## %bb.10:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	24(%r15), %edi
	callq	_SLC_DMA_DATA
	movl	%eax, %esi
	movslq	4(%r13), %rax
	movslq	%r12d, %rcx
	imulq	%rax, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %eax
	cltd
	idivl	(%r13)
	movq	%rcx, %rdx
	movl	%eax, %ecx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	callq	_lpc32xx_xmit_dma
	testl	%eax, %eax
	jne	LBB0_31
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r13), %eax
	decl	%eax
	cmpq	%rax, %r12
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$10, %edi
	callq	_udelay
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	24(%r15), %edi
	callq	_SLC_ECC
	movq	8(%r15), %rdx
	addq	%rbx, %rdx
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_lpc32xx_xmit_dma
	testl	%eax, %eax
	jne	LBB0_31
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r12
	movslq	(%r13), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_11
LBB0_17:
	movl	16(%r15), %edi
	callq	_SLC_STAT
	movl	%eax, %edi
	callq	_readl
	movq	_SLCSTAT_DMA_FIFO@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	testl	%eax, (%r12)
	je	LBB0_22
## %bb.18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_LPC32XX_DMA_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	16(%r15), %edi
	callq	_SLC_STAT
	movl	%eax, %edi
	callq	_readl
	movq	%r12, %rcx
	testl	%eax, (%r12)
	je	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	16(%r15), %edi
	callq	_SLC_STAT
	movl	%eax, %edi
	callq	_readl
	testl	%eax, (%r12)
	jne	LBB0_19
LBB0_21:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_33
LBB0_22:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_24
LBB0_23:
	movl	$10, %edi
	callq	_udelay
LBB0_24:
	movl	16(%r15), %edi
	callq	_SLC_ECC
	movl	%eax, %edi
	callq	_readl
	movq	8(%r15), %rcx
	movslq	(%r13), %rdx
	movl	%eax, -4(%rcx,%rdx,4)
	movl	20(%r15), %edi
	callq	_dmaengine_terminate_all
	movl	16(%r15), %edi
	callq	_SLC_STAT
	movl	%eax, %edi
	callq	_readl
	testl	%eax, (%r12)
	jne	LBB0_26
## %bb.25:
	movl	16(%r15), %edi
	callq	_SLC_TC
	movl	%eax, %edi
	callq	_readl
	testl	%eax, %eax
	je	LBB0_27
LBB0_26:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_27:
	movl	16(%r15), %edi
	callq	_SLC_CTRL
	movl	%eax, %edi
	callq	_readl
	movq	_SLCCTRL_DMA_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	16(%r15), %edi
	callq	_SLC_CTRL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	16(%r15), %edi
	callq	_SLC_CFG
	movl	%eax, %edi
	callq	_readl
	movq	_SLCCFG_DMA_DIR@GOTPCREL(%rip), %rcx
	movq	_SLCCFG_ECC_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_SLCCFG_DMA_ECC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_SLCCFG_DMA_BURST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	16(%r15), %edi
	callq	_SLC_CFG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_32
## %bb.28:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rdi, -80(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_32
## %bb.29:
	movq	(%r15), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	callq	_memcpy
	jmp	LBB0_32
LBB0_31:
	movl	%eax, %r14d
LBB0_32:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_24
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_DEV_TO_MEM,4,2             ## @DMA_DEV_TO_MEM
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.comm	_high_memory,8,3                ## @high_memory
	.comm	_SLCCFG_DMA_DIR,4,2             ## @SLCCFG_DMA_DIR
	.comm	_SLCCFG_ECC_EN,4,2              ## @SLCCFG_ECC_EN
	.comm	_SLCCFG_DMA_ECC,4,2             ## @SLCCFG_DMA_ECC
	.comm	_SLCCFG_DMA_BURST,4,2           ## @SLCCFG_DMA_BURST
	.comm	_SLCCTRL_ECC_CLEAR,4,2          ## @SLCCTRL_ECC_CLEAR
	.comm	_SLCCTRL_DMA_START,4,2          ## @SLCCTRL_DMA_START
	.comm	_SLCSTAT_DMA_FIFO,4,2           ## @SLCSTAT_DMA_FIFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FIFO not empty!\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_LPC32XX_DMA_TIMEOUT,4,2        ## @LPC32XX_DMA_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"FIFO held data too long\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"DMA FIFO failure\n"

	.no_dead_strip	_lpc32xx_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc32xx_xfer
_lpc32xx_xfer:                          ; @lpc32xx_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x19, x1
	mov	x20, x0
	bl	_mtd_to_nand
	mov	x23, x0
	bl	_nand_get_controller_data
	mov	x22, x0
Lloh0:
	adrp	x28, _DMA_DEV_TO_MEM@GOTPAGE
Lloh1:
	ldr	x28, [x28, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh2:
	adrp	x8, _DMA_MEM_TO_DEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_MEM_TO_DEV@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x28, x8, ne
	ldr	w24, [x8]
Lloh4:
	adrp	x8, _high_memory@GOTPAGE
Lloh5:
	ldr	x8, [x8, _high_memory@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x27, _SLCCFG_DMA_ECC@GOTPAGE
Lloh8:
	ldr	x27, [x27, _SLCCFG_DMA_ECC@GOTPAGEOFF]
Lloh9:
	adrp	x26, _SLCCFG_DMA_BURST@GOTPAGE
Lloh10:
	ldr	x26, [x26, _SLCCFG_DMA_BURST@GOTPAGEOFF]
	cmp	x8, x19
	stp	x8, x19, [sp]                   ; 16-byte Folded Spill
	b.hs	LBB0_3
; %bb.1:
	ldr	x25, [x22]
	cbnz	w21, LBB0_4
; %bb.2:
	ldr	w2, [x20]
	mov	x0, x25
	mov	x1, x19
	bl	_memcpy
	b	LBB0_5
LBB0_3:
	mov	x25, x19
	cbz	w21, LBB0_5
LBB0_4:
	ldr	w0, [x22, #16]
	bl	_SLC_CFG
	bl	_readl
Lloh11:
	adrp	x8, _SLCCFG_DMA_DIR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SLCCFG_DMA_DIR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh14:
	adrp	x9, _SLCCFG_ECC_EN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SLCCFG_ECC_EN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x26]
	orr	w26, w8, w9
	b	LBB0_6
LBB0_5:
	ldr	w0, [x22, #16]
	bl	_SLC_CFG
	bl	_readl
Lloh17:
	adrp	x8, _SLCCFG_ECC_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SLCCFG_ECC_EN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x26]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _SLCCFG_DMA_DIR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SLCCFG_DMA_DIR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	bic	w26, w8, w9
LBB0_6:
	ldr	w0, [x22, #16]
	bl	_SLC_CFG
	mov	x1, x0
	mov	x0, x26
	bl	_writel
Lloh23:
	adrp	x8, _SLCCTRL_ECC_CLEAR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SLCCTRL_ECC_CLEAR@GOTPAGEOFF]
Lloh25:
	ldr	w26, [x8]
	ldr	w0, [x22, #16]
	bl	_SLC_CTRL
	mov	x1, x0
	mov	x0, x26
	bl	_writel
	ldr	w26, [x20]
	ldr	w0, [x22, #16]
	bl	_SLC_TC
	mov	x1, x0
	mov	x0, x26
	bl	_writel
	ldr	w0, [x22, #16]
	bl	_SLC_CTRL
	bl	_readl
Lloh26:
	adrp	x8, _SLCCTRL_DMA_START@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SLCCTRL_DMA_START@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w26, w8, w0
	ldr	w0, [x22, #16]
	bl	_SLC_CTRL
	mov	x1, x0
	mov	x0, x26
	bl	_writel
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.7:
	mov	x27, #0
	mov	x19, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #24]
	bl	_SLC_DMA_DATA
	mov	x1, x0
	ldp	w9, w8, [x23]
	mul	w8, w8, w19
	add	x2, x25, w8, sxtw #2
	ldr	w8, [x20]
	sdiv	w3, w8, w9
	mov	x0, x20
	mov	x4, x24
	bl	_lpc32xx_xmit_dma
	cbnz	w0, LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x23]
	sub	w8, w8, #1
	cmp	x19, x8
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cbnz	w21, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #10
	bl	_udelay
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x22, #24]
	bl	_SLC_ECC
	mov	x1, x0
	ldr	x8, [x22, #8]
	add	x2, x8, x27
	ldr	w4, [x28]
	mov	x0, x20
	mov	w3, #4
	bl	_lpc32xx_xmit_dma
	cbnz	w0, LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x23]
	add	x27, x27, #4
	cmp	x19, x8
	b.lt	LBB0_8
LBB0_14:
	ldr	w0, [x22, #16]
	bl	_SLC_STAT
	bl	_readl
Lloh29:
	adrp	x28, _SLCSTAT_DMA_FIFO@GOTPAGE
Lloh30:
	ldr	x28, [x28, _SLCSTAT_DMA_FIFO@GOTPAGEOFF]
	ldr	w8, [x28]
Lloh31:
	adrp	x25, _EIO@GOTPAGE
Lloh32:
	ldr	x25, [x25, _EIO@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_20
; %bb.15:
	ldr	w0, [x20, #4]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh35:
	adrp	x19, _jiffies@GOTPAGE
Lloh36:
	ldr	x19, [x19, _jiffies@GOTPAGEOFF]
	ldr	x24, [x19]
Lloh37:
	adrp	x8, _LPC32XX_DMA_TIMEOUT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _LPC32XX_DMA_TIMEOUT@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x24, x0, x24
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #16]
	bl	_SLC_STAT
	bl	_readl
	ldr	w8, [x28]
	tst	w8, w0
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x19]
	mov	x1, x24
	bl	_time_before
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	bl	_cpu_relax
	b	LBB0_16
LBB0_19:
	ldr	x0, [x19]
	mov	x1, x24
	bl	_time_before
	cbz	x0, LBB0_22
LBB0_20:
	mov	w26, #0
	b	LBB0_23
LBB0_21:
	mov	x26, x0
	b	LBB0_31
LBB0_22:
	ldr	w0, [x20, #4]
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w8, [x25]
	neg	w26, w8
LBB0_23:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
Lloh42:
	adrp	x24, _SLCCFG_DMA_BURST@GOTPAGE
Lloh43:
	ldr	x24, [x24, _SLCCFG_DMA_BURST@GOTPAGEOFF]
Lloh44:
	adrp	x27, _SLCCFG_DMA_ECC@GOTPAGE
Lloh45:
	ldr	x27, [x27, _SLCCFG_DMA_ECC@GOTPAGEOFF]
	cbnz	w21, LBB0_25
; %bb.24:
	mov	w0, #10
	bl	_udelay
LBB0_25:
	ldr	w0, [x22, #16]
	bl	_SLC_ECC
	bl	_readl
	ldr	x8, [x22, #8]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #2
	stur	w0, [x8, #-4]
	ldr	w0, [x22, #20]
	bl	_dmaengine_terminate_all
	ldr	w0, [x22, #16]
	bl	_SLC_STAT
	bl	_readl
	ldr	w8, [x28]
	tst	w8, w0
	b.ne	LBB0_27
; %bb.26:
	ldr	w0, [x22, #16]
	bl	_SLC_TC
	bl	_readl
	cbz	w0, LBB0_28
LBB0_27:
	ldr	w0, [x20, #4]
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	w8, [x25]
	neg	w26, w8
LBB0_28:
	ldr	w0, [x22, #16]
	bl	_SLC_CTRL
	bl	_readl
Lloh48:
	adrp	x8, _SLCCTRL_DMA_START@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SLCCTRL_DMA_START@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	bic	w23, w0, w8
	ldr	w0, [x22, #16]
	bl	_SLC_CTRL
	mov	x1, x0
	mov	x0, x23
	bl	_writel
	ldr	w0, [x22, #16]
	bl	_SLC_CFG
	bl	_readl
Lloh51:
	adrp	x8, _SLCCFG_DMA_DIR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SLCCFG_DMA_DIR@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _SLCCFG_ECC_EN@GOTPAGE
Lloh55:
	ldr	x9, [x9, _SLCCFG_ECC_EN@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w8, w8, w9
	bic	w23, w0, w8
	ldr	w0, [x22, #16]
	bl	_SLC_CFG
	mov	x1, x0
	mov	x0, x23
	bl	_writel
	cbz	w21, LBB0_31
; %bb.29:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x8, x19
	b.hs	LBB0_31
; %bb.30:
	ldr	x1, [x22]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_memcpy
LBB0_31:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_DEV_TO_MEM,4,2             ; @DMA_DEV_TO_MEM
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.comm	_high_memory,8,3                ; @high_memory
	.comm	_SLCCFG_DMA_DIR,4,2             ; @SLCCFG_DMA_DIR
	.comm	_SLCCFG_ECC_EN,4,2              ; @SLCCFG_ECC_EN
	.comm	_SLCCFG_DMA_ECC,4,2             ; @SLCCFG_DMA_ECC
	.comm	_SLCCFG_DMA_BURST,4,2           ; @SLCCFG_DMA_BURST
	.comm	_SLCCTRL_ECC_CLEAR,4,2          ; @SLCCTRL_ECC_CLEAR
	.comm	_SLCCTRL_DMA_START,4,2          ; @SLCCTRL_DMA_START
	.comm	_SLCSTAT_DMA_FIFO,4,2           ; @SLCSTAT_DMA_FIFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FIFO not empty!\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_LPC32XX_DMA_TIMEOUT,4,2        ; @LPC32XX_DMA_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"FIFO held data too long\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"DMA FIFO failure\n"

	.no_dead_strip	_lpc32xx_xfer
.subsections_via_symbols
