	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mix_16h_to_32_s1               ## -- Begin function mix_16h_to_32_s1
	.p2align	4, 0x90
_mix_16h_to_32_s1:                      ## @mix_16h_to_32_s1
	.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 $edx killed $edx def $rdx
	cmpl	$2, %edx
	jb	LBB0_7
## %bb.1:
	sarl	%edx
	leal	-1(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_5
## %bb.2:
	movl	%eax, %eax
	incq	%rax
	movl	%eax, %r8d
	andl	$1, %r8d
	testq	%r8, %r8
	movl	$2, %ecx
	cmovneq	%r8, %rcx
	subq	%rcx, %rax
	subl	%eax, %edx
	leaq	(%rsi,%rax,8), %r9
	leaq	(%rdi,%rax,8), %r8
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rcx,8), %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	pshuflw	$232, %xmm0, %xmm1              ## xmm1 = xmm0[0,2,2,3,4,5,6,7]
	pshuflw	$237, %xmm0, %xmm0              ## xmm0 = xmm0[1,3,2,3,4,5,6,7]
	psraw	$1, %xmm1
	pmovsxwd	%xmm1, %xmm1
	movdqu	(%rdi,%rcx,8), %xmm2
	psraw	$1, %xmm0
	pmovsxwd	%xmm0, %xmm0
	punpckldq	%xmm0, %xmm1            ## xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
	paddd	%xmm2, %xmm1
	movdqu	%xmm1, (%rdi,%rcx,8)
	addq	$2, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.4:
	movq	%r9, %rsi
	movq	%r8, %rdi
LBB0_5:
	movl	%edx, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movswl	(%rsi,%rcx,8), %edx
	sarl	%edx
	addl	%edx, (%rdi,%rcx,8)
	movswl	2(%rsi,%rcx,8), %edx
	sarl	%edx
	addl	%edx, 4(%rdi,%rcx,8)
	incq	%rcx
	cmpl	%ecx, %eax
	jne	LBB0_6
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mix_16h_to_32_s1               ; -- Begin function mix_16h_to_32_s1
	.p2align	2
_mix_16h_to_32_s1:                      ; @mix_16h_to_32_s1
	.cfi_startproc
; %bb.0:
	cmp	w2, #2
	b.lo	LBB0_6
; %bb.1:
	asr	w8, w2, #1
	sub	w9, w8, #1
	cmp	w9, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x9, x1
	mov	x10, x0
	b	LBB0_5
LBB0_3:
	add	x9, x9, #1
	ands	x10, x9, #0x7
	mov	w11, #8
	csel	x10, x11, x10, eq
	sub	x11, x9, x10
	sub	w8, w8, w11
	lsl	x10, x11, #3
	add	x9, x1, x10
	add	x10, x0, x10
	add	x12, x0, #32
	add	x13, x1, #32
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x14, x13, #32
	ld4.4h	{ v0, v1, v2, v3 }, [x14]
	ld4.4h	{ v4, v5, v6, v7 }, [x13]
	sshr.4h	v16, v0, #1
	sshr.4h	v17, v4, #1
	sub	x14, x12, #32
	ld2.4s	{ v18, v19 }, [x14]
	ld2.4s	{ v20, v21 }, [x12]
	saddw.4s	v22, v18, v16
	sshr.4h	v0, v1, #1
	saddw.4s	v23, v19, v0
	saddw.4s	v0, v20, v17
	st2.4s	{ v22, v23 }, [x14]
	sshr.4h	v2, v5, #1
	saddw.4s	v1, v21, v2
	st2.4s	{ v0, v1 }, [x12]
	add	x12, x12, #64
	add	x13, x13, #64
	subs	x11, x11, #8
	b.ne	LBB0_4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsh	w11, [x9]
	fmov	s0, w11
	ldrsh	w11, [x9, #2]
	mov.s	v0[1], w11
	ldr	d1, [x10]
	ssra.2s	v1, v0, #1
	str	d1, [x10], #8
	add	x9, x9, #8
	subs	w8, w8, #1
	b.ne	LBB0_5
LBB0_6:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
