	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mix_16h_to_32                  ## -- Begin function mix_16h_to_32
	.p2align	4, 0x90
_mix_16h_to_32:                         ## @mix_16h_to_32
	.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
	testl	%edx, %edx
	je	LBB0_12
## %bb.1:
	leal	-1(%rdx), %r9d
	cmpl	$7, %r9d
	jb	LBB0_10
## %bb.2:
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rax
	movq	%rax, %r10
	shrq	$3, %r10
	incq	%r10
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r10, %rax
	andq	$-2, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rcx,2), %xmm0            ## xmm0 = mem[0],zero
	movq	8(%rsi,%rcx,2), %xmm1           ## xmm1 = mem[0],zero
	psraw	$1, %xmm0
	psraw	$1, %xmm1
	pmovsxwd	%xmm0, %xmm0
	pmovsxwd	%xmm1, %xmm1
	movdqu	(%rdi,%rcx,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rdi,%rcx,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	32(%rdi,%rcx,4), %xmm1
	movdqu	48(%rdi,%rcx,4), %xmm3
	movdqu	%xmm2, (%rdi,%rcx,4)
	movdqu	%xmm0, 16(%rdi,%rcx,4)
	movq	16(%rsi,%rcx,2), %xmm0          ## xmm0 = mem[0],zero
	movq	24(%rsi,%rcx,2), %xmm2          ## xmm2 = mem[0],zero
	psraw	$1, %xmm0
	psraw	$1, %xmm2
	pmovsxwd	%xmm0, %xmm0
	paddd	%xmm1, %xmm0
	pmovsxwd	%xmm2, %xmm1
	paddd	%xmm3, %xmm1
	movdqu	%xmm0, 32(%rdi,%rcx,4)
	movdqu	%xmm1, 48(%rdi,%rcx,4)
	addq	$16, %rcx
	addq	$-2, %rax
	jne	LBB0_5
## %bb.6:
	testb	$1, %r10b
	je	LBB0_8
LBB0_7:
	movq	(%rsi,%rcx,2), %xmm0            ## xmm0 = mem[0],zero
	movq	8(%rsi,%rcx,2), %xmm1           ## xmm1 = mem[0],zero
	psraw	$1, %xmm0
	psraw	$1, %xmm1
	pmovsxwd	%xmm0, %xmm0
	pmovsxwd	%xmm1, %xmm1
	movdqu	(%rdi,%rcx,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rdi,%rcx,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	%xmm2, (%rdi,%rcx,4)
	movdqu	%xmm0, 16(%rdi,%rcx,4)
LBB0_8:
	cmpq	%r8, %r9
	je	LBB0_12
## %bb.9:
	subl	%r8d, %edx
	leaq	(%rsi,%r8,2), %rsi
	leaq	(%rdi,%r8,4), %rdi
LBB0_10:
	movl	%edx, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movswl	(%rsi,%rcx,2), %edx
	sarl	%edx
	addl	%edx, (%rdi,%rcx,4)
	incq	%rcx
	cmpl	%ecx, %eax
	jne	LBB0_11
LBB0_12:
	popq	%rbp
	retq
LBB0_3:
	xorl	%ecx, %ecx
	testb	$1, %r10b
	jne	LBB0_7
	jmp	LBB0_8
	.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                  ; -- Begin function mix_16h_to_32
	.p2align	2
_mix_16h_to_32:                         ; @mix_16h_to_32
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_7
; %bb.1:
	sub	w8, w2, #1
	cmp	w8, #15
	b.hs	LBB0_3
; %bb.2:
	mov	x8, x1
	mov	x9, x0
	b	LBB0_6
LBB0_3:
	add	x10, x8, #1
	and	x11, x10, #0x1fffffff0
	sub	w2, w2, w11
	add	x8, x1, x11, lsl #1
	add	x9, x0, x11, lsl #2
	add	x12, x1, #16
	add	x13, x0, #32
	mov	x14, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	d0, d1, [x12, #-16]
	ldp	d2, d3, [x12], #32
	sshr.4h	v0, v0, #1
	sshr.4h	v1, v1, #1
	sshr.4h	v2, v2, #1
	sshr.4h	v3, v3, #1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13]
	saddw.4s	v0, v4, v0
	saddw.4s	v1, v5, v1
	saddw.4s	v2, v6, v2
	saddw.4s	v3, v7, v3
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x11
	b.eq	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsh	w10, [x8], #2
	ldr	w11, [x9]
	add	w10, w11, w10, asr #1
	str	w10, [x9], #4
	subs	w2, w2, #1
	b.ne	LBB0_6
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
