	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cp_from_buf
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	4                               ## 0x4
	.byte	5                               ## 0x5
	.byte	8                               ## 0x8
	.byte	9                               ## 0x9
	.byte	12                              ## 0xc
	.byte	13                              ## 0xd
	.byte	8                               ## 0x8
	.byte	9                               ## 0x9
	.byte	12                              ## 0xc
	.byte	13                              ## 0xd
	.byte	12                              ## 0xc
	.byte	13                              ## 0xd
	.byte	14                              ## 0xe
	.byte	15                              ## 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cp_from_buf:                           ## @cp_from_buf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	_PMAD_LANCE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_1
## %bb.29:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_1:
	movq	_PMAX_LANCE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_18
## %bb.2:
	movl	%ecx, %r8d
	shrl	%r8d
	testw	%r8w, %r8w
	je	LBB0_3
## %bb.4:
	leal	-1(%r8), %eax
	cmpw	$8, %ax
	jb	LBB0_5
## %bb.6:
	leal	-1(%r8), %edi
	movzwl	%di, %r9d
	leaq	(%rdx,%r9,4), %rdi
	addq	$2, %rdi
	cmpq	%rsi, %rdi
	jbe	LBB0_8
## %bb.7:
	leaq	(%rsi,%r9,2), %rdi
	addq	$2, %rdi
	cmpq	%rdx, %rdi
	jbe	LBB0_8
LBB0_5:
	movq	%rdx, %r10
	movq	%rsi, %rax
	jmp	LBB0_10
LBB0_18:
	movl	%ecx, %eax
	shrl	$4, %eax
	testw	%ax, %ax
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movzwl	(%rdx), %edi
	movw	%di, (%rsi)
	movzwl	2(%rdx), %edi
	movw	%di, 2(%rsi)
	movzwl	4(%rdx), %edi
	movw	%di, 4(%rsi)
	movzwl	6(%rdx), %edi
	movw	%di, 6(%rsi)
	movzwl	8(%rdx), %edi
	movw	%di, 8(%rsi)
	movzwl	10(%rdx), %edi
	movw	%di, 10(%rsi)
	movzwl	12(%rdx), %edi
	movw	%di, 12(%rsi)
	movzwl	14(%rdx), %edi
	movw	%di, 14(%rsi)
	addq	$16, %rsi
	addq	$32, %rdx
	decw	%ax
	jne	LBB0_19
LBB0_20:
	movl	%ecx, %edi
	andw	$15, %di
	je	LBB0_28
## %bb.21:
	movzwl	%di, %r8d
	decl	%r8d
	testb	$7, %cl
	je	LBB0_25
## %bb.22:
	movl	%ecx, %r9d
	andl	$7, %r9d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdx,%rdi), %eax
	movb	%al, (%rsi,%rdi)
	incq	%rdi
	cmpw	%di, %r9w
	jne	LBB0_23
## %bb.24:
	addq	%rdi, %rdx
	addq	%rdi, %rsi
	andl	$15, %ecx
	subl	%edi, %ecx
	movl	%ecx, %edi
LBB0_25:
	cmpw	$7, %r8w
	jb	LBB0_28
## %bb.26:
	movzwl	%di, %edi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdx,%rcx), %eax
	movb	%al, (%rsi,%rcx)
	movzbl	1(%rdx,%rcx), %eax
	movb	%al, 1(%rsi,%rcx)
	movzbl	2(%rdx,%rcx), %eax
	movb	%al, 2(%rsi,%rcx)
	movzbl	3(%rdx,%rcx), %eax
	movb	%al, 3(%rsi,%rcx)
	movzbl	4(%rdx,%rcx), %eax
	movb	%al, 4(%rsi,%rcx)
	movzbl	5(%rdx,%rcx), %eax
	movb	%al, 5(%rsi,%rcx)
	movzbl	6(%rdx,%rcx), %eax
	movb	%al, 6(%rsi,%rcx)
	movzbl	7(%rdx,%rcx), %eax
	movb	%al, 7(%rsi,%rcx)
	addq	$8, %rcx
	cmpw	%cx, %di
	jne	LBB0_27
	jmp	LBB0_28
LBB0_3:
	movq	%rsi, %rax
	movq	%rdx, %r10
	jmp	LBB0_16
LBB0_8:
	movzwl	%ax, %r9d
	incq	%r9
	movl	%r9d, %eax
	andl	$7, %eax
	testq	%rax, %rax
	movl	$8, %edi
	cmovneq	%rax, %rdi
	subq	%rdi, %r9
	subl	%r9d, %r8d
	leaq	(%rdx,%r9,4), %r10
	leaq	(%rsi,%r9,2), %rax
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,4,5,8,9,12,13,8,9,12,13,12,13,14,15]
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rdi,4), %xmm1
	movdqu	16(%rdx,%rdi,4), %xmm2
	pshufb	%xmm0, %xmm1
	pshufb	%xmm0, %xmm2
	punpcklqdq	%xmm2, %xmm1            ## xmm1 = xmm1[0],xmm2[0]
	movdqu	%xmm1, (%rsi,%rdi,2)
	addq	$8, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_9
LBB0_10:
	leal	-1(%r8), %r9d
	movl	%r8d, %edx
	andw	$7, %dx
	je	LBB0_14
