	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_mafq12
_filter_mafq12:                         ## @filter_mafq12
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movl	%r8d, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	%ecx, %r12d
	movl	%r12d, %eax
	andl	$-8, %eax
	leaq	-8(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	shrq	$3, %rcx
	incq	%rcx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	negq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	andq	$-2, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	48(%rdx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	-12(%rax), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$-134217728, %esi               ## imm = 0xF8000000
	movl	$134215679, %edx                ## imm = 0x7FFF7FF
	callq	_av_clip
	addl	$2048, %eax                     ## imm = 0x800
	sarl	$12, %eax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%r15,4)
	incq	%r15
	addq	$4, %r13
	cmpq	-104(%rbp), %r15                ## 8-byte Folded Reload
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movl	$0, %edi
	testl	%r14d, %r14d
	jle	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,4), %rax
	cmpl	$8, %r14d
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	pxor	%xmm0, %xmm0
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-48(%r13,%rcx,4), %xmm2
	movdqu	-32(%r13,%rcx,4), %xmm3
	movdqu	-16(%r13,%rcx,4), %xmm4
	movdqu	(%r13,%rcx,4), %xmm5
	pshufd	$27, %xmm5, %xmm5               ## xmm5 = xmm5[3,2,1,0]
	pshufd	$27, %xmm4, %xmm4               ## xmm4 = xmm4[3,2,1,0]
	movdqu	-48(%rsi), %xmm6
	pmulld	%xmm5, %xmm6
	paddd	%xmm0, %xmm6
	movdqu	-32(%rsi), %xmm5
	pmulld	%xmm4, %xmm5
	paddd	%xmm1, %xmm5
	movdqu	-16(%rsi), %xmm1
	movdqu	(%rsi), %xmm4
	pshufd	$27, %xmm3, %xmm0               ## xmm0 = xmm3[3,2,1,0]
	pmulld	%xmm1, %xmm0
	paddd	%xmm6, %xmm0
	pshufd	$27, %xmm2, %xmm1               ## xmm1 = xmm2[3,2,1,0]
	pmulld	%xmm4, %xmm1
	paddd	%xmm5, %xmm1
	addq	$64, %rsi
	addq	$-16, %rcx
	addq	$-2, %rdx
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	negq	%rcx
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%rcx,4), %rdx
	movq	%rax, %rsi
	subq	%rdx, %rsi
	movdqu	(%rbx,%rcx,4), %xmm2
	movdqu	16(%rbx,%rcx,4), %xmm3
	movdqu	-28(%rsi), %xmm4
	movdqu	-12(%rsi), %xmm5
	pshufd	$27, %xmm5, %xmm5               ## xmm5 = xmm5[3,2,1,0]
	pmulld	%xmm2, %xmm5
	paddd	%xmm5, %xmm0
	pshufd	$27, %xmm4, %xmm2               ## xmm2 = xmm4[3,2,1,0]
	pmulld	%xmm3, %xmm2
	paddd	%xmm2, %xmm1
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	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, %edi
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%r12, %rcx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rax,%rdx,4), %rax
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax), %edx
	imull	(%rbx,%rcx,4), %edx
	addq	$-4, %rax
	addl	%edx, %edi
	incq	%rcx
	cmpq	%rcx, %r12
	jne	LBB0_14
	jmp	LBB0_15
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_11
	jmp	LBB0_12
LBB0_16:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_filter_mafq12
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_mafq12
_filter_mafq12:                         ; @filter_mafq12
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w4, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x23, #0
	mov	w24, w4
	mov	w25, w3
	and	x26, x25, #0xfffffff0
	neg	x8, x26
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	sub	x28, x0, #28
	add	x27, x2, #32
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w1, #-134217728
	mov	w2, #63487
	movk	w2, #2047, lsl #16
	bl	_av_clip
	add	w8, w0, #2048
	asr	w8, w8, #12
	str	w8, [x21, x23, lsl #2]
	add	x23, x23, #1
	add	x28, x28, #4
	cmp	x23, x24
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x22, x23, lsl #2
	cmp	w19, #16
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x10, #0
	mov	w0, #0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	movi.2d	v0, #0000000000000000
	mov	x9, x27
	mov	x10, x28
	mov	x11, x26
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	ldr	x12, [sp, #8]                   ; 8-byte Folded Reload
	add	x8, x8, x12, lsl #2
	movi.2d	v3, #0000000000000000
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x9, #-32]
	ldp	q6, q7, [x9], #64
	ldp	q17, q16, [x10]
	rev64.4s	v16, v16
	ext.16b	v16, v16, v16, #8
	rev64.4s	v17, v17
	ext.16b	v17, v17, v17, #8
	ldp	q19, q18, [x10, #-32]
	rev64.4s	v18, v18
	ext.16b	v18, v18, v18, #8
	rev64.4s	v19, v19
	ext.16b	v19, v19, v19, #8
	mla.4s	v0, v16, v4
	mla.4s	v1, v17, v5
	mla.4s	v2, v18, v6
	mla.4s	v3, v19, v7
	sub	x10, x10, #64
	sub	x11, x11, #16
	cbnz	x11, LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w0, s0
	mov	x10, x26
	cmp	x26, x25
	b.eq	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x20, x10, lsl #2
	sub	x10, x25, x10
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x9], #4
	ldr	w12, [x8], #-4
	madd	w0, w12, w11, w0
	subs	x10, x10, #1
	b.ne	LBB0_11
	b	LBB0_3
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_filter_mafq12
.subsections_via_symbols
