	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sobel
_sobel:                                 ## @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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	cmpl	$3, %esi
	jl	LBB0_6
## %bb.1:
	movl	24(%rbp), %eax
	movq	16(%rbp), %r10
	movslq	%ecx, %r14
	movslq	%r9d, %rcx
	movslq	%eax, %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %ebx
	addl	$-2, -44(%rbp)                  ## 4-byte Folded Spill
	leaq	(%r10,%rdi,8), %r11
	addq	$8, %r11
	leaq	(,%rdi,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, %esi
	negl	%esi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r10,%rdi,4), %r15
	addq	$8, %r15
	leaq	(%r8,%rcx,4), %rdi
	addq	$4, %rdi
	shlq	$2, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%r14,8), %r13
	addq	$8, %r13
	shlq	$3, %r14
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	decq	%rbx
	movl	$1, %eax
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	leal	1(%rdx), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %r11
	addq	%rcx, %r15
	addq	-80(%rbp), %rdi                 ## 8-byte Folded Reload
	addq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	cmpl	-44(%rbp), %edx                 ## 4-byte Folded Reload
                                        ## kill: def $eax killed $eax def $rax
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r10,%rax,4), %r10
	cmpl	$3, -56(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	movq	%r10, -144(%rbp)                ## 8-byte Spill
	movq	%r11, -136(%rbp)                ## 8-byte Spill
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%rsi,%r14), %rax
	movslq	%eax, %rcx
	incl	%eax
	movl	(%r10,%rcx,4), %r8d
	addl	$2, %ecx
	movslq	%ecx, %rcx
	movl	(%r10,%rcx,4), %ecx
	movl	(%r15,%r14,4), %esi
	movl	-8(%r11,%r14,4), %edi
	movl	%ecx, %edx
	subl	%r8d, %edx
	subl	%edi, %edx
	movl	(%r11,%r14,4), %ebx
	subl	-8(%r15,%r14,4), %esi
	addl	%ebx, %edx
	leal	(%rdx,%rsi,2), %r12d
	movl	-4(%r11,%r14,4), %edx
	cltq
	subl	(%r10,%rax,4), %edx
	addl	%r8d, %ecx
	subl	%ecx, %edi
	addl	%ebx, %edi
	leal	(%rdi,%rdx,2), %ebx
	movl	%r12d, %edi
	callq	_FFABS
	movq	%r13, %r15
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_FFABS
	addq	%r13, %rax
	movq	%r15, %r13
	movq	%rax, (%r15,%r14,8)
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_get_rounded_direction
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movq	-136(%rbp), %r11                ## 8-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	-144(%rbp), %r10                ## 8-byte Reload
	movl	%eax, (%rdi,%r14,4)
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sobel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sobel
_sobel:                                 ; @sobel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
                                        ; kill: def $w7 killed $w7 def $x7
                                        ; kill: def $w5 killed $w5 def $x5
                                        ; kill: def $w3 killed $w3 def $x3
	str	w0, [sp, #48]                   ; 4-byte Folded Spill
	cmp	w1, #3
	b.lt	LBB0_6
; %bb.1:
	mov	x20, x6
	sxtw	x8, w7
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	sub	w8, w8, #1
	sub	w9, w1, #2
	str	w9, [sp, #36]                   ; 4-byte Folded Spill
	sub	x10, x8, #1
	sbfiz	x8, x3, #3, #32
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	add	x8, x8, x2
	add	x25, x8, #8
	add	x8, x6, w7, sxtw #3
	add	x9, x8, #8
	sbfiz	x8, x7, #2, #32
	neg	w28, w7
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	add	x8, x8, x6
	add	x8, x8, #8
	stp	x8, x9, [sp, #56]               ; 16-byte Folded Spill
	sbfiz	x8, x5, #2, #32
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x8, x8, x4
	add	x19, x8, #4
	mov	w8, #1
	str	x10, [sp, #72]                  ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w14, [sp, #52]                  ; 4-byte Folded Reload
	add	w8, w14, #1
	ldp	x11, x9, [sp, #16]              ; 16-byte Folded Reload
	add	x25, x25, x9
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	add	x9, x9, x11
	str	x9, [sp, #64]                   ; 8-byte Folded Spill
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	add	x9, x9, x11
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x19, x19, x9
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w14, w9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x20, x20, x8, lsl #2
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
	ldp	x27, x26, [sp, #56]             ; 16-byte Folded Reload
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x28, x24
	ldr	w9, [x20, w8, sxtw #2]
	add	w10, w8, #2
	ldr	w10, [x20, w10, sxtw #2]
	add	w8, w8, #1
	ldur	w11, [x27, #-8]
	ldr	w12, [x27], #4
	ldp	w14, w13, [x26, #-4]
	sub	w11, w12, w11
	ldur	w12, [x26, #-8]
	add	w15, w9, w12
	sub	w15, w10, w15
	add	w15, w15, w13
	ldr	w8, [x20, w8, sxtw #2]
	add	w21, w15, w11, lsl #1
	sub	w8, w14, w8
	add	w9, w10, w9
	sub	w9, w12, w9
	add	w9, w9, w13
	add	w22, w9, w8, lsl #1
	mov	x0, x21
	bl	_FFABS
	mov	x23, x0
	mov	x0, x22
	bl	_FFABS
	add	x8, x0, x23
	str	x8, [x25, x24, lsl #3]
	mov	x0, x21
	mov	x1, x22
	bl	_get_rounded_direction
	ldr	x10, [sp, #72]                  ; 8-byte Folded Reload
	str	w0, [x19, x24, lsl #2]
	add	x24, x24, #1
	add	x26, x26, #4
	cmp	x10, x24
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sobel
.subsections_via_symbols
