	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eedi2_post_process             ## -- Begin function eedi2_post_process
	.p2align	4, 0x90
_eedi2_post_process:                    ## @eedi2_post_process
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	24(%rbp), %eax
	movl	$2, %r14d
	subl	16(%rbp), %r14d
	decl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r14d
	jge	LBB0_10
## %bb.1:
	movl	%r14d, %eax
	imull	%r9d, %eax
	cltq
	leaq	(%r8,%rax,4), %r12
	movslq	%r9d, %r10
	leaq	(%r12,%r10,4), %r8
	leaq	(,%r10,4), %rbx
	movq	%r12, %r15
	subq	%rbx, %r15
	movl	%r14d, %ebx
	imull	%ecx, %ebx
	movslq	%ebx, %rbx
	leaq	(%rdx,%rbx,4), %rdx
	movl	%r14d, %ebx
	imull	%esi, %ebx
	movslq	%ebx, %rbx
	leaq	(%rdi,%rbx,4), %rdi
	movq	_eedi2_limlut@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	addl	%esi, %esi
	movslq	%esi, %r9
	addl	%ecx, %ecx
	movslq	%ecx, %rsi
	addl	%r10d, %r10d
	movslq	%r10d, %r13
	movl	32(%rbp), %ecx
	leaq	(,%r13,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	shlq	$2, %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %r9
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r13, %r15
	addq	%r13, %r8
	addl	$2, %r14d
	addq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	addq	-64(%rbp), %rdx                 ## 8-byte Folded Reload
	addq	-72(%rbp), %rdi                 ## 8-byte Folded Reload
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, 32(%rbp)
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r11d, %r11d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r11
	cmpq	%r11, %rcx
	je	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi,%r11,4), %r9d
	leal	-128(%r9), %esi
	leal	-128(%r9), %eax
	negl	%eax
	cmpl	$128, %r9d
	cmovgel	%esi, %eax
	sarl	$2, %eax
	cltq
	movl	(%rdx,%r11,4), %r10d
	subl	%r10d, %r9d
	movl	%r9d, %esi
	negl	%esi
	cmovsl	%r9d, %esi
	cmpl	(%rbx,%rax,4), %esi
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$128, %r10d
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$255, %r10d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movzbl	(%r15,%r11), %eax
	movzbl	(%r8,%r11), %esi
	addl	%esi, %eax
	incl	%eax
	shrl	%eax
	movl	%eax, (%r12,%r11,4)
	jmp	LBB0_8
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_post_process             ; -- Begin function eedi2_post_process
	.p2align	2
_eedi2_post_process:                    ; @eedi2_post_process
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	.cfi_offset w19, -8
	.cfi_offset w20, -16
                                        ; kill: def $w5 killed $w5 def $x5
	mov	w9, #2
	sub	w8, w7, #1
	sub	w9, w9, w6
	cmp	w9, w8
	b.ge	LBB0_10
; %bb.1:
	ldr	w10, [sp, #16]
	mul	w11, w9, w5
	add	x11, x4, w11, sxtw #2
	sbfiz	x13, x5, #2, #32
	add	x12, x11, x13
	sub	x13, x11, x13
	mul	w14, w9, w3
	add	x14, x2, w14, sxtw #2
	mul	w15, w9, w1
	add	x15, x0, w15, sxtw #2
Lloh0:
	adrp	x16, _eedi2_limlut@GOTPAGE
Lloh1:
	ldr	x16, [x16, _eedi2_limlut@GOTPAGEOFF]
Lloh2:
	ldr	x16, [x16]
	lsl	w2, w1, #1
	lsl	w1, w3, #1
	sbfiz	x17, x5, #1, #32
	sbfiz	x0, x5, #3, #32
	sbfiz	x1, x1, #2, #32
	sbfiz	x2, x2, #2, #32
	mov	w3, #128
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, x17
	add	x12, x12, x17
	add	w9, w9, #2
	add	x11, x11, x0
	add	x14, x14, x1
	add	x15, x15, x2
	cmp	w9, w8
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w10, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x4, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x4, x4, #1
	cmp	x10, x4
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x5, x4, #2
	ldr	w6, [x15, x5]
	sub	w7, w3, w6
	subs	w19, w6, #128
	csel	w7, w7, w19, lt
	asr	w7, w7, #2
	ldr	w7, [x16, w7, sxtw #2]
	ldr	w5, [x14, x5]
	subs	w6, w6, w5
	cneg	w6, w6, mi
	cmp	w6, w7
	b.le	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	w5, #128
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	w5, #255
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldrb	w5, [x13, x4]
	ldrb	w6, [x12, x4]
	add	w5, w5, w6
	add	w5, w5, #1
	lsr	w5, w5, #1
	str	w5, [x11, x4, lsl #2]
	b	LBB0_5
LBB0_10:
	ldp	x20, x19, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_eedi2_limlut,8,3               ; @eedi2_limlut
.subsections_via_symbols
