	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl08x_ftdmac020_memcpy_cctl
_pl08x_ftdmac020_memcpy_cctl:           ## @pl08x_ftdmac020_memcpy_cctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.pl08x_ftdmac020_memcpy_cctl(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_PL080_WIDTH_8BIT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	_FTDMAC020_LLI_SRC_WIDTH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %eax
	shll	%cl, %eax
	movq	_FTDMAC020_LLI_DST_WIDTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movq	_FTDMAC020_LLI_TC_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edx
	movl	$1, %edi
	movl	%edx, %esi
	callq	_pl08x_select_bus
	orl	%eax, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal bus width for memcpy, set to 8 bits\n"

	.comm	_PL080_WIDTH_8BIT,4,2           ## @PL080_WIDTH_8BIT
	.comm	_FTDMAC020_LLI_SRC_WIDTH_SHIFT,4,2 ## @FTDMAC020_LLI_SRC_WIDTH_SHIFT
	.comm	_FTDMAC020_LLI_DST_WIDTH_SHIFT,4,2 ## @FTDMAC020_LLI_DST_WIDTH_SHIFT
	.comm	_PL080_WIDTH_16BIT,4,2          ## @PL080_WIDTH_16BIT
	.comm	_PL080_WIDTH_32BIT,4,2          ## @PL080_WIDTH_32BIT
	.comm	_FTDMAC020_LLI_TC_MSK,4,2       ## @FTDMAC020_LLI_TC_MSK
	.no_dead_strip	_pl08x_ftdmac020_memcpy_cctl
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.pl08x_ftdmac020_memcpy_cctl
l_switch.table.pl08x_ftdmac020_memcpy_cctl:
	.quad	_PL080_WIDTH_8BIT
	.quad	_PL080_WIDTH_32BIT
	.quad	_PL080_WIDTH_16BIT

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl08x_ftdmac020_memcpy_cctl
_pl08x_ftdmac020_memcpy_cctl:           ; @pl08x_ftdmac020_memcpy_cctl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.pl08x_ftdmac020_memcpy_cctl@PAGE
Lloh1:
	add	x9, x9, l_switch.table.pl08x_ftdmac020_memcpy_cctl@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _PL080_WIDTH_8BIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PL080_WIDTH_8BIT@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FTDMAC020_LLI_SRC_WIDTH_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FTDMAC020_LLI_SRC_WIDTH_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w8, w9
Lloh9:
	adrp	x10, _FTDMAC020_LLI_DST_WIDTH_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FTDMAC020_LLI_DST_WIDTH_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _FTDMAC020_LLI_TC_MSK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FTDMAC020_LLI_TC_MSK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w20, w9, w8
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w1, [x19]
	mov	w0, #1
	mov	x2, x1
	bl	_pl08x_select_bus
	orr	w20, w0, w20
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal bus width for memcpy, set to 8 bits\n"

	.comm	_PL080_WIDTH_8BIT,4,2           ; @PL080_WIDTH_8BIT
	.comm	_FTDMAC020_LLI_SRC_WIDTH_SHIFT,4,2 ; @FTDMAC020_LLI_SRC_WIDTH_SHIFT
	.comm	_FTDMAC020_LLI_DST_WIDTH_SHIFT,4,2 ; @FTDMAC020_LLI_DST_WIDTH_SHIFT
	.comm	_PL080_WIDTH_16BIT,4,2          ; @PL080_WIDTH_16BIT
	.comm	_PL080_WIDTH_32BIT,4,2          ; @PL080_WIDTH_32BIT
	.comm	_FTDMAC020_LLI_TC_MSK,4,2       ; @FTDMAC020_LLI_TC_MSK
	.no_dead_strip	_pl08x_ftdmac020_memcpy_cctl
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.pl08x_ftdmac020_memcpy_cctl
l_switch.table.pl08x_ftdmac020_memcpy_cctl:
	.quad	_PL080_WIDTH_8BIT
	.quad	_PL080_WIDTH_32BIT
	.quad	_PL080_WIDTH_16BIT

.subsections_via_symbols
