	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl08x_memcpy_cctl
_pl08x_memcpy_cctl:                     ## @pl08x_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	_PL080_BSIZE_1@GOTPCREL(%rip), %rbx
	movl	$-131, %ecx
	addl	(%rax), %ecx
	cmpl	$7, %ecx
	ja	LBB0_2
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_PL080_BSIZE_8@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_2:
	movq	24(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	16(%r14), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_PL080_BSIZE_64@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_3:
	movq	_PL080_BSIZE_4@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_6:
	movq	_PL080_BSIZE_32@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_9:
	movq	_PL080_BSIZE_256@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_5:
	movq	_PL080_BSIZE_16@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_8:
	movq	_PL080_BSIZE_128@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%rbx), %r15d
	movq	_PL080_CONTROL_SB_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%r15d, %r12d
	shll	%cl, %r12d
	movq	_PL080_CONTROL_DB_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r15d
	movl	4(%rax), %ecx
	movq	_PL080_WIDTH_8BIT@GOTPCREL(%rip), %rbx
	cmpl	$128, %ecx
	je	LBB0_16
## %bb.11:
	cmpl	$129, %ecx
	je	LBB0_15
## %bb.12:
	cmpl	$130, %ecx
	jne	LBB0_13
## %bb.14:
	movq	_PL080_WIDTH_16BIT@GOTPCREL(%rip), %rbx
	jmp	LBB0_16
LBB0_15:
	movq	_PL080_WIDTH_32BIT@GOTPCREL(%rip), %rbx
	jmp	LBB0_16
LBB0_13:
	movq	24(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	16(%r14), %rax
LBB0_16:
	movl	(%rbx), %ebx
	movq	_PL080_CONTROL_SWIDTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%ebx, %esi
	shll	%cl, %esi
	movq	_PL080_CONTROL_DWIDTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	xorl	%ecx, %ecx
	cmpq	$0, 16(%rax)
	movl	$0, %edx
	je	LBB0_18
## %bb.17:
	movq	_PL080_CONTROL_PROT_BUFF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_18:
	orl	%r12d, %r15d
	orl	%esi, %ebx
	cmpq	$0, 8(%rax)
	je	LBB0_20
## %bb.19:
	movq	_PL080_CONTROL_PROT_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_20:
	movq	_PL080_CONTROL_PROT_SYS@GOTPCREL(%rip), %rax
	movq	_PL080_CONTROL_SRC_INCR@GOTPCREL(%rip), %rsi
	movq	_PL080_CONTROL_DST_INCR@GOTPCREL(%rip), %rdi
	orl	%r15d, %ebx
	orl	%edx, %ebx
	orl	%ecx, %ebx
	orl	(%rax), %ebx
	orl	(%rsi), %ebx
	orl	(%rdi), %ebx
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.21:
	movl	(%r14), %edx
	xorl	%edi, %edi
	movl	%edx, %esi
	callq	_pl08x_select_bus
	orl	%eax, %ebx
LBB0_22:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal burst size for memcpy, set to 1\n"

	.comm	_PL080_BSIZE_1,4,2              ## @PL080_BSIZE_1
	.comm	_PL080_CONTROL_SB_SIZE_SHIFT,4,2 ## @PL080_CONTROL_SB_SIZE_SHIFT
	.comm	_PL080_CONTROL_DB_SIZE_SHIFT,4,2 ## @PL080_CONTROL_DB_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
L_.str.1:                               ## @.str.1
	.asciz	"illegal bus width for memcpy, set to 8 bits\n"

	.comm	_PL080_WIDTH_8BIT,4,2           ## @PL080_WIDTH_8BIT
	.comm	_PL080_CONTROL_SWIDTH_SHIFT,4,2 ## @PL080_CONTROL_SWIDTH_SHIFT
	.comm	_PL080_CONTROL_DWIDTH_SHIFT,4,2 ## @PL080_CONTROL_DWIDTH_SHIFT
	.comm	_PL080_WIDTH_16BIT,4,2          ## @PL080_WIDTH_16BIT
	.comm	_PL080_WIDTH_32BIT,4,2          ## @PL080_WIDTH_32BIT
	.comm	_PL080_CONTROL_PROT_BUFF,4,2    ## @PL080_CONTROL_PROT_BUFF
	.comm	_PL080_CONTROL_PROT_CACHE,4,2   ## @PL080_CONTROL_PROT_CACHE
	.comm	_PL080_CONTROL_PROT_SYS,4,2     ## @PL080_CONTROL_PROT_SYS
	.comm	_PL080_CONTROL_SRC_INCR,4,2     ## @PL080_CONTROL_SRC_INCR
	.comm	_PL080_CONTROL_DST_INCR,4,2     ## @PL080_CONTROL_DST_INCR
	.no_dead_strip	_pl08x_memcpy_cctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl08x_memcpy_cctl
_pl08x_memcpy_cctl:                     ; @pl08x_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, #16]
	ldr	w9, [x8]
	sub	w10, w9, #131
	cmp	w10, #7
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _PL080_BSIZE_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PL080_BSIZE_1@GOTPAGEOFF]
Lloh2:
	adrp	x11, lJTI0_0@PAGE