## %bb.11:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzwl	(%r10), %edi
	movw	%di, (%rax)
	addq	$2, %rax
	addq	$4, %r10
	incl	%esi
	cmpw	%si, %dx
	jne	LBB0_12
## %bb.13:
	subl	%esi, %r8d
LBB0_14:
	cmpw	$7, %r9w
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movzwl	(%r10), %edx
	movw	%dx, (%rax)
	movzwl	4(%r10), %edx
	movw	%dx, 2(%rax)
	movzwl	8(%r10), %edx
	movw	%dx, 4(%rax)
	movzwl	12(%r10), %edx
	movw	%dx, 6(%rax)
	movzwl	16(%r10), %edx
	movw	%dx, 8(%rax)
	movzwl	20(%r10), %edx
	movw	%dx, 10(%rax)
	movzwl	24(%r10), %edx
	movw	%dx, 12(%rax)
	movzwl	28(%r10), %edx
	movw	%dx, 14(%rax)
	addq	$16, %rax
	addq	$32, %r10
	addw	$-8, %r8w
	jne	LBB0_15
LBB0_16:
	testb	$1, %cl
	jne	LBB0_17
LBB0_28:
	popq	%rbp
	retq
LBB0_17:
	movb	(%r10), %cl
	movb	%cl, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMAD_LANCE,4,2                 ## @PMAD_LANCE
	.comm	_PMAX_LANCE,4,2                 ## @PMAX_LANCE
	.no_dead_strip	_cp_from_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp_from_buf
_cp_from_buf:                           ; @cp_from_buf
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _PMAD_LANCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMAD_LANCE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	b	_memcpy
LBB0_2:
Lloh3:
	adrp	x8, _PMAX_LANCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMAX_LANCE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_8
; %bb.3:
	ubfx	w8, w3, #1, #16
	cbz	w8, LBB0_14
; %bb.4:
	lsr	w8, w3, #1
	sub	w9, w8, #1
	and	w10, w9, #0xffff
	cmp	w10, #32
	b.lo	LBB0_7
; %bb.5:
	add	x10, x2, w9, uxth #2
	add	x10, x10, #2
	cmp	x10, x1
	b.ls	LBB0_15
; %bb.6:
	add	x10, x1, w9, uxth #1
	add	x10, x10, #2
	cmp	x10, x2
	b.ls	LBB0_15
LBB0_7:
	mov	x9, x2
	mov	x10, x1
	b	LBB0_17
LBB0_8:
	ubfx	w8, w3, #4, #16
	cbz	w8, LBB0_12
; %bb.9:
	lsr	w8, w3, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w8, w8, #1
	ldrh	w9, [x2]
	strh	w9, [x1]
	ldrh	w9, [x2, #2]
	strh	w9, [x1, #2]
	ldrh	w9, [x2, #4]
	strh	w9, [x1, #4]
	ldrh	w9, [x2, #6]
	strh	w9, [x1, #6]
	ldrh	w9, [x2, #8]
	strh	w9, [x1, #8]
	ldrh	w9, [x2, #10]
	strh	w9, [x1, #10]
	ldrh	w9, [x2, #12]
	strh	w9, [x1, #12]
	ldrh	w10, [x2, #14]
	add	x9, x1, #16
	strh	w10, [x1, #14]
	add	x2, x2, #32
	mov	x1, x9
	tst	w8, #0xffff
	b.ne	LBB0_10
; %bb.11:
	mov	x1, x9
LBB0_12:
	ands	w8, w3, #0xf
	b.eq	LBB0_19
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	w8, w8, #1
	ldrb	w9, [x2], #1
	strb	w9, [x1], #1
	tst	w8, #0xffff
	b.ne	LBB0_13
	b	LBB0_19
LBB0_14:
	mov	x10, x1
	mov	x9, x2
	b	LBB0_18
LBB0_15:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	and	x9, x9, #0xffff
	add	x9, x9, #1
	ands	x10, x9, #0x1f
	mov	w11, #32
	csel	x10, x11, x10, eq
	sub	x11, x9, x10
	sub	w8, w8, w11
	add	x9, x2, x11, lsl #2
	add	x10, x1, x11, lsl #1
	add	x13, x2, #64
	add	x12, x1, #32
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	sub	x14, x13, #64
	ld2.8h	{ v0, v1 }, [x14]
	sub	x14, x13, #32
	ld2.8h	{ v2, v3 }, [x14]
	add	x14, x13, #128
	ld2.8h	{ v4, v5 }, [x13], #32
	ld2.8h	{ v6, v7 }, [x13]
	stp	q0, q2, [x12, #-32]
	stp	q4, q6, [x12], #64
	mov	x13, x14
	subs	x11, x11, #32
	b.ne	LBB0_16
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	sub	w8, w8, #1
	ldrh	w11, [x9], #4
	strh	w11, [x10], #2
	tst	w8, #0xffff
	b.ne	LBB0_17
LBB0_18:
	tbnz	w3, #0, LBB0_20
LBB0_19:
	ret
LBB0_20:
	ldrb	w8, [x9]
	strb	w8, [x10]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PMAD_LANCE,4,2                 ; @PMAD_LANCE
	.comm	_PMAX_LANCE,4,2                 ; @PMAX_LANCE
	.no_dead_strip	_cp_from_buf
.subsections_via_symbols
