	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function eedi2_mark_directions_2x
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
LCPI0_2:
	.space	16,255
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_eedi2_mark_directions_2x
	.p2align	4, 0x90
_eedi2_mark_directions_2x:              ## @eedi2_mark_directions_2x
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, %r13
	movl	%ecx, %r15d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%ebx, %edx
	imull	%r9d, %edx
	movq	%r8, %rdi
	movl	$255, %esi
	callq	_memset
	movl	16(%rbp), %ecx
	movl	$2, %edx
	subl	%ecx, %edx
	decl	%ebx
	movl	%ebx, -116(%rbp)                ## 4-byte Spill
	cmpl	%ebx, %edx
	jge	LBB0_38
## %bb.1:
	movl	32(%rbp), %r8d
	leal	(%r15,%r15), %eax
	movslq	%eax, %rdi
	leal	(%r14,%r14), %eax
	movslq	%eax, %rbx
	movl	$1, %eax
	subl	%ecx, %eax
	imull	%eax, %r14d
	movslq	%r14d, %rcx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rcx,4), %rcx
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rbx,4), %rbx
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rsi
	imull	%r15d, %eax
	cltq
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rbx
	movq	%rdi, -160(%rbp)                ## 8-byte Spill
	leaq	(%rbx,%rdi,4), %r9
	movl	%edx, %eax
	imull	%r12d, %eax
	cltq
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leal	-1(%r8), %r11d
	addl	%r12d, %r12d
	movslq	%r12d, %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	%r11, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-152(%rbp), %rax                ## 8-byte Reload
	leaq	(%rsi,%rax,4), %rsi
	addq	%rax, -96(%rbp)                 ## 8-byte Folded Spill
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-160(%rbp), %rax                ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rbx
	addq	%rax, %r9
	movl	-120(%rbp), %edx                ## 4-byte Reload
	addl	$2, %edx
	cmpl	-116(%rbp), %edx                ## 4-byte Folded Reload
	jge	LBB0_38
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_31 Depth 3
	movl	%edx, -120(%rbp)                ## 4-byte Spill
	movl	32(%rbp), %eax
	cmpl	$3, %eax
	jl	LBB0_37
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r13d
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %r13
	cmpq	%r11, %r15
	je	LBB0_37
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_31 Depth 3
	cmpl	$255, (%rsi,%r13,4)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpb	$-1, (%rax,%r13)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%r13
	movq	%r13, %r15
	cmpq	%r11, %r15
	jne	LBB0_4
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	-4(%rbx,%r13,4), %eax
	xorl	%r14d, %r14d
	cmpl	$255, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, -80(%rbp)
	movl	$1, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rbx,%r13,4), %eax
	cmpl	$255, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r14d, %ecx
	incl	%r14d
	movl	%eax, -80(%rbp,%rcx,4)
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	4(%rbx,%r13,4), %eax
	cmpl	$255, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r14d, %ecx
	incl	%r14d
	movl	%eax, -80(%rbp,%rcx,4)
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	movzbl	-1(%r9,%r13), %eax
	cmpl	$255, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r14d, %ecx
	incl	%r14d
	movl	%eax, -80(%rbp,%rcx,4)
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	leaq	1(%r13), %r15
	movzbl	(%r9,%r13), %eax
	cmpl	$255, %eax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r14d, %ecx
	incl	%r14d
	movl	%eax, -80(%rbp,%rcx,4)
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=2
	movzbl	(%r9,%r15), %eax
	cmpl	$255, %eax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r14d, %ecx
	incl	%r14d
	movl	%eax, -80(%rbp,%rcx,4)
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$3, %r14d
	jb	LBB0_35
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=2
	leaq	-80(%rbp), %rdi
	movl	%r14d, %esi
	callq	_eedi2_sort_metrics
	testb	$1, %r14b
	jne	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=2
	leal	-1(%r14), %eax
	shrl	%eax
	movl	-80(%rbp,%rax,4), %eax
	movl	%r14d, %ecx
	shrl	%ecx
	movl	-80(%rbp,%rcx,4), %ecx
	leal	(%rax,%rcx), %r8d
	incl	%r8d
	sarl	%r8d
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%r14d, %eax
	shrl	%eax
	movl	-80(%rbp,%rax,4), %r8d
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	leal	-128(%r8), %eax
	leal	-128(%r8), %ecx
	negl	%ecx
	cmpl	$128, %r8d
	movq	_eedi2_limlut@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmovgel	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	movl	(%rdx,%rax,4), %r12d
	movzbl	-1(%rsi,%r13), %r11d
	cmpl	$255, %r11d
	sete	%r9b
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movl	-4(%rbx,%r13,4), %edi
	movl	(%rbx,%r13,4), %r10d
	movl	%edi, %eax
	subl	%r11d, %eax
	movl	%eax, %esi
	negl	%esi
	cmovsl	%eax, %esi
	cmpl	%r12d, %esi
	setle	%al
	cmpl	$255, %edi
	sete	%dl
	orb	%r9b, %dl
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	orb	%al, %dl
	movzbl	%dl, %eax
	movzbl	(%r9,%r13), %edx
	movl	%r10d, %esi
	subl	%edx, %esi
	movl	%esi, %edi
	negl	%edi
	cmovsl	%esi, %edi
	leal	1(%rax), %esi
	cmpl	$255, %edx
	cmovel	%esi, %eax
	cmpl	$255, %r10d
	cmovel	%esi, %eax
	cmpl	%r12d, %edi
	cmovlel	%esi, %eax
	movl	4(%rbx,%r13,4), %esi
	movl	%esi, %edx
	subl	%r11d, %edx
	movl	%edx, %edi
	negl	%edi
	cmovsl	%edx, %edi
	cmpl	%r12d, %edi
	jle	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$255, %esi
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$-1, (%r9,%r15)
	jne	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=2
	incl	%eax
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-128(%rbp), %r11                ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	cmpl	$2, %eax
	jb	LBB0_35
