	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fir16
_fir16:                                 ## @fir16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r13
	movq	8(%rdi), %r8
	movl	%esi, (%r13,%r8,4)
	movslq	16(%rdi), %r9
	leal	-1(%r9), %edx
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.6:
	movl	%r9d, %eax
	subl	%r8d, %eax
	movq	24(%rdi), %r12
	movslq	%edx, %rdx
	movslq	%eax, %rcx
	cmpq	%rdx, %rcx
	movq	%rdx, %rax
	cmovlq	%rcx, %rax
	negq	%rax
	leaq	(%rdx,%rax), %r10
	incq	%r10
	xorl	%eax, %eax
	cmpq	$8, %r10
	jae	LBB0_7
LBB0_12:
	movl	%r8d, %ebx
	subl	%r9d, %ebx
	movq	%rdx, %rsi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%rsi), %edx
	movslq	%edx, %rdx
	movl	(%r13,%rdx,4), %edx
	imull	(%r12,%rsi,4), %edx
	addl	%edx, %eax
	leaq	-1(%rsi), %rdx
	cmpq	%rcx, %rsi
	movq	%rdx, %rsi
	jg	LBB0_13
	jmp	LBB0_2
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	testl	%edx, %edx
	js	LBB0_23
## %bb.3:
	movq	24(%rdi), %r10
	movl	%edx, %ecx
	movslq	%r8d, %r11
	cmpl	$7, %edx
	jb	LBB0_21
## %bb.4:
	leaq	1(%rcx), %r14
	movq	%r14, %r15
	andq	$-8, %r15
	movd	%eax, %xmm0
	leaq	-8(%r15), %rax
	movq	%rax, %r12
	shrq	$3, %r12
	incq	%r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.14:
	movq	%r12, %rax
	andq	$-2, %rax
	leaq	(%r11,%rcx), %rdx
	leaq	-12(,%rdx,4), %rdx
	addq	%r13, %rdx
	leaq	(%r10,%rcx,4), %rbx
	addq	$-12, %rbx
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rbx,%rsi,4), %xmm2
	movdqu	-32(%rbx,%rsi,4), %xmm3
	movdqu	-16(%rbx,%rsi,4), %xmm4
	movdqu	(%rbx,%rsi,4), %xmm5
	movdqu	-48(%rdx,%rsi,4), %xmm6
	pmulld	%xmm2, %xmm6
	movdqu	-32(%rdx,%rsi,4), %xmm2
	pmulld	%xmm3, %xmm2
	movdqu	-16(%rdx,%rsi,4), %xmm3
	pmulld	%xmm4, %xmm3
	movdqu	(%rdx,%rsi,4), %xmm4
	pmulld	%xmm5, %xmm4
	pshufd	$27, %xmm4, %xmm4               ## xmm4 = xmm4[3,2,1,0]
	paddd	%xmm0, %xmm4
	pshufd	$27, %xmm3, %xmm3               ## xmm3 = xmm3[3,2,1,0]
	paddd	%xmm1, %xmm3
	pshufd	$27, %xmm2, %xmm0               ## xmm0 = xmm2[3,2,1,0]
	paddd	%xmm4, %xmm0
	pshufd	$27, %xmm6, %xmm1               ## xmm1 = xmm6[3,2,1,0]
	paddd	%xmm3, %xmm1
	addq	$-16, %rsi
	addq	$-2, %rax
	jne	LBB0_15
## %bb.16:
	negq	%rsi
	testb	$1, %r12b
	je	LBB0_19
LBB0_18:
	movq	%rcx, %rax
	subq	%rsi, %rax
	movdqu	-28(%r10,%rax,4), %xmm2
	movdqu	-12(%r10,%rax,4), %xmm3
	addq	%r11, %rax
	movdqu	-28(%r13,%rax,4), %xmm4
	pmulld	%xmm2, %xmm4
	movdqu	-12(%r13,%rax,4), %xmm2
	pmulld	%xmm3, %xmm2
	pshufd	$27, %xmm2, %xmm2               ## xmm2 = xmm2[3,2,1,0]
	paddd	%xmm2, %xmm0
	pshufd	$27, %xmm4, %xmm2               ## xmm2 = xmm4[3,2,1,0]
	paddd	%xmm2, %xmm1
LBB0_19:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%r15, %r14
	je	LBB0_23
## %bb.20:
	subq	%r15, %rcx
LBB0_21:
	leaq	(,%r11,4), %rdx
	addq	%r13, %rdx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rcx,4), %esi
	imull	(%r10,%rcx,4), %esi
	addl	%esi, %eax
	addq	$-1, %rcx
	jb	LBB0_22
LBB0_23:
	testq	%r8, %r8
	cmovneq	%r8, %r9
	decq	%r9
	movq	%r9, 8(%rdi)
	sarl	$15, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpq	%rdx, %rcx
	movq	%rdx, %rbx
	cmovlq	%rcx, %rbx
	movq	%rdx, %rsi
	subq	%rbx, %rsi
	movl	%edx, %ebx
	subl	%esi, %ebx
	cmpl	%edx, %ebx
	jg	LBB0_12
## %bb.8:
	shrq	$32, %rsi
	jne	LBB0_12
## %bb.9:
	movq	%r10, %r11
	andq	$-8, %r11
	leal	-1(%r8), %r14d
	movq	%r11, %r15
	negq	%r15
	leaq	(%r12,%rdx,4), %rax
	addq	$-12, %rax
	subq	%r11, %rdx
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rax,%rbx,4), %xmm2
	movdqu	(%rax,%rbx,4), %xmm3
	leal	(%r14,%rbx), %esi
	movslq	%esi, %rsi
	movdqu	-28(%r13,%rsi,4), %xmm4
	pmulld	%xmm2, %xmm4
	movdqu	-12(%r13,%rsi,4), %xmm2
	pmulld	%xmm3, %xmm2
	pshufd	$27, %xmm2, %xmm2               ## xmm2 = xmm2[3,2,1,0]
	paddd	%xmm2, %xmm0
	pshufd	$27, %xmm4, %xmm2               ## xmm2 = xmm4[3,2,1,0]
	paddd	%xmm2, %xmm1
	addq	$-8, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_10