Lloh3:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
Lloh4:
	adrp	x9, _PL080_BSIZE_8@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PL080_BSIZE_8@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
	ldr	x0, [x19, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, _PL080_BSIZE_1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PL080_BSIZE_1@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
Lloh10:
	adrp	x9, _PL080_BSIZE_64@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PL080_BSIZE_64@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh12:
	adrp	x9, _PL080_BSIZE_4@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PL080_BSIZE_4@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh14:
	adrp	x9, _PL080_BSIZE_32@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PL080_BSIZE_32@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh16:
	adrp	x9, _PL080_BSIZE_256@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PL080_BSIZE_256@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh18:
	adrp	x9, _PL080_BSIZE_16@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PL080_BSIZE_16@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x9, _PL080_BSIZE_128@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PL080_BSIZE_128@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _PL080_CONTROL_SB_SIZE_SHIFT@GOTPAGE
Lloh23:
	ldr	x10, [x10, _PL080_CONTROL_SB_SIZE_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
Lloh25:
	adrp	x11, _PL080_CONTROL_DB_SIZE_SHIFT@GOTPAGE
Lloh26:
	ldr	x11, [x11, _PL080_CONTROL_DB_SIZE_SHIFT@GOTPAGEOFF]
	lsl	w10, w9, w10
Lloh27:
	ldr	w11, [x11]
	lsl	w9, w9, w11
	orr	w20, w9, w10
	ldr	w9, [x8, #4]
	cmp	w9, #128
	b.eq	LBB0_16
; %bb.11:
	cmp	w9, #129
	b.eq	LBB0_14
; %bb.12:
	cmp	w9, #130
	b.ne	LBB0_15
; %bb.13:
Lloh28:
	adrp	x9, _PL080_WIDTH_16BIT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PL080_WIDTH_16BIT@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
Lloh30:
	adrp	x9, _PL080_WIDTH_32BIT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PL080_WIDTH_32BIT@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
	ldr	x0, [x19, #24]
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x8, [x19, #16]
LBB0_16:
Lloh34:
	adrp	x9, _PL080_WIDTH_8BIT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PL080_WIDTH_8BIT@GOTPAGEOFF]
LBB0_17:
	ldr	w9, [x9]
Lloh36:
	adrp	x10, _PL080_CONTROL_SWIDTH_SHIFT@GOTPAGE
Lloh37:
	ldr	x10, [x10, _PL080_CONTROL_SWIDTH_SHIFT@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	lsl	w10, w9, w10
Lloh39:
	adrp	x11, _PL080_CONTROL_DWIDTH_SHIFT@GOTPAGE
Lloh40:
	ldr	x11, [x11, _PL080_CONTROL_DWIDTH_SHIFT@GOTPAGEOFF]
Lloh41:
	ldr	w11, [x11]
	lsl	w9, w9, w11
	orr	w9, w9, w10
Lloh42:
	adrp	x10, _PL080_CONTROL_PROT_BUFF@GOTPAGE
Lloh43:
	ldr	x10, [x10, _PL080_CONTROL_PROT_BUFF@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	ldp	x8, x11, [x8, #8]
	cmp	x11, #0
	csel	w10, wzr, w10, eq
Lloh45:
	adrp	x11, _PL080_CONTROL_PROT_CACHE@GOTPAGE
Lloh46:
	ldr	x11, [x11, _PL080_CONTROL_PROT_CACHE@GOTPAGEOFF]
Lloh47:
	ldr	w11, [x11]
	cmp	x8, #0
	csel	w8, wzr, w11, eq
Lloh48:
	adrp	x11, _PL080_CONTROL_PROT_SYS@GOTPAGE
Lloh49:
	ldr	x11, [x11, _PL080_CONTROL_PROT_SYS@GOTPAGEOFF]
Lloh50:
	ldr	w11, [x11]
Lloh51:
	adrp	x12, _PL080_CONTROL_SRC_INCR@GOTPAGE
Lloh52:
	ldr	x12, [x12, _PL080_CONTROL_SRC_INCR@GOTPAGEOFF]
Lloh53:
	ldr	w12, [x12]
Lloh54:
	adrp	x13, _PL080_CONTROL_DST_INCR@GOTPAGE
Lloh55:
	ldr	x13, [x13, _PL080_CONTROL_DST_INCR@GOTPAGEOFF]
Lloh56:
	ldr	w13, [x13]
	orr	w9, w9, w20
	orr	w9, w9, w10
	orr	w8, w9, w8
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w20, w8, w13
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.18:
	ldr	w1, [x19]
	mov	w0, #0
	mov	x2, x1
	bl	_pl08x_select_bus
	orr	w20, w0, w20
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal burst size for memcpy, set to 1\n"

	.comm	_PL080_BSIZE_1,4,2              ; @PL080_BSIZE_1
	.comm	_PL080_CONTROL_SB_SIZE_SHIFT,4,2 ; @PL080_CONTROL_SB_SIZE_SHIFT
	.comm	_PL080_CONTROL_DB_SIZE_SHIFT,4,2 ; @PL080_CONTROL_DB_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
l_.str.1:                               ; @.str.1
	.asciz	"illegal bus width for memcpy, set to 8 bits\n"

	.comm	_PL080_WIDTH_8BIT,4,2           ; @PL080_WIDTH_8BIT
	.comm	_PL080_CONTROL_SWIDTH_SHIFT,4,2 ; @PL080_CONTROL_SWIDTH_SHIFT
	.comm	_PL080_CONTROL_DWIDTH_SHIFT,4,2 ; @PL080_CONTROL_DWIDTH_SHIFT
	.comm	_PL080_WIDTH_16BIT,4,2          ; @PL080_WIDTH_16BIT
	.comm	_PL080_WIDTH_32BIT,4,2          ; @PL080_WIDTH_32BIT
	.comm	_PL080_CONTROL_PROT_BUFF,4,2    ; @PL080_CONTROL_PROT_BUFF
	.comm	_PL080_CONTROL_PROT_CACHE,4,2   ; @PL080_CONTROL_PROT_CACHE
	.comm	_PL080_CONTROL_PROT_SYS,4,2     ; @PL080_CONTROL_PROT_SYS
	.comm	_PL080_CONTROL_SRC_INCR,4,2     ; @PL080_CONTROL_SRC_INCR
	.comm	_PL080_CONTROL_DST_INCR,4,2     ; @PL080_CONTROL_DST_INCR
	.no_dead_strip	_pl08x_memcpy_cctl
.subsections_via_symbols
