	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_sobel
_filter_sobel:                          ## @filter_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	$72, %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, -104(%rbp)                ## 8-byte Spill
	movq	8(%rcx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rcx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	24(%rcx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	40(%rcx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	48(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	56(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	64(%rcx), %r13
	movl	%esi, %r12d
	xorl	%r14d, %r14d
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r14,4), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r14,4), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%r14,4), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%r14,4), %esi
	leal	(%rcx,%rax), %edi
	addl	%edx, %eax
	subl	%edi, %edx
	movl	(%r13,%r14,4), %edi
	subl	(%rbx,%r14,4), %esi
	addl	%edi, %edx
	leal	(%rdx,%rsi,2), %edx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%edx, %xmm0
	subl	%eax, %ecx
	addl	%edi, %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %eax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	subl	(%rdx,%r14,4), %eax
	leal	(%rcx,%rax,2), %eax
	xorps	%xmm2, %xmm2
	cvtsi2ss	%eax, %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, %r12
	jne	LBB0_2
LBB0_3:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_filter_sobel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_sobel
_filter_sobel:                          ; @filter_sobel
	.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
	ldr	w12, [x28], #4
	ldr	w13, [x23], #4
	ldr	w14, [x24], #4
	ldr	w15, [x27], #4
	sub	w9, w15, w9
	sub	w13, w14, w13
	add	w14, w10, w8
	sub	w14, w11, w14
	add	w14, w14, w12
	add	w9, w14, w9, lsl #1
	add	w8, w8, w11
	sub	w8, w10, w8
	add	w8, w8, w12
	add	w8, w8, w13, lsl #1
	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_sobel
.subsections_via_symbols
