	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl08x_write_lli
_pl08x_write_lli:                       ## @pl08x_write_lli
	.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	$24, %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	%rdx, %r13
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rdi
	cmpq	$0, (%rax)
	movq	_PL080_LLI_SRC@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rdx,%rax,4), %ecx
	movq	_PL080_LLI_DST@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rdx,%rax,4), %r8d
	movq	_PL080_LLI_LLI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rdx,%rax,4), %r9d
	movq	_PL080_LLI_CCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rdx,%rax,4), %r10d
	movl	56(%rsi), %edx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_PL080S_LLI_CCTL2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %r11d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_dev_vdbg
	addq	$32, %rsp
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_dev_vdbg
	addq	$16, %rsp
LBB0_3:
	movq	(%r12), %rax
	movl	(%r13,%rax,4), %edi
	movq	48(%r15), %rsi
	callq	_writel_relaxed
	movq	(%r14), %rax
	movl	(%r13,%rax,4), %edi
	movq	40(%r15), %rsi
	callq	_writel_relaxed
	movq	_PL080_LLI_LLI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %edi
	movq	32(%r15), %rsi
	callq	_writel_relaxed
	cmpq	$0, 24(%r15)
	movq	_PL080_LLI_CCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %ebx
	je	LBB0_4
## %bb.5:
	movq	_FTDMAC020_LLI_TRANSFER_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	movq	_FTDMAC020_CH_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel_relaxed
	movq	_FTDMAC020_LLI_TC_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	movq	_FTDMAC020_CH_CSR_TC_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	movq	_FTDMAC020_LLI_SRC_WIDTH_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_FTDMAC020_LLI_SRC_WIDTH_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	andl	%ebx, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	movq	_FTDMAC020_LLI_DST_WIDTH_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_FTDMAC020_LLI_DST_WIDTH_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_FTDMAC020_CH_CSR_DST_WIDTH_SHIFT@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	andl	%ebx, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	movq	_FTDMAC020_LLI_SRCAD_CTL_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_FTDMAC020_CH_CSR_SRCAD_CTL_SHIFT@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	movq	_FTDMAC020_LLI_SRCAD_CTL_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edx
	orl	%edi, %esi
	movq	_FTDMAC020_LLI_DSTAD_CTL_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_FTDMAC020_CH_CSR_DSTAD_CTL_SHIFT@GOTPCREL(%rip), %rdi
	subl	(%rdi), %ecx
	movq	_FTDMAC020_LLI_DSTAD_CTL_MSK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%ebx, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	orl	%esi, %edx
	movq	_FTDMAC020_LLI_SRC_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	je	LBB0_9
## %bb.8:
	movq	_FTDMAC020_CH_CSR_SRC_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_9:
	orl	%edi, %edx
	movq	_FTDMAC020_LLI_DST_SEL@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ebx
	je	LBB0_11
## %bb.10:
	movq	_FTDMAC020_CH_CSR_DST_SEL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
LBB0_11:
	orl	%ebx, %ecx
	orl	%edx, %eax
	movq	8(%r14), %rdx
	movl	(%rdx), %esi
	addl	$-128, %esi
	cmpl	$6, %esi
	ja	LBB0_12
## %bb.13:
	movslq	%esi, %rsi
	leaq	l_switch.table.pl08x_write_lli(%rip), %rdi
	movq	(%rdi,%rsi,8), %rsi
	jmp	LBB0_14
LBB0_4:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_12:
	movq	_PL080_BSIZE_1@GOTPCREL(%rip), %rsi
LBB0_14:
	orl	%ecx, %eax
	movl	(%rsi), %edi
	movq	_FTDMAC020_CH_CSR_SRC_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	xorl	%esi, %esi
	cmpq	$0, 16(%rdx)
	movl	$0, %ecx
	je	LBB0_16
## %bb.15:
	movq	_FTDMAC020_CH_CSR_PROT2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_16:
	orl	%edi, %eax
	cmpq	$0, 8(%rdx)
	je	LBB0_18
## %bb.17:
	movq	_FTDMAC020_CH_CSR_PROT3@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_18:
	orl	%esi, %ecx
	orl	%ecx, %eax
	movq	_FTDMAC020_CH_CSR_PROT1@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %ebx