## %bb.28:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r14d, %r9d
	cmpl	$8, %r14d
	jae	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%esi, %esi
	xorl	%eax, %eax
	xorl	%edi, %edi
	xorl	%r10d, %r10d
	jmp	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=2
	movd	%r12d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movd	%r8d, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	movl	%r9d, %esi
	andl	$-8, %esi
	movdqa	-80(%rbp), %xmm2
	movdqa	-64(%rbp), %xmm3
	movdqa	%xmm2, %xmm4
	psubd	%xmm1, %xmm4
	movdqa	%xmm3, %xmm5
	psubd	%xmm1, %xmm5
	pabsd	%xmm4, %xmm1
	pabsd	%xmm5, %xmm4
	pcmpgtd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm5
	pandn	LCPI0_0(%rip), %xmm5
	pcmpgtd	%xmm0, %xmm4
	pandn	%xmm2, %xmm1
	paddd	%xmm4, %xmm5
	pandn	%xmm3, %xmm4
	paddd	%xmm1, %xmm4
	psubd	LCPI0_2(%rip), %xmm5
	pshufd	$238, %xmm5, %xmm0              ## xmm0 = xmm5[2,3,2,3]
	paddd	%xmm5, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edi
	pshufd	$238, %xmm4, %xmm0              ## xmm0 = xmm4[2,3,2,3]
	paddd	%xmm4, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpq	%r9, %rsi
	movl	$0, %r10d
	je	LBB0_32
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-80(%rbp,%rsi,4), %edx
	movl	%edx, %ebx
	subl	%r8d, %ebx
	movl	%ebx, %ecx
	negl	%ecx
	cmovsl	%ebx, %ecx
	xorl	%ebx, %ebx
	cmpl	%r12d, %ecx
	setle	%bl
	cmovgl	%r10d, %edx
	addl	%ebx, %edi
	addl	%edx, %eax
	incq	%rsi
	cmpq	%rsi, %r9
	jne	LBB0_31
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=2
	addl	$-2, %r14d
	cmpl	%r14d, %edi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	jl	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$2, %edi
	jb	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_4 Depth=2
	addl	%r8d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	incl	%edi
	xorps	%xmm1, %xmm1
	cvtsi2ss	%edi, %xmm1
	divss	%xmm1, %xmm0
	addss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	jmp	LBB0_35
LBB0_38:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_40
## %bb.39:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_40:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_eedi2_limlut,8,3               ## @eedi2_limlut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eedi2_mark_directions_2x       ; -- Begin function eedi2_mark_directions_2x
	.p2align	2
