	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mix_2_to_1_s16p_q8_c
_mix_2_to_1_s16p_q8_c:                  ## @mix_2_to_1_s16p_q8_c
	.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
	movq	(%rdi), %rax
	movq	8(%rdi), %rdi
	movq	(%rsi), %rcx
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	cmpl	$5, %edx
	jl	LBB0_1
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, %esi
	movl	(%rax), %edx
	imull	%r8d, %edx
	movl	(%rdi), %ebx
	imull	%ecx, %ebx
	addl	%edx, %ebx
	sarl	$8, %ebx
	movl	%ebx, (%rax)
	movl	4(%rax), %edx
	imull	%r8d, %edx
	movl	4(%rdi), %ebx
	imull	%ecx, %ebx
	addl	%edx, %ebx
	sarl	$8, %ebx
	movl	%ebx, 4(%rax)
	movl	8(%rax), %edx
	imull	%r8d, %edx
	movl	8(%rdi), %ebx
	imull	%ecx, %ebx
	addl	%edx, %ebx
	sarl	$8, %ebx
	movl	%ebx, 8(%rax)
	movl	12(%rax), %edx
	imull	%r8d, %edx
	movl	12(%rdi), %ebx
	imull	%ecx, %ebx
	addl	%edx, %ebx
	sarl	$8, %ebx
	movl	%ebx, 12(%rax)
	addq	$16, %rax
	addq	$16, %rdi
	leal	-4(%rsi), %edx
	cmpl	$8, %esi
	ja	LBB0_12
	jmp	LBB0_2
LBB0_1:
	testl	%edx, %edx
	jle	LBB0_11
LBB0_2:
	cmpl	$1, %edx
	movl	%edx, %r10d
	adcl	$-1, %r10d
	cmpl	$7, %r10d
	jb	LBB0_3
## %bb.4:
	cmpl	$1, %edx
	movl	%edx, %esi
	adcl	$-1, %esi
	leaq	(%rdi,%rsi,4), %rbx
	addq	$4, %rbx
	cmpq	%rbx, %rax
	jae	LBB0_6
## %bb.5:
	leaq	(%rax,%rsi,4), %rsi
	addq	$4, %rsi
	cmpq	%rsi, %rdi
	jae	LBB0_6
LBB0_3:
	movq	%rax, %rsi
	movq	%rdi, %r9
LBB0_9:
	incl	%edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rax), %edi
	imull	%r8d, %edi
	movl	(%r9,%rax), %ebx
	imull	%ecx, %ebx
	addl	%edi, %ebx
	sarl	$8, %ebx
	movl	%ebx, (%rsi,%rax)
	decl	%edx
	addq	$4, %rax
	cmpl	$1, %edx
	ja	LBB0_10
LBB0_11:
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	incq	%r10
	movq	%r10, %r11
	andq	$-8, %r11
	subl	%r11d, %edx
	leaq	(%rax,%r11,4), %rsi
	leaq	(%rdi,%r11,4), %r9
	movd	%r8d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movd	%ecx, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rbx,4), %xmm2
	movdqu	16(%rax,%rbx,4), %xmm3
	pmulld	%xmm0, %xmm2
	pmulld	%xmm0, %xmm3
	movdqu	(%rdi,%rbx,4), %xmm4
	movdqu	16(%rdi,%rbx,4), %xmm5
	pmulld	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	pmulld	%xmm1, %xmm5
	paddd	%xmm3, %xmm5
	psrad	$8, %xmm4
	psrad	$8, %xmm5
	movdqu	%xmm4, (%rax,%rbx,4)
	movdqu	%xmm5, 16(%rax,%rbx,4)
	addq	$8, %rbx
	cmpq	%rbx, %r11
	jne	LBB0_7
## %bb.8:
	cmpq	%r11, %r10
	jne	LBB0_9
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mix_2_to_1_s16p_q8_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mix_2_to_1_s16p_q8_c
_mix_2_to_1_s16p_q8_c:                  ; @mix_2_to_1_s16p_q8_c
	.cfi_startproc
; %bb.0:
	ldp	x13, x12, [x0]
	ldr	x9, [x1]
	ldp	w8, w9, [x9]
	cmp	w2, #5
	b.lt	LBB0_6
; %bb.1:
	subs	w10, w2, #8
	csel	w10, wzr, w10, lo
	add	w10, w10, #3
	cmp	w10, #12
	b.lo	LBB0_7
; %bb.2:
	subs	w11, w2, #8
	csel	w11, wzr, w11, lo
	add	w11, w11, #3
	and	w11, w11, #0xfffffffc
	lsl	x11, x11, #2
	add	x11, x11, #16
	add	x14, x13, x11
	add	x11, x12, x11
	cmp	x13, x11
	ccmp	x12, x14, #2, lo
	b.lo	LBB0_7
