	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter16_prewitt
_filter16_prewitt:                      ## @filter16_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm1, -56(%rbp)                ## 4-byte Spill
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	testl	%esi, %esi
	jle	LBB0_3
## %bb.1:
	movl	%r8d, %ebx
	movq	%rcx, %r12
	movl	%esi, %eax
	shlq	$3, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rdi
	addq	%r13, %rdi
	callq	_AV_RN16A
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r12), %rdi
	addq	%r13, %rdi
	callq	_AV_RN16A
	movl	%eax, %ebx
	movq	16(%r12), %rdi
	addq	%r13, %rdi
	callq	_AV_RN16A
	movl	%eax, %r14d
	movq	48(%r12), %rdi
	addq	%r13, %rdi
	callq	_AV_RN16A
	movl	%eax, %r15d
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	%r14d, %ebx
	subl	%ebx, %r15d
	movq	56(%r12), %rdi
	addq	%r13, %rdi
	callq	_AV_RN16A
	movl	%eax, %ebx
	addl	%r15d, %ebx
	movq	64(%r12), %rdi
	addq	%r13, %rdi
	callq	_AV_RN16A
	addl	%ebx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	(%r12), %rdi
	addq	%r13, %rdi
	callq	_AV_RN16A
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	16(%r12), %rdi
	addq	%r13, %rdi
	callq	_AV_RN16A
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	24(%r12), %rdi
	addq	%r13, %rdi
	callq	_AV_RN16A
	movl	%eax, %r14d
	movq	40(%r12), %rdi
	addq	%r13, %rdi
	callq	_AV_RN16A
	movl	%eax, %ebx
	movq	48(%r12), %rdi
	addq	%r13, %rdi
	callq	_AV_RN16A
	movl	%eax, %r15d
	movq	64(%r12), %rdi
	addq	%r13, %rdi
	callq	_AV_RN16A
	addl	-64(%rbp), %r14d                ## 4-byte Folded Reload
	addl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	%r15d, %r14d
	subl	%r14d, %ebx
	addl	%eax, %ebx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	mulss	%xmm0, %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	addss	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	sqrtss	%xmm1, %xmm0
	mulss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	-56(%rbp), %xmm0                ## 4-byte Folded Reload
	xorl	%edi, %edi
	callq	_av_clip
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%rdi)
	addq	$8, %r13
	addq	$4, %rdi
	cmpq	%r13, -72(%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
	.no_dead_strip	_filter16_prewitt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter16_prewitt
_filter16_prewitt:                      ; @filter16_prewitt
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	fmov	s8, s1
	fmov	s9, s0
	mov	x21, x0
	mov	x27, #0
	mov	w8, w1
	lsl	x28, x8, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x27
	bl	_AV_RN16A
	mov	x22, x0
	ldr	x8, [x20, #8]
	add	x0, x8, x27
	bl	_AV_RN16A
	mov	x23, x0
	ldr	x8, [x20, #16]
	add	x0, x8, x27
	bl	_AV_RN16A
	mov	x24, x0
	ldr	x8, [x20, #48]
	add	x0, x8, x27
	bl	_AV_RN16A
	add	w8, w23, w22
	add	w8, w8, w24
	sub	w22, w0, w8
	ldr	x8, [x20, #56]
	add	x0, x8, x27
	bl	_AV_RN16A
	add	w22, w22, w0
	ldr	x8, [x20, #64]
	add	x0, x8, x27
	bl	_AV_RN16A
	add	w8, w22, w0
	scvtf	s10, w8
	ldr	x8, [x20]
	add	x0, x8, x27
	bl	_AV_RN16A
	mov	x22, x0
	ldr	x8, [x20, #16]
	add	x0, x8, x27
	bl	_AV_RN16A
	mov	x23, x0
	ldr	x8, [x20, #24]
	add	x0, x8, x27
	bl	_AV_RN16A
	mov	x24, x0
	ldr	x8, [x20, #40]
	add	x0, x8, x27
	bl	_AV_RN16A
	mov	x25, x0
	ldr	x8, [x20, #48]
	add	x0, x8, x27
	bl	_AV_RN16A
	mov	x26, x0
	ldr	x8, [x20, #64]
	add	x0, x8, x27
	bl	_AV_RN16A
	add	w8, w22, w24
	add	w8, w8, w26
	add	w9, w23, w25
	sub	w8, w9, w8
	add	w8, w8, w0
	scvtf	s0, w8
	fmul	s0, s0, s0
	fmadd	s0, s10, s10, s0
	fsqrt	s0, s0
	fmadd	s0, s0, s9, s8
	mov	w0, #0
	mov	x1, x19
	bl	_av_clip
	str	w0, [x21], #4
	add	x27, x27, #8
	cmp	x28, x27
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_filter16_prewitt
.subsections_via_symbols
