	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_vector_and_shift
_add_vector_and_shift:                  ## @add_vector_and_shift
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.1:
	movl	%ecx, %r9d
	cmpl	$8, %ecx
	jae	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %r10
	notq	%r10
	testb	$1, %r9b
	je	LBB0_14
## %bb.13:
	movl	(%rdx,%rbx,4), %r11d
	addl	(%rsi,%rbx,4), %r11d
	movl	%r8d, %ecx
	sarl	%cl, %r11d
	movl	%r11d, (%rdi,%rbx,4)
	orq	$1, %rbx
LBB0_14:
	addq	%r9, %r10
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rbx,4), %eax
	addl	(%rsi,%rbx,4), %eax
	movl	%r8d, %ecx
	sarl	%cl, %eax
	movl	%eax, (%rdi,%rbx,4)
	movl	4(%rdx,%rbx,4), %eax
	addl	4(%rsi,%rbx,4), %eax
	sarl	%cl, %eax
	movl	%eax, 4(%rdi,%rbx,4)
	addq	$2, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_15
	jmp	LBB0_16
LBB0_3:
	movq	%rdi, %rcx
	subq	%rsi, %rcx
	xorl	%ebx, %ebx
	cmpq	$32, %rcx
	jb	LBB0_12
## %bb.4:
	movq	%rdi, %rcx
	subq	%rdx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_12
## %bb.5:
	movl	%r9d, %ebx
	andl	$-8, %ebx
	movd	%r8d, %xmm0
	leaq	-8(%rbx), %rcx
	movq	%rcx, %r10
	shrq	$3, %r10
	incq	%r10
	pmovzxdq	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,xmm0[1],zero
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	movq	%r10, %r11
	andq	$-2, %r11
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rcx,4), %xmm1
	movdqu	16(%rsi,%rcx,4), %xmm2
	movdqu	(%rdx,%rcx,4), %xmm3
	paddd	%xmm1, %xmm3
	movdqu	16(%rdx,%rcx,4), %xmm1
	paddd	%xmm2, %xmm1
	psrad	%xmm0, %xmm3
	psrad	%xmm0, %xmm1
	movdqu	%xmm3, (%rdi,%rcx,4)
	movdqu	%xmm1, 16(%rdi,%rcx,4)
	movdqu	32(%rsi,%rcx,4), %xmm1
	movdqu	48(%rsi,%rcx,4), %xmm2
	movdqu	32(%rdx,%rcx,4), %xmm3
	paddd	%xmm1, %xmm3
	movdqu	48(%rdx,%rcx,4), %xmm1
	paddd	%xmm2, %xmm1
	psrad	%xmm0, %xmm3
	psrad	%xmm0, %xmm1
	movdqu	%xmm3, 32(%rdi,%rcx,4)
	movdqu	%xmm1, 48(%rdi,%rcx,4)
	addq	$16, %rcx
	addq	$-2, %r11
	jne	LBB0_8
## %bb.9:
	testb	$1, %r10b
	je	LBB0_11
LBB0_10:
	movdqu	(%rsi,%rcx,4), %xmm1
	movdqu	16(%rsi,%rcx,4), %xmm2
	movdqu	(%rdx,%rcx,4), %xmm3
	paddd	%xmm1, %xmm3
	movdqu	16(%rdx,%rcx,4), %xmm1
	paddd	%xmm2, %xmm1
	psrad	%xmm0, %xmm3
	psrad	%xmm0, %xmm1
	movdqu	%xmm3, (%rdi,%rcx,4)
	movdqu	%xmm1, 16(%rdi,%rcx,4)
LBB0_11:
	cmpq	%r9, %rbx
	jne	LBB0_12
LBB0_16:
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	xorl	%ecx, %ecx
	testb	$1, %r10b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_vector_and_shift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_vector_and_shift
_add_vector_and_shift:                  ; @add_vector_and_shift
	.cfi_startproc
; %bb.0:
	cmp	w3, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w8, w3
	cmp	w3, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_8
LBB0_3:
	mov	x9, #0
	sub	x10, x0, x1
	cmp	x10, #64
	b.lo	LBB0_8
; %bb.4:
	sub	x10, x0, x2
	cmp	x10, #64
	b.lo	LBB0_8
; %bb.5:
	dup.4s	v0, w4
	and	x9, x8, #0xfffffff0
	add	x10, x0, #32
	add	x11, x1, #32
	add	x12, x2, #32
	neg.4s	v0, v0
	mov	x13, x9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11], #64
	ldp	q5, q6, [x12, #-32]
	ldp	q7, q16, [x12], #64
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	add.4s	v4, v16, v4
	sshl.4s	v1, v1, v0
	sshl.4s	v2, v2, v0
	sshl.4s	v3, v3, v0
	sshl.4s	v4, v4, v0
	stp	q1, q2, [x10, #-32]
	stp	q3, q4, [x10], #64
	subs	x13, x13, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x9, x8
	b.eq	LBB0_10
LBB0_8:
	lsl	x12, x9, #2
	add	x10, x0, x12
	add	x11, x2, x12
	add	x12, x1, x12
	sub	x8, x8, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x12], #4
	ldr	w13, [x11], #4
	add	w9, w13, w9
	asr	w9, w9, w4
	str	w9, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_vector_and_shift
.subsections_via_symbols