## %bb.11:
	paddd	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpq	%r11, %r10
	jne	LBB0_12
	jmp	LBB0_2
LBB0_5:
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	testb	$1, %r12b
	jne	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fir16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fir16
_fir16:                                 ; @fir16
	.cfi_startproc
; %bb.0:
	ldp	x10, x8, [x0]
	str	w1, [x10, x8, lsl #2]
	ldrsw	x9, [x0, #16]
	sub	w14, w9, #1
	subs	w13, w8, #1
	b.lt	LBB0_6
; %bb.1:
	sub	w12, w9, w8
	ldr	x11, [x0, #24]
	sxtw	x17, w14
	sxtw	x12, w12
	cmp	x12, x17
	csel	x15, x12, x17, lt
	sub	x15, x17, x15
	add	x15, x15, #1
	cmp	x15, #16
	b.lo	LBB0_3
; %bb.2:
	cmp	x12, x17
	csel	x16, x12, x17, lt
	sub	x16, x17, x16
	sub	w1, w14, w16
	cmp	w1, w14
	lsr	x14, x16, #32
	ccmp	x14, #0, #0, le
	b.eq	LBB0_7
LBB0_3:
	mov	w13, #0
	mov	x14, x17
LBB0_4:
	sub	w15, w8, w9
	mov	x16, x14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x11, x16, lsl #2]
	add	w17, w15, w16
	ldr	w17, [x10, w17, sxtw #2]
	madd	w13, w17, w14, w13
	sub	x14, x16, #1
	cmp	x16, x12
	mov	x16, x14
	b.gt	LBB0_5
	b	LBB0_10
LBB0_6:
	mov	w13, #0
                                        ; kill: def $w14 killed $w14 killed $x14 def $x14
	b	LBB0_10
LBB0_7:
	and	x16, x15, #0xfffffffffffffff0
	sub	x14, x17, x16
	add	x17, x11, x17, lsl #2
	sub	x17, x17, #28
	movi.2d	v0, #0000000000000000
	mov	x1, x16
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q4, [x17]
	ldp	q7, q6, [x17, #-32]
	add	x2, x10, w13, sxtw #2
	ldur	q16, [x2, #-12]
	ldur	q17, [x2, #-28]
	ldur	q18, [x2, #-44]
	ldur	q19, [x2, #-60]
	mul.4s	v4, v16, v4
	rev64.4s	v4, v4
	ext.16b	v4, v4, v4, #8
	mul.4s	v5, v17, v5
	rev64.4s	v5, v5
	ext.16b	v5, v5, v5, #8
	mul.4s	v6, v18, v6
	rev64.4s	v6, v6
	ext.16b	v6, v6, v6, #8
	mul.4s	v7, v19, v7
	rev64.4s	v7, v7
	ext.16b	v7, v7, v7, #8
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	sub	w13, w13, #16
	sub	x17, x17, #64
	sub	x1, x1, #16
	cbnz	x1, LBB0_8
; %bb.9:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w13, s0
	cmp	x15, x16
	b.ne	LBB0_4
LBB0_10:
	tbnz	w14, #31, LBB0_18
; %bb.11:
	ldr	x11, [x0, #24]
	sxtw	x15, w8
	mov	w17, w14
	cmp	w14, #15
	b.hs	LBB0_13
; %bb.12:
	mov	x12, x17
	b	LBB0_16
LBB0_13:
	add	x14, x17, #1
	and	x16, x14, #0x1fffffff0
	sub	x12, x17, x16
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w13
	add	x13, x15, x17
	add	x13, x10, x13, lsl #2
	sub	x13, x13, #28
	add	x17, x11, x17, lsl #2
	sub	x17, x17, #28
	mov	x1, x16
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q4, [x17]
	ldp	q7, q6, [x17, #-32]
	ldp	q17, q16, [x13]
	ldp	q19, q18, [x13, #-32]
	mul.4s	v4, v16, v4
	rev64.4s	v4, v4
	ext.16b	v4, v4, v4, #8
	mul.4s	v5, v17, v5
	rev64.4s	v5, v5
	ext.16b	v5, v5, v5, #8
	mul.4s	v6, v18, v6
	rev64.4s	v6, v6
	ext.16b	v6, v6, v6, #8
	mul.4s	v7, v19, v7
	rev64.4s	v7, v7
	ext.16b	v7, v7, v7, #8
	add.4s	v1, v4, v1
	add.4s	v0, v5, v0
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	sub	x13, x13, #64
	sub	x17, x17, #64
	sub	x1, x1, #16
	cbnz	x1, LBB0_14
; %bb.15:
	add.4s	v0, v0, v1
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w13, s0
	cmp	x14, x16
	b.eq	LBB0_18
LBB0_16:
	add	x10, x10, x15, lsl #2
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	lsl	x14, x12, #2
	ldr	w15, [x11, x14]
	ldr	w14, [x10, x14]
	madd	w13, w14, w15, w13
	sub	x12, x12, #1
	cmn	x12, #1
	b.ne	LBB0_17
LBB0_18:
	cmp	x8, #0
	csel	x8, x9, x8, eq
	sub	x8, x8, #1
	str	x8, [x0, #8]
	asr	w0, w13, #15
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fir16
.subsections_via_symbols
