	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function lpc32xx_slc_ecc_copy
LCPI0_0:
	.long	16777212                        ## 0xfffffc
	.long	16777212                        ## 0xfffffc
	.space	4
	.space	4
LCPI0_1:
	.long	16777215                        ## 0xffffff
	.long	16777215                        ## 0xffffff
	.space	4
	.space	4
LCPI0_2:
	.byte	0                               ## 0x0
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	4                               ## 0x4
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
LCPI0_3:
	.byte	1                               ## 0x1
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	5                               ## 0x5
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_lpc32xx_slc_ecc_copy:                  ## @lpc32xx_slc_ecc_copy
	.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
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	leal	(%rdx,%rdx,2), %eax
	movslq	%eax, %r10
	cmpq	$4, %r10
	movl	$3, %ecx
	cmovgeq	%r10, %rcx
	decq	%rcx
	movabsq	$-6148914691236517205, %r11     ## imm = 0xAAAAAAAAAAAAAAAB
	movq	%rcx, %rax
	mulq	%r11
	cmpq	$3, %rcx
	jae	LBB0_3
## %bb.2:
	xorl	%r9d, %r9d
	jmp	LBB0_6
LBB0_3:
	movq	%rdx, %r8
	shrq	%r8
	incq	%r8
	movabsq	$9223372036854775806, %r14      ## imm = 0x7FFFFFFFFFFFFFFE
	andq	%r8, %r14
	leaq	(%r14,%r14,2), %r9
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <16777212,16777212,u,u>
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <16777215,16777215,u,u>
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [0,128,128,128,128,128,128,128,4,128,128,128,128,128,128,128]
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = [1,128,128,128,128,128,128,128,5,128,128,128,128,128,128,128]
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	mulq	%r11
	andq	$-2, %rdx
	movq	(%rsi,%rdx,2), %xmm4            ## xmm4 = mem[0],zero
	pslld	$2, %xmm4
	pand	%xmm0, %xmm4
	pxor	%xmm1, %xmm4
	movdqa	%xmm4, %xmm5
	pshufb	%xmm2, %xmm5
	movdqa	%xmm4, %xmm6
	pshufb	%xmm3, %xmm6
	psrld	$16, %xmm4
	pmovzxdq	%xmm4, %xmm4                    ## xmm4 = xmm4[0],zero,xmm4[1],zero
	movdqa	%xmm5, %xmm7
	pblendw	$240, %xmm4, %xmm7              ## xmm7 = xmm7[0,1,2,3],xmm4[4,5,6,7]
	punpcklqdq	%xmm6, %xmm4            ## xmm4 = xmm4[0],xmm6[0]
	punpckhqdq	%xmm5, %xmm6            ## xmm6 = xmm6[1],xmm5[1]
	movdqu	%xmm6, 32(%rdi,%rcx,8)
	movdqu	%xmm7, 16(%rdi,%rcx,8)
	movdqu	%xmm4, (%rdi,%rcx,8)
	addq	$6, %rcx
	addq	$-2, %rbx
	jne	LBB0_4
## %bb.5:
	cmpq	%r14, %r8
	je	LBB0_8
LBB0_6:
	movq	%r9, %rax
	mulq	%r11
	andq	$-2, %rdx
	leaq	(%rsi,%rdx,2), %rax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %ecx
	shll	$2, %ecx
	andl	$16777212, %ecx                 ## imm = 0xFFFFFC
	xorq	$16777215, %rcx                 ## imm = 0xFFFFFF
	movzbl	%cl, %edx
	movq	%rdx, 16(%rdi,%r9,8)
	movzbl	%ch, %edx
	movq	%rdx, 8(%rdi,%r9,8)
	shrl	$16, %ecx
	movq	%rcx, (%rdi,%r9,8)
	addq	$3, %r9
	addq	$4, %rax
	cmpq	%r10, %r9
	jl	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lpc32xx_slc_ecc_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc32xx_slc_ecc_copy
_lpc32xx_slc_ecc_copy:                  ; @lpc32xx_slc_ecc_copy
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.1:
	add	w8, w2, w2, lsl #1
	sxtw	x8, w8
	mov	w9, #3
	cmp	x8, #3
	csel	x9, x8, x9, gt
	sub	x9, x9, #1
	mov	x10, #-6148914691236517206
	movk	x10, #43691
	cmp	x9, #3
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	mov	x11, #0
	umulh	x9, x9, x10
	lsr	x9, x9, #1
	add	x12, x9, #1
	and	x13, x12, #0x7ffffffffffffffe
	add	x9, x13, x13, lsl #1
	mov	w14, #16777212
	dup.2s	v0, w14
	movi	d1, #0xffffff00ffffff
	movi	d2, #0x0000ff000000ff
	mov	x14, x0
	mov	x15, x13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	umulh	x16, x11, x10
	lsl	x16, x16, #1
	and	x16, x16, #0xfffffffffffffffc
	ldr	d3, [x1, x16]
	shl.2s	v3, v3, #2
	and.8b	v3, v3, v0
	eor.8b	v3, v3, v1
	and.8b	v4, v3, v2
	ushll.2d	v6, v4, #0
	ushr.2s	v7, v3, #8
	and.8b	v7, v7, v2
	ushll.2d	v5, v7, #0
	ushr.2s	v3, v3, #16
	ushll.2d	v4, v3, #0
	st3.2d	{ v4, v5, v6 }, [x14], #48
	add	x11, x11, #6
	subs	x15, x15, #2
	b.ne	LBB0_4
; %bb.5:
	cmp	x12, x13
	b.eq	LBB0_8
LBB0_6:
	umulh	x10, x9, x10
	lsl	x10, x10, #1
	and	x10, x10, #0xfffffffffffffffc
	add	x10, x1, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	lsl	w11, w11, #2
	and	x11, x11, #0xfffffc
	eor	x11, x11, #0xffffff
	and	x14, x11, #0xff
	add	x13, x0, x9, lsl #3
	ubfx	w12, w11, #8, #8
	ubfx	x11, x11, #16, #16
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
	stp	x12, x14, [x13, #8]
	str	x11, [x13]
	add	x9, x9, #3
	cmp	x9, x8
	b.lt	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lpc32xx_slc_ecc_copy
.subsections_via_symbols