_eedi2_mark_directions_2x:              ; @eedi2_mark_directions_2x
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x26, x7
	mov	x23, x6
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x21, x2
	mov	x25, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	mul	w2, w7, w5
	mov	x0, x4
	mov	w1, #255
	bl	_memset
	mov	w8, #2
	sub	w9, w26, #1
	sub	w10, w8, w23
	str	w9, [sp, #32]                   ; 4-byte Folded Spill
	cmp	w10, w9
	b.ge	LBB0_38
; %bb.1:
	ldr	w11, [x29, #16]
	lsl	w8, w22, #1
	sxtw	x12, w8
	lsl	w8, w25, #1
	sxtw	x13, w8
	mov	w8, #1
	sub	w8, w8, w23
	mul	w9, w8, w25
	add	x23, x24, w9, sxtw #2
	stp	x13, x12, [sp, #8]              ; 16-byte Folded Spill
	add	x25, x23, x13, lsl #2
	mul	w8, w8, w22
	add	x21, x21, w8, sxtw #2
	add	x26, x21, x12, lsl #2
	mul	w8, w10, w19
	add	x8, x20, w8, sxtw #2
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	str	w11, [sp, #28]                  ; 4-byte Folded Spill
	sub	w22, w11, #1
	lsl	w8, w19, #1
	sxtw	x8, w8
	str	x8, [sp]                        ; 8-byte Folded Spill
	add	x20, sp, #48
	fmov	s8, #0.50000000
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [sp]                    ; 16-byte Folded Reload
	add	x23, x23, x8, lsl #2
	add	x25, x25, x8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #2
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x26, x26, x8
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	add	w10, w10, #2
	add	x21, x21, x8, lsl #2
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	cmp	w10, w8
	b.ge	LBB0_38
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_35 Depth 3
	str	w10, [sp, #36]                  ; 4-byte Folded Spill
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #1
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldrb	w8, [x25, x28]
	cmp	w8, #255
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x24, x28, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x28, x24
	cmp	x24, x22
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_35 Depth 3
	ldr	w8, [x23, x28, lsl #2]
	cmp	w8, #255
	b.ne	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_8 Depth=2
	sub	x27, x28, #1
	ldr	w8, [x21, x27, lsl #2]
	cmp	w8, #255
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w19, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	str	w8, [sp, #48]
	mov	w19, #1
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x21, x28, lsl #2]
	cmp	w8, #255
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w9, w19
	add	w19, w19, #1
	add	x10, sp, #48
	bfi	x10, x9, #2, #1
	str	w8, [x10]
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x24, x28, #1
	ldr	w8, [x21, x24, lsl #2]
	cmp	w8, #255
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w9, w19
	add	w19, w19, #1
	add	x10, sp, #48
	bfi	x10, x9, #2, #2
	str	w8, [x10]
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=2
	ldrb	w8, [x26, x27]
	cmp	w8, #255
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=2
	str	w8, [x20, w19, uxtw #2]
	add	w19, w19, #1
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=2
	ldrb	w8, [x26, x28]
	cmp	w8, #255
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=2
	str	w8, [x20, w19, uxtw #2]
	add	w19, w19, #1
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=2
	ldrb	w8, [x26, x24]
	cmp	w8, #255
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=2
	str	w8, [x20, w19, uxtw #2]
	add	w19, w19, #1
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w19, #3
	b.lo	LBB0_7
; %bb.23:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x0, sp, #48
	mov	x1, x19
	bl	_eedi2_sort_metrics
	tbnz	w19, #0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_8 Depth=2
	sub	w8, w19, #1
	lsr	w8, w8, #1
	ldr	w8, [x20, w8, uxtw #2]
	lsr	w9, w19, #1
	ldr	w9, [x20, w9, uxtw #2]
	add	w8, w8, w9
	add	w8, w8, #1
	asr	w8, w8, #1
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_8 Depth=2
	lsr	w8, w19, #1
	ldr	w8, [x20, w8, uxtw #2]
LBB0_26:                                ;   in Loop: Header=BB0_8 Depth=2
Lloh3:
	adrp	x9, _eedi2_limlut@GOTPAGE
Lloh4:
	ldr	x9, [x9, _eedi2_limlut@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #128
	sub	w10, w10, w8
	subs	w11, w8, #128
	csel	w10, w10, w11, lt
	asr	w10, w10, #2
	ldr	w9, [x9, w10, sxtw #2]
	ldr	w10, [x21, x27, lsl #2]
	ldrb	w12, [x26, x27]
	subs	w11, w10, w12
	cneg	w11, w11, mi
	cmp	w11, w9
	mov	w16, #255
	ccmp	w10, w16, #4, gt
	ccmp	w12, w16, #4, ne
	cset	w10, eq
	ldr	w11, [x21, x28, lsl #2]
	ldrb	w13, [x26, x28]
	subs	w14, w11, w13
	cneg	w14, w14, mi
	cmp	w10, #0
	mov	w15, #1
	cinc	w15, w15, ne
	cmp	w13, #255
	ccmp	w11, w16, #4, ne
	ccmp	w14, w9, #4, ne
	csel	w10, w15, w10, le
	ldr	w11, [x21, x24, lsl #2]
	subs	w12, w11, w12
	cneg	w12, w12, mi
	cmp	w12, w9
	b.le	LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w11, #255
	b.eq	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_8 Depth=2
	ldrb	w11, [x26, x24]
	cmp	w11, #255
	b.ne	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w10, w10, #1
LBB0_30:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w10, #2
	b.lo	LBB0_7
; %bb.31:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w10, w19
	cmp	w19, #16
	b.hs	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x13, #0
	mov	w12, #0
	mov	w11, #0
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_8 Depth=2
	dup.4s	v0, w9
	dup.4s	v1, w8
	and	x13, x10, #0x30
	ldp	q2, q3, [sp, #48]
	ldp	q4, q5, [sp, #80]
	sub.4s	v6, v2, v1
	sub.4s	v7, v3, v1
	sub.4s	v16, v4, v1
	sub.4s	v1, v5, v1
	abs.4s	v6, v6
	abs.4s	v7, v7
	abs.4s	v16, v16
	abs.4s	v1, v1
	cmgt.4s	v17, v6, v0
	cmgt.4s	v18, v7, v0
	cmgt.4s	v19, v16, v0
	cmgt.4s	v20, v1, v0
	cmge.4s	v6, v0, v6
	movi.4s	v21, #1
	and.16b	v6, v6, v21
	cmge.4s	v7, v0, v7
	cmge.4s	v16, v0, v16
	cmge.4s	v0, v0, v1
	bic.16b	v1, v2, v17
	bic.16b	v2, v3, v18
	bic.16b	v3, v4, v19
	bic.16b	v4, v5, v20
	sub.4s	v5, v6, v7
	sub.4s	v5, v5, v16
	sub.4s	v0, v5, v0
	addv.4s	s0, v0
	fmov	w11, s0
	add.4s	v0, v2, v1
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	addv.4s	s0, v0
	fmov	w12, s0
	cmp	x13, x10
	b.eq	LBB0_36
LBB0_34:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x14, x20, x13, lsl #2
	sub	x10, x10, x13
LBB0_35:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w13, [x14], #4
	subs	w15, w13, w8
	cneg	w15, w15, mi
	cmp	w15, w9
	csel	w13, wzr, w13, gt
	cinc	w11, w11, le
	add	w12, w13, w12
	subs	x10, x10, #1
	b.ne	LBB0_35
LBB0_36:                                ;   in Loop: Header=BB0_8 Depth=2
	sub	w9, w19, #2
	cmp	w11, w9
	ccmp	w11, #2, #0, ge
	b.lo	LBB0_7
; %bb.37:                               ;   in Loop: Header=BB0_8 Depth=2
	add	w8, w12, w8
	scvtf	s0, w8
	add	w8, w11, #1
	scvtf	s1, w8
	fdiv	s0, s0, s1
	fadd	s0, s0, s8
	fcvtzs	w8, s0
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	w8, [x9, x28, lsl #2]
	b	LBB0_7
LBB0_38:
	ldr	x8, [sp, #72]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.39:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_eedi2_limlut,8,3               ; @eedi2_limlut
.subsections_via_symbols
