	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slice_normalize
_slice_normalize:                       ## @slice_normalize
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	_NUM_PLANES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.1:
	movq	(%rdi), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	incq	%rdi
	movq	_NUM_PLANES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rdi
	jge	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	16(%rcx), %rcx
	movl	(%rcx,%rdi,4), %ecx
	imull	(%rax,%rdi,4), %ecx
	movl	%ecx, %eax
	imull	-88(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	idivl	%esi
	movl	%eax, %r13d
	imull	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %r8d
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	_INDEX_DX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	(%rcx,%rdi,8), %rdx
	movq	_INDEX_DY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	(%rcx,%rdi,8), %rsi
	movq	_INDEX_NORM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	(%rcx,%rdi,8), %rbx
	cmpl	$1, -64(%rbp)                   ## 4-byte Folded Reload
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, %eax
	subl	%r13d, %eax
	jle	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, %r15
	movq	%rdx, %r14
	movslq	%r13d, %r12
	incl	%r13d
	testb	$1, %al
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movsd	(%r14,%r12,8), %xmm0            ## xmm0 = mem[0],zero
	movl	$2, %edi
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	callq	_pow
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movsd	(%r15,%r12,8), %xmm0            ## xmm0 = mem[0],zero
	movl	$2, %edi
	callq	_pow
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	addl	%eax, %edi
	callq	_sqrt
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movsd	%xmm0, (%rbx,%r12,8)
	incq	%r12
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %r8d
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r13
	movl	%r8d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%r14,%r12,8), %xmm0            ## xmm0 = mem[0],zero
	movl	$2, %edi
	callq	_pow
	movl	%eax, %ebx
	movsd	(%r15,%r12,8), %xmm0            ## xmm0 = mem[0],zero
	movl	$2, %edi
	callq	_pow
	addl	%eax, %ebx
	movl	%ebx, %edi
	callq	_sqrt
	movsd	%xmm0, (%r13,%r12,8)
	movsd	8(%r14,%r12,8), %xmm0           ## xmm0 = mem[0],zero
	movl	$2, %edi
	callq	_pow
	movl	%eax, %ebx
	movsd	8(%r15,%r12,8), %xmm0           ## xmm0 = mem[0],zero
	movl	$2, %edi
	callq	_pow
	addl	%eax, %ebx
	movl	%ebx, %edi
	callq	_sqrt
	movsd	%xmm0, 8(%r13,%r12,8)
	addq	$2, %r12
	cmpl	%r12d, -56(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_8
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, %ecx
	subl	%r13d, %ecx
	jle	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdx, %r15
	movq	_INDEX_DXY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %rax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %r14
	movslq	%r13d, %r12
	incl	%r13d
	testb	$1, %cl
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movsd	(%r15,%r12,8), %xmm0            ## xmm0 = mem[0],zero
	movl	$2, %edi
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	callq	_pow
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movsd	(%r14,%r12,8), %xmm0            ## xmm0 = mem[0],zero
	movl	$2, %edi
	callq	_pow
                                        ## kill: def $eax killed $eax def $rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leal	(%rcx,%rax,4), %r14d
	movsd	(%rbx,%r12,8), %xmm0            ## xmm0 = mem[0],zero
	movl	$2, %edi
	callq	_pow
	addl	%eax, %r14d
	movl	%r14d, %edi
	callq	_sqrt
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movsd	%xmm0, (%rax,%r12,8)
	incq	%r12
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %r8d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r14
	movl	%r8d, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%r15,%r12,8), %xmm0            ## xmm0 = mem[0],zero
	movl	$2, %edi
	movq	%rax, %r15
	callq	_pow
	movl	%eax, %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movsd	(%r13,%r12,8), %xmm0            ## xmm0 = mem[0],zero
	movl	$2, %edi
	callq	_pow
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax,4), %ebx
	movsd	(%r14,%r12,8), %xmm0            ## xmm0 = mem[0],zero
	movl	$2, %edi
	callq	_pow
	addl	%eax, %ebx
	movl	%ebx, %edi
	callq	_sqrt
	movsd	%xmm0, (%r15,%r12,8)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movsd	8(%rax,%r12,8), %xmm0           ## xmm0 = mem[0],zero
	movl	$2, %edi
	callq	_pow
	movl	%eax, %ebx
	movsd	8(%r13,%r12,8), %xmm0           ## xmm0 = mem[0],zero
	movl	$2, %edi
	callq	_pow
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax,4), %ebx
	movsd	8(%r14,%r12,8), %xmm0           ## xmm0 = mem[0],zero
	movl	$2, %edi
	callq	_pow
	addl	%eax, %ebx
	movl	%ebx, %edi
	callq	_sqrt
	movq	%r15, %rax
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movsd	%xmm0, 8(%rax,%r12,8)
	addq	$2, %r12
	cmpl	%r12d, -48(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_14
	jmp	LBB0_15
LBB0_16:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_PLANES,4,2                 ## @NUM_PLANES
	.comm	_INDEX_DX,8,3                   ## @INDEX_DX
	.comm	_INDEX_DY,8,3                   ## @INDEX_DY
	.comm	_INDEX_NORM,8,3                 ## @INDEX_NORM
	.comm	_INDEX_DXY,8,3                  ## @INDEX_DXY
	.no_dead_strip	_slice_normalize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slice_normalize
_slice_normalize:                       ; @slice_normalize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	str	w2, [sp, #28]                   ; 4-byte Folded Spill
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _NUM_PLANES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_PLANES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x3
	mov	x24, #0
	ldr	x25, [x0]
	ldr	w8, [x25]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	add	w27, w8, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
Lloh3:
	adrp	x8, _NUM_PLANES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_PLANES@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	cmp	x24, x8
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
	lsl	x8, x24, #2
	ldp	x9, x10, [x25, #8]
	ldr	w9, [x9, x8]
	ldr	w8, [x10, x8]
	mul	w9, w8, w9
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	mul	w8, w9, w8
	sdiv	w8, w8, w19
	mul	w9, w9, w27
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x13, [x10]
Lloh6:
	adrp	x10, _INDEX_DX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _INDEX_DX@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	x10, [x13, x10, lsl #3]
	lsl	x14, x24, #3
	ldr	x12, [x10, x14]
Lloh9:
	adrp	x10, _INDEX_DY@GOTPAGE
Lloh10:
	ldr	x10, [x10, _INDEX_DY@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	x10, [x13, x10, lsl #3]
	ldr	x11, [x10, x14]
Lloh12:
	adrp	x10, _INDEX_NORM@GOTPAGE
Lloh13:
	ldr	x10, [x10, _INDEX_NORM@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ldr	x10, [x13, x10, lsl #3]
	ldr	x10, [x10, x14]
	sdiv	w9, w9, w19
	ldr	w14, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w14, #1
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sbfiz	x13, x8, #3, #32
	add	x20, x12, x13
	add	x21, x11, x13
	add	x23, x10, x13
	sub	w26, w9, w8
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x20], #8
	mov	w0, #2
	bl	_pow
	mov	x22, x0
	ldr	d0, [x21], #8
	mov	w0, #2
	bl	_pow
	add	w0, w0, w22
	bl	_sqrt
	str	d0, [x23], #8
	subs	w26, w26, #1
	b.ne	LBB0_6
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x14, _INDEX_DXY@GOTPAGE
Lloh16:
	ldr	x14, [x14, _INDEX_DXY@GOTPAGEOFF]
Lloh17:
	ldr	x14, [x14]
	ldr	x13, [x13, x14, lsl #3]
	ldr	x13, [x13, x24, lsl #3]
	mov	x14, x8
	sbfiz	x14, x14, #3, #32
	add	x28, x12, x14
	add	x23, x13, x14
	add	x21, x11, x14
	add	x26, x10, x14
	sub	w20, w9, w8
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x28], #8
	mov	w0, #2
	bl	_pow
	mov	x22, x0
	ldr	d0, [x23], #8
	mov	w0, #2
	bl	_pow
	add	w22, w22, w0, lsl #2
	ldr	d0, [x21], #8
	mov	w0, #2
	bl	_pow
	add	w0, w22, w0
	bl	_sqrt
	str	d0, [x26], #8
	subs	w20, w20, #1
	b.ne	LBB0_9
	b	LBB0_2
LBB0_10:
	mov	w0, #0
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_PLANES,4,2                 ; @NUM_PLANES
	.comm	_INDEX_DX,8,3                   ; @INDEX_DX
	.comm	_INDEX_DY,8,3                   ; @INDEX_DY
	.comm	_INDEX_NORM,8,3                 ; @INDEX_NORM
	.comm	_INDEX_DXY,8,3                  ; @INDEX_DXY
	.no_dead_strip	_slice_normalize
.subsections_via_symbols
