	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function pokeysnd_process_16
LCPI0_0:
	.long	4294934528                      ## 0xffff8000
	.long	4294934528                      ## 0xffff8000
	.space	4
	.space	4
LCPI0_1:
	.long	32767                           ## 0x7fff
	.long	32767                           ## 0x7fff
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_pokeysnd_process_16:                   ## @pokeysnd_process_16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_pokeysnd_process_8
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.1:
	movl	%r14d, %ecx
	cmpl	$4, %r14d
	jae	LBB0_3
LBB0_9:
	movq	%rcx, %rax
LBB0_10:
	incq	%rax
	movl	$-32768, %ecx                   ## imm = 0x8000
	movl	$32767, %edx                    ## imm = 0x7FFF
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rax), %esi
	movl	(%rbx,%rsi,8), %edi
	shll	$8, %edi
	addl	$-32768, %edi                   ## imm = 0x8000
	cmpl	$-32767, %edi                   ## imm = 0x8001
	cmovll	%ecx, %edi
	cmpl	$32767, %edi                    ## imm = 0x7FFF
	cmovgel	%edx, %edi
	movl	%edi, (%rbx,%rsi,4)
	decq	%rax
	cmpq	$1, %rax
	ja	LBB0_11
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	leaq	-1(%rcx), %rdx
	decl	%r14d
	cmpl	%edx, %r14d
	jb	LBB0_9
## %bb.4:
	movq	%rdx, %rax
	shrq	$32, %rax
	jne	LBB0_9
## %bb.5:
	movl	%ecx, %r8d
	andl	$-4, %r8d
	movl	%ecx, %eax
	andl	$3, %eax
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <4294934528,4294934528,u,u>
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <32767,32767,u,u>
	movq	%r8, %rdi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %esi
	movdqu	-24(%rbx,%rsi,8), %xmm2
	movdqu	-8(%rbx,%rsi,8), %xmm3
	pshufd	$226, %xmm3, %xmm3              ## xmm3 = xmm3[2,0,2,3]
	pshufd	$226, %xmm2, %xmm2              ## xmm2 = xmm2[2,0,2,3]
	pslld	$8, %xmm3
	pslld	$8, %xmm2
	paddd	%xmm0, %xmm3
	paddd	%xmm0, %xmm2
	pmaxsd	%xmm0, %xmm3
	pmaxsd	%xmm0, %xmm2
	pminsd	%xmm1, %xmm3
	pminsd	%xmm1, %xmm2
	pshufd	$225, %xmm3, %xmm3              ## xmm3 = xmm3[1,0,2,3]
	pshufd	$225, %xmm2, %xmm2              ## xmm2 = xmm2[1,0,2,3]
	punpcklqdq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0]
	movdqu	%xmm2, -12(%rbx,%rsi,4)
	addq	$-4, %rdx
	addq	$-4, %rdi
	jne	LBB0_6
## %bb.7:
	cmpq	%rcx, %r8
	jne	LBB0_10
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pokeysnd_process_16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pokeysnd_process_16
_pokeysnd_process_16:                   ; @pokeysnd_process_16
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_pokeysnd_process_8
	subs	w9, w20, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w8, w20
	cmp	w20, #8
	b.hs	LBB0_6
LBB0_2:
	mov	x9, x8
LBB0_3:
	add	x8, x9, #1
	mov	w9, #-32768
	mov	w10, #32767
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w11, w8, #2
	ldr	x12, [x19, w11, uxtw #3]
	lsl	w12, w12, #8
	sub	w12, w12, #8, lsl #12           ; =32768
	cmn	w12, #8, lsl #12                ; =32768
	csel	w12, w12, w9, gt
	cmp	w12, w10
	csel	w12, w12, w10, lt
	str	w12, [x19, w11, uxtw #2]
	sub	x8, x8, #1
	cmp	x8, #1
	b.hi	LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	sub	x10, x8, #1
	cmp	w9, w10
	b.lo	LBB0_2
; %bb.7:
	lsr	x9, x10, #32
	cbnz	x9, LBB0_2
; %bb.8:
	and	x11, x8, #0xfffffff8
	and	x9, x8, #0x7
	mvni.2s	v0, #127, msl #8
	movi.2s	v1, #127, msl #8
	mov	x12, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x13, x19, w10, uxtw #3
	ldur	q2, [x13, #-8]
	ext.16b	v2, v2, v2, #8
	ldur	q3, [x13, #-24]
	ext.16b	v3, v3, v3, #8
	ldur	q4, [x13, #-40]
	ext.16b	v4, v4, v4, #8
	ldur	q5, [x13, #-56]
	ext.16b	v5, v5, v5, #8
	xtn.2s	v2, v2
	xtn.2s	v3, v3
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	shl.2s	v2, v2, #8
	shl.2s	v3, v3, #8
	shl.2s	v4, v4, #8
	shl.2s	v5, v5, #8
	add.2s	v2, v2, v0
	add.2s	v3, v3, v0
	add.2s	v4, v4, v0
	add.2s	v5, v5, v0
	smax.2s	v2, v2, v0
	smax.2s	v3, v3, v0
	smax.2s	v4, v4, v0
	smax.2s	v5, v5, v0
	smin.2s	v2, v2, v1
	smin.2s	v3, v3, v1
	smin.2s	v4, v4, v1
	smin.2s	v5, v5, v1
	add	x13, x19, w10, uxtw #2
	rev64.2s	v2, v2
	stur	d2, [x13, #-4]
	rev64.2s	v2, v3
	stur	d2, [x13, #-12]
	rev64.2s	v2, v4
	stur	d2, [x13, #-20]
	rev64.2s	v2, v5
	stur	d2, [x13, #-28]
	sub	x10, x10, #8
	subs	x12, x12, #8
	b.ne	LBB0_9
; %bb.10:
	cmp	x11, x8
	b.ne	LBB0_3
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pokeysnd_process_16
.subsections_via_symbols
