	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_gradfun_filter_line_c       ## -- Begin function ff_gradfun_filter_line_c
	.p2align	4, 0x90
_ff_gradfun_filter_line_c:              ## @ff_gradfun_filter_line_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	movl	%r8d, %r15d
	movq	%rdx, %rbx
	movl	%ecx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%r12,4), %r14d
	shll	$7, %r14d
	movl	(%rbx), %r13d
	subl	%r14d, %r13d
	movl	%r13d, %eax
	negl	%eax
	cmovsl	%r13d, %eax
	imull	%r15d, %eax
	sarl	$16, %eax
	movl	$127, %esi
	subl	%eax, %esi
	xorl	%edi, %edi
	callq	_FFMAX
	imull	%eax, %eax
	imull	%eax, %r13d
	sarl	$14, %r13d
	movl	%r12d, %eax
	andl	$7, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	(%rcx,%rax,4), %r14d
	addl	%r13d, %r14d
	sarl	$7, %r14d
	movl	%r14d, %edi
	callq	_av_clip_uint8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, (%rdi,%r12,4)
	movl	%r12d, %eax
	andl	$1, %eax
	leaq	(%rbx,%rax,4), %rbx
	incq	%r12
	cmpq	%r12, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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_gradfun_filter_line_c       ; -- Begin function ff_gradfun_filter_line_c
	.p2align	2
_ff_gradfun_filter_line_c:              ; @ff_gradfun_filter_line_c
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w3, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x24, #0
	mov	w25, w3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x27, x24, #2
	ldr	w8, [x22, x27]
	lsl	w28, w8, #7
	ldr	w8, [x21]
	subs	w26, w8, w28
	cneg	w8, w26, mi
	mul	w8, w8, w20
	mov	w9, #127
	sub	w1, w9, w8, asr #16
	mov	w0, #0
	bl	_FFMAX
	mul	w8, w0, w0
	mul	w8, w8, w26
	and	x9, x24, #0x7
	ldr	w9, [x19, x9, lsl #2]
	add	w9, w9, w28
	add	w8, w9, w8, asr #14
	asr	w0, w8, #7
	bl	_av_clip_uint8
	str	w0, [x23, x27]
	and	x8, x24, #0x1
	add	x21, x21, x8, lsl #2
	add	x24, x24, #1
	cmp	x25, x24
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