LBB0_19:
	movq	16(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.20:
	movq	_PL080S_LLI_CCTL2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %edi
	movq	_PL080S_CH_CONTROL2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel_relaxed
LBB0_21:
	movl	(%r15), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRITE channel %d: csrc=0x%08x, cdst=0x%08x, clli=0x%08x, cctl=0x%08x, cctl2=0x%08x, ccfg=0x%08x\n"

	.comm	_PL080_LLI_SRC,8,3              ## @PL080_LLI_SRC
	.comm	_PL080_LLI_DST,8,3              ## @PL080_LLI_DST
	.comm	_PL080_LLI_LLI,8,3              ## @PL080_LLI_LLI
	.comm	_PL080_LLI_CCTL,8,3             ## @PL080_LLI_CCTL
	.comm	_PL080S_LLI_CCTL2,8,3           ## @PL080S_LLI_CCTL2
L_.str.1:                               ## @.str.1
	.asciz	"WRITE channel %d: csrc=0x%08x, cdst=0x%08x, clli=0x%08x, cctl=0x%08x, ccfg=0x%08x\n"

	.comm	_FTDMAC020_LLI_TRANSFER_SIZE_MASK,4,2 ## @FTDMAC020_LLI_TRANSFER_SIZE_MASK
	.comm	_FTDMAC020_CH_SIZE,8,3          ## @FTDMAC020_CH_SIZE
	.comm	_FTDMAC020_LLI_TC_MSK,4,2       ## @FTDMAC020_LLI_TC_MSK
	.comm	_FTDMAC020_CH_CSR_TC_MSK,4,2    ## @FTDMAC020_CH_CSR_TC_MSK
	.comm	_FTDMAC020_LLI_SRC_WIDTH_MSK,4,2 ## @FTDMAC020_LLI_SRC_WIDTH_MSK
	.comm	_FTDMAC020_LLI_SRC_WIDTH_SHIFT,4,2 ## @FTDMAC020_LLI_SRC_WIDTH_SHIFT
	.comm	_FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT,4,2 ## @FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT
	.comm	_FTDMAC020_LLI_DST_WIDTH_MSK,4,2 ## @FTDMAC020_LLI_DST_WIDTH_MSK
	.comm	_FTDMAC020_LLI_DST_WIDTH_SHIFT,4,2 ## @FTDMAC020_LLI_DST_WIDTH_SHIFT
	.comm	_FTDMAC020_CH_CSR_DST_WIDTH_SHIFT,4,2 ## @FTDMAC020_CH_CSR_DST_WIDTH_SHIFT
	.comm	_FTDMAC020_LLI_SRCAD_CTL_MSK,4,2 ## @FTDMAC020_LLI_SRCAD_CTL_MSK
	.comm	_FTDMAC020_LLI_SRCAD_CTL_SHIFT,4,2 ## @FTDMAC020_LLI_SRCAD_CTL_SHIFT
	.comm	_FTDMAC020_CH_CSR_SRCAD_CTL_SHIFT,4,2 ## @FTDMAC020_CH_CSR_SRCAD_CTL_SHIFT
	.comm	_FTDMAC020_LLI_DSTAD_CTL_MSK,4,2 ## @FTDMAC020_LLI_DSTAD_CTL_MSK
	.comm	_FTDMAC020_LLI_DSTAD_CTL_SHIFT,4,2 ## @FTDMAC020_LLI_DSTAD_CTL_SHIFT
	.comm	_FTDMAC020_CH_CSR_DSTAD_CTL_SHIFT,4,2 ## @FTDMAC020_CH_CSR_DSTAD_CTL_SHIFT
	.comm	_FTDMAC020_LLI_SRC_SEL,4,2      ## @FTDMAC020_LLI_SRC_SEL
	.comm	_FTDMAC020_CH_CSR_SRC_SEL,4,2   ## @FTDMAC020_CH_CSR_SRC_SEL
	.comm	_FTDMAC020_LLI_DST_SEL,4,2      ## @FTDMAC020_LLI_DST_SEL
	.comm	_FTDMAC020_CH_CSR_DST_SEL,4,2   ## @FTDMAC020_CH_CSR_DST_SEL
	.comm	_PL080_BSIZE_1,4,2              ## @PL080_BSIZE_1
	.comm	_FTDMAC020_CH_CSR_SRC_SIZE_SHIFT,4,2 ## @FTDMAC020_CH_CSR_SRC_SIZE_SHIFT
	.comm	_PL080_BSIZE_4,4,2              ## @PL080_BSIZE_4
	.comm	_PL080_BSIZE_8,4,2              ## @PL080_BSIZE_8
	.comm	_PL080_BSIZE_16,4,2             ## @PL080_BSIZE_16
	.comm	_PL080_BSIZE_32,4,2             ## @PL080_BSIZE_32
	.comm	_PL080_BSIZE_64,4,2             ## @PL080_BSIZE_64
	.comm	_PL080_BSIZE_128,4,2            ## @PL080_BSIZE_128
	.comm	_PL080_BSIZE_256,4,2            ## @PL080_BSIZE_256
	.comm	_FTDMAC020_CH_CSR_PROT2,4,2     ## @FTDMAC020_CH_CSR_PROT2
	.comm	_FTDMAC020_CH_CSR_PROT3,4,2     ## @FTDMAC020_CH_CSR_PROT3
	.comm	_FTDMAC020_CH_CSR_PROT1,4,2     ## @FTDMAC020_CH_CSR_PROT1
	.comm	_PL080S_CH_CONTROL2,8,3         ## @PL080S_CH_CONTROL2
	.no_dead_strip	_pl08x_write_lli
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.pl08x_write_lli
l_switch.table.pl08x_write_lli:
	.quad	_PL080_BSIZE_8
	.quad	_PL080_BSIZE_64
	.quad	_PL080_BSIZE_4
	.quad	_PL080_BSIZE_32
	.quad	_PL080_BSIZE_256
	.quad	_PL080_BSIZE_16
	.quad	_PL080_BSIZE_128

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl08x_write_lli
_pl08x_write_lli:                       ; @pl08x_write_lli
	.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	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x27, _PL080_LLI_SRC@GOTPAGE
Lloh1:
	ldr	x27, [x27, _PL080_LLI_SRC@GOTPAGEOFF]
	ldr	x8, [x0]
	ldr	x9, [x27]
	ldr	w3, [x2, x9, lsl #2]
Lloh2:
	adrp	x26, _PL080_LLI_DST@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PL080_LLI_DST@GOTPAGEOFF]
	ldr	x8, [x8]
	ldr	x9, [x26]
	ldr	w4, [x2, x9, lsl #2]
Lloh4:
	adrp	x25, _PL080_LLI_LLI@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PL080_LLI_LLI@GOTPAGEOFF]
	ldr	x0, [x0, #16]
	ldr	x9, [x25]
	ldr	w5, [x2, x9, lsl #2]
Lloh6:
	adrp	x23, _PL080_LLI_CCTL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PL080_LLI_CCTL@GOTPAGEOFF]
	ldr	w2, [x1, #56]
	ldr	x9, [x23]
	ldr	w6, [x21, x9, lsl #2]
Lloh8:
	adrp	x24, _PL080S_LLI_CCTL2@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PL080S_LLI_CCTL2@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x24]
	ldr	w7, [x21, x8, lsl #2]
	str	x19, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x7, x19
LBB0_3:
	bl	_dev_vdbg
	ldr	x8, [x27]
	ldr	w0, [x21, x8, lsl #2]
	ldr	x1, [x20, #48]
	bl	_writel_relaxed
	ldr	x8, [x26]
	ldr	w0, [x21, x8, lsl #2]
	ldr	x1, [x20, #40]
	bl	_writel_relaxed
	ldr	x8, [x25]
	ldr	w0, [x21, x8, lsl #2]
	ldr	x1, [x20, #32]
	bl	_writel_relaxed
	ldr	x8, [x20, #24]
	ldr	x9, [x23]
	ldr	w23, [x21, x9, lsl #2]
	cbz	x8, LBB0_8
; %bb.4:
Lloh14:
	adrp	x8, _FTDMAC020_LLI_TRANSFER_SIZE_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FTDMAC020_LLI_TRANSFER_SIZE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w0, w8, w23
	ldr	x8, [x20, #8]
Lloh17:
	adrp	x9, _FTDMAC020_CH_SIZE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FTDMAC020_CH_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh20:
	adrp	x8, _FTDMAC020_LLI_TC_MSK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FTDMAC020_LLI_TC_MSK@GOTPAGEOFF]
Lloh22:
	adrp	x9, _FTDMAC020_CH_CSR_TC_MSK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _FTDMAC020_CH_CSR_TC_MSK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	ldr	w9, [x9]
	tst	w8, w23
	csel	w8, wzr, w9, eq
Lloh26:
	adrp	x9, _FTDMAC020_LLI_SRC_WIDTH_MSK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FTDMAC020_LLI_SRC_WIDTH_MSK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	and	w9, w9, w23
Lloh29:
	adrp	x10, _FTDMAC020_LLI_SRC_WIDTH_SHIFT@GOTPAGE
Lloh30:
	ldr	x10, [x10, _FTDMAC020_LLI_SRC_WIDTH_SHIFT@GOTPAGEOFF]
Lloh31:
	adrp	x11, _FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT@GOTPAGE
Lloh32:
	ldr	x11, [x11, _FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
Lloh34:
	ldr	w11, [x11]
	sub	w10, w10, w11
	asr	w9, w9, w10
Lloh35:
	adrp	x10, _FTDMAC020_LLI_DST_WIDTH_MSK@GOTPAGE
Lloh36:
	ldr	x10, [x10, _FTDMAC020_LLI_DST_WIDTH_MSK@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh37:
	ldr	w9, [x10]
	and	w9, w9, w23
Lloh38:
	adrp	x10, _FTDMAC020_LLI_DST_WIDTH_SHIFT@GOTPAGE
Lloh39:
	ldr	x10, [x10, _FTDMAC020_LLI_DST_WIDTH_SHIFT@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
Lloh41:
	adrp	x11, _FTDMAC020_CH_CSR_DST_WIDTH_SHIFT@GOTPAGE
Lloh42:
	ldr	x11, [x11, _FTDMAC020_CH_CSR_DST_WIDTH_SHIFT@GOTPAGEOFF]
Lloh43:
	ldr	w11, [x11]
	sub	w10, w10, w11
	asr	w9, w9, w10
	orr	w8, w8, w9
Lloh44:
	adrp	x9, _FTDMAC020_LLI_SRCAD_CTL_MSK@GOTPAGE
Lloh45:
	ldr	x9, [x9, _FTDMAC020_LLI_SRCAD_CTL_MSK@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	and	w9, w9, w23
Lloh47:
	adrp	x10, _FTDMAC020_LLI_SRCAD_CTL_SHIFT@GOTPAGE
Lloh48:
	ldr	x10, [x10, _FTDMAC020_LLI_SRCAD_CTL_SHIFT@GOTPAGEOFF]
Lloh49:
	ldr	w10, [x10]
Lloh50:
	adrp	x11, _FTDMAC020_CH_CSR_SRCAD_CTL_SHIFT@GOTPAGE
Lloh51:
	ldr	x11, [x11, _FTDMAC020_CH_CSR_SRCAD_CTL_SHIFT@GOTPAGEOFF]
Lloh52:
	ldr	w11, [x11]
	sub	w10, w10, w11
	asr	w9, w9, w10
	orr	w8, w8, w9
Lloh53:
	adrp	x9, _FTDMAC020_LLI_DSTAD_CTL_MSK@GOTPAGE
Lloh54:
	ldr	x9, [x9, _FTDMAC020_LLI_DSTAD_CTL_MSK@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
Lloh56:
	adrp	x10, _FTDMAC020_LLI_DSTAD_CTL_SHIFT@GOTPAGE
Lloh57:
	ldr	x10, [x10, _FTDMAC020_LLI_DSTAD_CTL_SHIFT@GOTPAGEOFF]
	and	w9, w9, w23
Lloh58:
	ldr	w10, [x10]
Lloh59:
	adrp	x11, _FTDMAC020_CH_CSR_DSTAD_CTL_SHIFT@GOTPAGE
Lloh60:
	ldr	x11, [x11, _FTDMAC020_CH_CSR_DSTAD_CTL_SHIFT@GOTPAGEOFF]
Lloh61:
	ldr	w11, [x11]
	sub	w10, w10, w11
	asr	w9, w9, w10
	orr	w8, w8, w9
Lloh62:
	adrp	x9, _FTDMAC020_LLI_SRC_SEL@GOTPAGE
Lloh63:
	ldr	x9, [x9, _FTDMAC020_LLI_SRC_SEL@GOTPAGEOFF]
Lloh64:
	adrp	x10, _FTDMAC020_CH_CSR_SRC_SEL@GOTPAGE
Lloh65:
	ldr	x10, [x10, _FTDMAC020_CH_CSR_SRC_SEL@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
Lloh67:
	ldr	w10, [x10]
	tst	w9, w23
	csel	w9, wzr, w10, eq
Lloh68:
	adrp	x10, _FTDMAC020_LLI_DST_SEL@GOTPAGE
Lloh69:
	ldr	x10, [x10, _FTDMAC020_LLI_DST_SEL@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh70:
	ldr	w9, [x10]
Lloh71:
	adrp	x10, _FTDMAC020_CH_CSR_DST_SEL@GOTPAGE
Lloh72:
	ldr	x10, [x10, _FTDMAC020_CH_CSR_DST_SEL@GOTPAGEOFF]
Lloh73:
	ldr	w10, [x10]
	tst	w9, w23
	csel	w9, wzr, w10, eq
	orr	w9, w8, w9
	ldr	x8, [x22, #8]
	ldr	w10, [x8]
	sub	w10, w10, #128
	cmp	w10, #6
	b.hi	LBB0_6
; %bb.5:
Lloh74:
	adrp	x11, l_switch.table.pl08x_write_lli@PAGE
Lloh75:
	add	x11, x11, l_switch.table.pl08x_write_lli@PAGEOFF
	ldr	x10, [x11, w10, sxtw #3]
	b	LBB0_7
LBB0_6:
Lloh76:
	adrp	x10, _PL080_BSIZE_1@GOTPAGE
Lloh77:
	ldr	x10, [x10, _PL080_BSIZE_1@GOTPAGEOFF]
LBB0_7:
	ldr	w10, [x10]
Lloh78:
	adrp	x11, _FTDMAC020_CH_CSR_SRC_SIZE_SHIFT@GOTPAGE
Lloh79:
	ldr	x11, [x11, _FTDMAC020_CH_CSR_SRC_SIZE_SHIFT@GOTPAGEOFF]
Lloh80:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w9, w9, w10
Lloh81:
	adrp	x10, _FTDMAC020_CH_CSR_PROT2@GOTPAGE
Lloh82:
	ldr	x10, [x10, _FTDMAC020_CH_CSR_PROT2@GOTPAGEOFF]
Lloh83:
	ldr	w10, [x10]
	ldp	x8, x11, [x8, #8]
	cmp	x11, #0
	csel	w10, wzr, w10, eq
	orr	w9, w9, w10
Lloh84:
	adrp	x10, _FTDMAC020_CH_CSR_PROT3@GOTPAGE
Lloh85:
	ldr	x10, [x10, _FTDMAC020_CH_CSR_PROT3@GOTPAGEOFF]
Lloh86:
	ldr	w10, [x10]
	cmp	x8, #0
	csel	w8, wzr, w10, eq
	orr	w8, w9, w8
Lloh87:
	adrp	x9, _FTDMAC020_CH_CSR_PROT1@GOTPAGE
Lloh88:
	ldr	x9, [x9, _FTDMAC020_CH_CSR_PROT1@GOTPAGEOFF]
Lloh89:
	ldr	w9, [x9]
	orr	w23, w8, w9
LBB0_8:
	ldr	x1, [x20, #16]
	mov	x0, x23
	bl	_writel_relaxed
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x24]
	ldr	w0, [x21, x8, lsl #2]
	ldr	x8, [x20, #8]
Lloh90:
	adrp	x9, _PL080S_CH_CONTROL2@GOTPAGE
Lloh91:
	ldr	x9, [x9, _PL080S_CH_CONTROL2@GOTPAGEOFF]
Lloh92:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_10:
	ldr	w1, [x20]
	mov	x0, x19
	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
	b	_writel
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh66
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRITE channel %d: csrc=0x%08x, cdst=0x%08x, clli=0x%08x, cctl=0x%08x, cctl2=0x%08x, ccfg=0x%08x\n"

	.comm	_PL080_LLI_SRC,8,3              ; @PL080_LLI_SRC
	.comm	_PL080_LLI_DST,8,3              ; @PL080_LLI_DST
	.comm	_PL080_LLI_LLI,8,3              ; @PL080_LLI_LLI
	.comm	_PL080_LLI_CCTL,8,3             ; @PL080_LLI_CCTL
	.comm	_PL080S_LLI_CCTL2,8,3           ; @PL080S_LLI_CCTL2
l_.str.1:                               ; @.str.1
	.asciz	"WRITE channel %d: csrc=0x%08x, cdst=0x%08x, clli=0x%08x, cctl=0x%08x, ccfg=0x%08x\n"

	.comm	_FTDMAC020_LLI_TRANSFER_SIZE_MASK,4,2 ; @FTDMAC020_LLI_TRANSFER_SIZE_MASK
	.comm	_FTDMAC020_CH_SIZE,8,3          ; @FTDMAC020_CH_SIZE
	.comm	_FTDMAC020_LLI_TC_MSK,4,2       ; @FTDMAC020_LLI_TC_MSK
	.comm	_FTDMAC020_CH_CSR_TC_MSK,4,2    ; @FTDMAC020_CH_CSR_TC_MSK
	.comm	_FTDMAC020_LLI_SRC_WIDTH_MSK,4,2 ; @FTDMAC020_LLI_SRC_WIDTH_MSK
	.comm	_FTDMAC020_LLI_SRC_WIDTH_SHIFT,4,2 ; @FTDMAC020_LLI_SRC_WIDTH_SHIFT
	.comm	_FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT,4,2 ; @FTDMAC020_CH_CSR_SRC_WIDTH_SHIFT
	.comm	_FTDMAC020_LLI_DST_WIDTH_MSK,4,2 ; @FTDMAC020_LLI_DST_WIDTH_MSK
	.comm	_FTDMAC020_LLI_DST_WIDTH_SHIFT,4,2 ; @FTDMAC020_LLI_DST_WIDTH_SHIFT
	.comm	_FTDMAC020_CH_CSR_DST_WIDTH_SHIFT,4,2 ; @FTDMAC020_CH_CSR_DST_WIDTH_SHIFT
	.comm	_FTDMAC020_LLI_SRCAD_CTL_MSK,4,2 ; @FTDMAC020_LLI_SRCAD_CTL_MSK
	.comm	_FTDMAC020_LLI_SRCAD_CTL_SHIFT,4,2 ; @FTDMAC020_LLI_SRCAD_CTL_SHIFT
	.comm	_FTDMAC020_CH_CSR_SRCAD_CTL_SHIFT,4,2 ; @FTDMAC020_CH_CSR_SRCAD_CTL_SHIFT
	.comm	_FTDMAC020_LLI_DSTAD_CTL_MSK,4,2 ; @FTDMAC020_LLI_DSTAD_CTL_MSK
	.comm	_FTDMAC020_LLI_DSTAD_CTL_SHIFT,4,2 ; @FTDMAC020_LLI_DSTAD_CTL_SHIFT
	.comm	_FTDMAC020_CH_CSR_DSTAD_CTL_SHIFT,4,2 ; @FTDMAC020_CH_CSR_DSTAD_CTL_SHIFT
	.comm	_FTDMAC020_LLI_SRC_SEL,4,2      ; @FTDMAC020_LLI_SRC_SEL
	.comm	_FTDMAC020_CH_CSR_SRC_SEL,4,2   ; @FTDMAC020_CH_CSR_SRC_SEL
	.comm	_FTDMAC020_LLI_DST_SEL,4,2      ; @FTDMAC020_LLI_DST_SEL
	.comm	_FTDMAC020_CH_CSR_DST_SEL,4,2   ; @FTDMAC020_CH_CSR_DST_SEL
	.comm	_PL080_BSIZE_1,4,2              ; @PL080_BSIZE_1
	.comm	_FTDMAC020_CH_CSR_SRC_SIZE_SHIFT,4,2 ; @FTDMAC020_CH_CSR_SRC_SIZE_SHIFT
	.comm	_PL080_BSIZE_4,4,2              ; @PL080_BSIZE_4
	.comm	_PL080_BSIZE_8,4,2              ; @PL080_BSIZE_8
	.comm	_PL080_BSIZE_16,4,2             ; @PL080_BSIZE_16
	.comm	_PL080_BSIZE_32,4,2             ; @PL080_BSIZE_32
	.comm	_PL080_BSIZE_64,4,2             ; @PL080_BSIZE_64
	.comm	_PL080_BSIZE_128,4,2            ; @PL080_BSIZE_128
	.comm	_PL080_BSIZE_256,4,2            ; @PL080_BSIZE_256
	.comm	_FTDMAC020_CH_CSR_PROT2,4,2     ; @FTDMAC020_CH_CSR_PROT2
	.comm	_FTDMAC020_CH_CSR_PROT3,4,2     ; @FTDMAC020_CH_CSR_PROT3
	.comm	_FTDMAC020_CH_CSR_PROT1,4,2     ; @FTDMAC020_CH_CSR_PROT1
	.comm	_PL080S_CH_CONTROL2,8,3         ; @PL080S_CH_CONTROL2
	.no_dead_strip	_pl08x_write_lli
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.pl08x_write_lli
l_switch.table.pl08x_write_lli:
	.quad	_PL080_BSIZE_8
	.quad	_PL080_BSIZE_64
	.quad	_PL080_BSIZE_4
	.quad	_PL080_BSIZE_32
	.quad	_PL080_BSIZE_256
	.quad	_PL080_BSIZE_16
	.quad	_PL080_BSIZE_128

.subsections_via_symbols
