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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter16_sobel
_filter16_sobel:                        ; @filter16_sobel
	.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
	mov	x25, x0
	ldr	x8, [x20, #56]
	add	x0, x8, x27
	bl	_AV_RN16A
	mov	x26, x0
	ldr	x8, [x20, #64]
	add	x0, x8, x27
	bl	_AV_RN16A
	sub	w8, w26, w23
	add	w9, w24, w22
	sub	w9, w25, w9
	add	w9, w9, w0
	add	w8, w9, w8, lsl #1
	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
	sub	w8, w25, w24
	add	w9, w22, w26
	sub	w9, w23, w9
	add	w8, w9, w8, lsl #1
	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_sobel
.subsections_via_symbols
