	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_line_noise_avg_c            ## -- Begin function ff_line_noise_avg_c
	.p2align	4, 0x90
_ff_line_noise_avg_c:                   ## @ff_line_noise_avg_c
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	testl	%edx, %edx
	jle	LBB0_14
## %bb.1:
	movq	(%rcx), %r8
	movq	8(%rcx), %r11
	movq	16(%rcx), %rcx
	movl	%edx, %r9d
	cmpl	$8, %edx
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_3:
	movq	%rdi, %rax
	subq	%r8, %rax
	xorl	%edx, %edx
	cmpq	$32, %rax
	jb	LBB0_10
## %bb.4:
	movq	%rdi, %rax
	subq	%r11, %rax
	cmpq	$32, %rax
	jb	LBB0_10
## %bb.5:
	movq	%rdi, %rax
	subq	%rcx, %rax
	cmpq	$32, %rax
	jb	LBB0_10
## %bb.6:
	movq	%rdi, %rax
	subq	%rsi, %rax
	cmpq	$32, %rax
	jb	LBB0_10
## %bb.7:
	movl	%r9d, %edx
	andl	$-8, %edx
	leaq	(,%r9,4), %r10
	andq	$-32, %r10
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r8,%rax), %xmm0
	movdqu	16(%r8,%rax), %xmm1
	movdqu	(%r11,%rax), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%r11,%rax), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	(%rcx,%rax), %xmm1
	paddd	%xmm2, %xmm1
	movdqu	16(%rcx,%rax), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	(%rsi,%rax), %xmm0
	movdqu	16(%rsi,%rax), %xmm3
	pmulld	%xmm0, %xmm1
	pmulld	%xmm3, %xmm2
	psrad	$7, %xmm1
	psrad	$7, %xmm2
	paddd	%xmm0, %xmm1
	paddd	%xmm3, %xmm2
	movdqu	%xmm1, (%rdi,%rax)
	movdqu	%xmm2, 16(%rdi,%rax)
	addq	$32, %rax
	cmpq	%rax, %r10
	jne	LBB0_8
## %bb.9:
	cmpq	%r9, %rdx
	je	LBB0_14
LBB0_10:
	movq	%rdx, %r10
	notq	%r10
	testb	$1, %r9b
	je	LBB0_12
## %bb.11:
	movl	(%r11,%rdx,4), %eax
	addl	(%r8,%rdx,4), %eax
	addl	(%rcx,%rdx,4), %eax
	movl	(%rsi,%rdx,4), %ebx
	imull	%ebx, %eax
	sarl	$7, %eax
	addl	%ebx, %eax
	movl	%eax, (%rdi,%rdx,4)
	orq	$1, %rdx
LBB0_12:
	addq	%r9, %r10
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r11,%rdx,4), %eax
	addl	(%r8,%rdx,4), %eax
	addl	(%rcx,%rdx,4), %eax
	movl	(%rsi,%rdx,4), %ebx
	imull	%ebx, %eax
	sarl	$7, %eax
	addl	%ebx, %eax
	movl	%eax, (%rdi,%rdx,4)
	movl	4(%r11,%rdx,4), %eax
	addl	4(%r8,%rdx,4), %eax
	addl	4(%rcx,%rdx,4), %eax
	movl	4(%rsi,%rdx,4), %ebx
	imull	%ebx, %eax
	sarl	$7, %eax
	addl	%ebx, %eax
	movl	%eax, 4(%rdi,%rdx,4)
	addq	$2, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_13
LBB0_14:
	popq	%rbx
	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	_ff_line_noise_avg_c            ; -- Begin function ff_line_noise_avg_c
	.p2align	2
_ff_line_noise_avg_c:                   ; @ff_line_noise_avg_c
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_12
; %bb.1:
	ldp	x8, x10, [x3]
	mov	w9, w2
	ldr	x11, [x3, #16]
	cmp	w2, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x12, #0
	b	LBB0_10
LBB0_3:
	mov	x12, #0
	sub	x13, x0, x8
	cmp	x13, #64
	b.lo	LBB0_10
; %bb.4:
	sub	x13, x0, x10
	cmp	x13, #64
	b.lo	LBB0_10
; %bb.5:
	sub	x13, x0, x11
	cmp	x13, #64
	b.lo	LBB0_10
; %bb.6:
	sub	x13, x0, x1
	cmp	x13, #64
	b.lo	LBB0_10
; %bb.7:
	and	x12, x9, #0xfffffff0
	add	x13, x0, #32
	add	x14, x8, #32
	add	x15, x1, #32
	add	x16, x11, #32
	add	x17, x10, #32
	mov	x2, x12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	ldp	q4, q5, [x17, #-32]
	ldp	q6, q7, [x17], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	ldp	q4, q5, [x16, #-32]
	ldp	q6, q7, [x16], #64
	add.4s	v0, v0, v4
	add.4s	v1, v1, v5
	add.4s	v2, v2, v6
	add.4s	v3, v3, v7
	ldp	q4, q5, [x15, #-32]
	ldp	q6, q7, [x15], #64
	mul.4s	v0, v0, v4
	mul.4s	v1, v1, v5
	mul.4s	v2, v2, v6
	mul.4s	v3, v3, v7
	ssra.4s	v4, v0, #7
	ssra.4s	v5, v1, #7
	ssra.4s	v6, v2, #7
	ssra.4s	v7, v3, #7
	stp	q4, q5, [x13, #-32]
	stp	q6, q7, [x13], #64
	subs	x2, x2, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x12, x9
	b.eq	LBB0_12
LBB0_10:
	lsl	x15, x12, #2
	add	x13, x0, x15
	add	x14, x1, x15
	add	x11, x11, x15
	add	x10, x10, x15
	add	x8, x8, x15
	sub	x9, x9, x12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8], #4
	ldr	w15, [x10], #4
	ldr	w16, [x11], #4
	ldr	w17, [x14], #4
	add	w12, w15, w12
	add	w12, w12, w16
	mul	w12, w12, w17
	add	w12, w17, w12, asr #7
	str	w12, [x13], #4
	subs	x9, x9, #1
	b.ne	LBB0_11
LBB0_12:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
