	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_prewitt
_filter_prewitt:                        ## @filter_prewitt
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	jle	LBB0_3
## %bb.1:
	movaps	%xmm0, %xmm3
	movq	%rdi, %r15
	movq	(%rcx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rcx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	24(%rcx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	40(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	48(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	56(%rcx), %r12
	movq	64(%rcx), %r13
	movl	%esi, %ebx
	xorl	%r14d, %r14d
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r14,4), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%r14,4), %edx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%r14,4), %esi
	addl	%eax, %esi
	addl	%ecx, %esi
	addl	%edx, %eax
	subl	%esi, %edx
	addl	(%r12,%r14,4), %edx
	movl	(%r13,%r14,4), %esi
	addl	%esi, %edx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%edx, %xmm0
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addl	(%rdx,%r14,4), %eax
	addl	%esi, %ecx
	subl	%eax, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	(%rax,%r14,4), %ecx
	xorps	%xmm2, %xmm2
	cvtsi2ss	%ecx, %xmm2
	mulss	%xmm2, %xmm2
	mulss	%xmm0, %xmm0
	addss	%xmm2, %xmm0
	sqrtss	%xmm0, %xmm0
	mulss	%xmm3, %xmm0
	addss	%xmm1, %xmm0
	callq	_av_clip_uint8
	movss	-44(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movl	%eax, (%r15,%r14,4)
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_2
LBB0_3:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_filter_prewitt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_prewitt
_filter_prewitt:                        ; @filter_prewitt
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	fmov	s8, s1
	fmov	s9, s0
	mov	x19, x0
	ldp	x20, x21, [x3]
	ldp	x22, x23, [x3, #16]
	ldp	x24, x25, [x3, #40]
	mov	w26, w1
	ldp	x27, x28, [x3, #56]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20], #4
	ldr	w9, [x21], #4
	ldr	w10, [x22], #4
	ldr	w11, [x25], #4
	add	w9, w9, w8
	add	w9, w9, w10
	ldr	w12, [x27], #4
	ldr	w13, [x28], #4
	sub	w9, w11, w9
	add	w9, w9, w12
	ldr	w12, [x23], #4
	ldr	w14, [x24], #4
	add	w8, w8, w11
	add	w9, w9, w13
	add	w8, w8, w12
	add	w10, w10, w13
	sub	w8, w10, w8
	add	w8, w8, w14
	scvtf	s0, w9
	scvtf	s1, w8
	fmul	s1, s1, s1
	fmadd	s0, s0, s0, s1
	fsqrt	s0, s0
	fmadd	s0, s0, s9, s8
	bl	_av_clip_uint8
	str	w0, [x19], #4
	subs	x26, x26, #1
	b.ne	LBB0_2
LBB0_3:
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_filter_prewitt
.subsections_via_symbols