; %bb.3:
	lsr	w10, w10, #2
	add	w14, w10, #1
	and	x15, x14, #0x7ffffffc
	sub	w2, w2, w15, lsl #2
	lsl	x11, x15, #4
	add	x10, x13, x11
	add	x11, x12, x11
	dup.4s	v0, w8
	dup.4s	v1, w9
	mov	x16, x15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ld4.4s	{ v2, v3, v4, v5 }, [x13]
	mul.4s	v6, v2, v0
	ld4.4s	{ v16, v17, v18, v19 }, [x12], #64
	mla.4s	v6, v16, v1
	sshr.4s	v20, v6, #8
	mul.4s	v6, v3, v0
	mla.4s	v6, v17, v1
	sshr.4s	v21, v6, #8
	mul.4s	v6, v4, v0
	mla.4s	v6, v18, v1
	sshr.4s	v22, v6, #8
	mul.4s	v2, v5, v0
	mla.4s	v2, v19, v1
	sshr.4s	v23, v2, #8
	st4.4s	{ v20, v21, v22, v23 }, [x13], #64
	subs	x16, x16, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x15, x14
	b.ne	LBB0_8
	b	LBB0_10
LBB0_6:
	mov	x10, x13
	mov	x11, x12
	cmp	w2, #1
	b.ge	LBB0_10
	b	LBB0_16
LBB0_7:
	mov	x10, x13
	mov	x11, x12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x14, x2
	ldp	w12, w13, [x10]
	mul	w12, w12, w8
	ldr	w15, [x11]
	madd	w12, w15, w9, w12
	asr	w12, w12, #8
	str	w12, [x10]
	mul	w12, w13, w8
	ldr	w13, [x11, #4]
	madd	w12, w13, w9, w12
	asr	w12, w12, #8
	str	w12, [x10, #4]
	ldp	w12, w13, [x10, #8]
	mul	w12, w12, w8
	ldr	w15, [x11, #8]
	madd	w12, w15, w9, w12
	asr	w12, w12, #8
	str	w12, [x10, #8]
	add	x12, x10, #16
	mul	w15, w13, w8
	add	x13, x11, #16
	ldr	w11, [x11, #12]
	madd	w11, w11, w9, w15
	asr	w11, w11, #8
	str	w11, [x10, #12]
	sub	w2, w2, #4
	mov	x10, x12
	mov	x11, x13
	cmp	w14, #8
	b.hi	LBB0_8
; %bb.9:
	mov	x10, x12
	mov	x11, x13
LBB0_10:
	cmp	w2, #0
	cset	w12, ne
	sub	w12, w2, w12
	cmp	w12, #15
	b.lo	LBB0_13
; %bb.11:
	cmp	w2, #0
	cset	w13, ne
	sub	w13, w2, w13
	lsl	x13, x13, #2
	add	x13, x13, #4
	add	x14, x11, x13
	cmp	x10, x14
	b.hs	LBB0_17
; %bb.12:
	add	x13, x10, x13
	cmp	x11, x13
	b.hs	LBB0_17
LBB0_13:
	mov	x12, x10
	mov	x13, x11
LBB0_14:
	add	w10, w2, #1
	mov	x11, x12
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12], #4
	mul	w14, w14, w8
	ldr	w15, [x13], #4
	madd	w14, w15, w9, w14
	asr	w14, w14, #8
	str	w14, [x11], #4
	sub	w10, w10, #1
	cmp	w10, #1
	b.hi	LBB0_15
LBB0_16:
	ret
LBB0_17:
	add	x14, x12, #1
	and	x15, x14, #0x1fffffff0
	sub	w2, w2, w15
	lsl	x13, x15, #2
	add	x12, x10, x13
	dup.4s	v0, w8
	add	x13, x11, x13
	dup.4s	v1, w9
	add	x10, x10, #32
	add	x11, x11, #32
	mov	x16, x15
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x10, #-32]
	ldp	q4, q5, [x10]
	mul.4s	v2, v2, v0
	mul.4s	v3, v3, v0
	mul.4s	v4, v4, v0
	mul.4s	v5, v5, v0
	ldp	q6, q7, [x11, #-32]
	ldp	q16, q17, [x11], #64
	mla.4s	v2, v6, v1
	mla.4s	v3, v7, v1
	mla.4s	v4, v16, v1
	mla.4s	v5, v17, v1
	sshr.4s	v2, v2, #8
	sshr.4s	v3, v3, #8
	sshr.4s	v4, v4, #8
	sshr.4s	v5, v5, #8
	stp	q2, q3, [x10, #-32]
	stp	q4, q5, [x10], #64
	subs	x16, x16, #16
	b.ne	LBB0_18
; %bb.19:
	cmp	x14, x15
	b.ne	LBB0_14
	b	LBB0_16
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mix_2_to_1_s16p_q8_c
.subsections_via_symbols
