	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mix_16h_to_32_s2               ## -- Begin function mix_16h_to_32_s2
	.p2align	4, 0x90
_mix_16h_to_32_s2:                      ## @mix_16h_to_32_s2
	.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
	movq	%rax, %r9
	shlq	$4, %r9
	addq	%rsi, %r9
	leaq	(%rdi,%rax,8), %r8
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi), %xmm0
	movdqu	16(%rsi), %xmm1
	punpcklwd	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	psraw	$1, %xmm0
	pmovsxwd	%xmm0, %xmm0
	movdqu	(%rdi,%rcx,8), %xmm2
	psraw	$1, %xmm1
	pmovsxwd	%xmm1, %xmm1
	punpckldq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	paddd	%xmm2, %xmm0
	movdqu	%xmm0, (%rdi,%rcx,8)
	addq	$2, %rcx
	addq	$32, %rsi
	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), %edx
	sarl	%edx
	addl	%edx, (%rdi,%rcx,8)
	movswl	2(%rsi), %edx
	sarl	%edx
	addl	%edx, 4(%rdi,%rcx,8)
	incq	%rcx
	addq	$16, %rsi
	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_s2               ; -- Begin function mix_16h_to_32_s2
	.p2align	2
_mix_16h_to_32_s2:                      ; @mix_16h_to_32_s2
	.cfi_startproc
; %bb.0:
	cmp	w2, #2
	b.lo	LBB0_6
; %bb.1:
	asr	w8, w2, #1
	sub	w9, w8, #1
	cmp	w9, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x9, x1
	mov	x10, x0
	b	LBB0_5
LBB0_3:
	add	x9, x9, #1
	ands	x10, x9, #0x3
	mov	w11, #4
	csel	x10, x11, x10, eq
	sub	x11, x9, x10
	sub	w8, w8, w11
	add	x9, x1, x11, lsl #4
	add	x10, x0, x11, lsl #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x1, #32]
	ldp	q2, q3, [x1], #64
	zip1.4h	v4, v2, v3
	zip1.4h	v1, v0, v1
	ext.8b	v0, v0, v1, #4
	mov.s	v4[1], v0[1]
	trn2.4h	v0, v2, v3
	mov.s	v0[1], v1[1]
	sshr.4h	v1, v4, #1
	ld2.4s	{ v2, v3 }, [x0]
	saddw.4s	v4, v2, v1
	sshr.4h	v0, v0, #1
	saddw.4s	v5, v3, v0
	st2.4s	{ v4, v5 }, [x0], #32
	subs	x11, x11, #4
	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, #16
	subs	w8, w8, #1
	b.ne	LBB0_5
LBB0_6:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
