	.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_post_process_corner
LCPI0_0:
	.quad	0xbfb70a3d70a3d70a              ## double -0.089999999999999996
	.quad	0xbfb70a3d70a3d70a              ## double -0.089999999999999996
LCPI0_1:
	.long	775                             ## 0x307
	.long	775                             ## 0x307
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_eedi2_post_process_corner
	.p2align	4, 0x90
_eedi2_post_process_corner:             ## @eedi2_post_process_corner
	.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	32(%rbp), %eax
	movl	$8, %ebx
	subl	48(%rbp), %ebx
	addl	$-7, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %ebx
	jge	LBB0_10
## %bb.1:
	movl	24(%rbp), %r15d
	movq	16(%rbp), %r11
	movslq	%ecx, %rbx
	leal	(%rbx,%rbx,2), %ecx
	movslq	%ecx, %r10
	leaq	(%rdi,%r10,4), %r13
	leaq	(%rsi,%r10,4), %r14
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	imull	%r15d, %ecx
	movslq	%ecx, %rcx
	leaq	(%r11,%rcx,4), %rcx
	movslq	%r15d, %r11
	leaq	(,%r11,4), %r15
	movq	%rcx, %rax
	subq	%r15, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	imull	%r9d, %eax
	cltq
	leaq	(%r8,%rax,4), %rax
	leaq	(%rdx,%r10,4), %r15
	addq	%rbx, %r10
	leaq	(%rdx,%r10,4), %rdx
	addq	$16, %rdx
	leaq	16(%rsi,%r10,4), %rsi
	leaq	(%rdi,%r10,4), %rdi
	addq	$16, %rdi
	movq	%rcx, %r12
	leaq	(%rcx,%r11,4), %r8
	addl	%r9d, %r9d
	movslq	%r9d, %rcx
	addl	%r11d, %r11d
	movslq	%r11d, %r10
	shlq	$2, %rbx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	40(%rbp), %ecx
	leal	-4(%rcx), %r9d
	addq	$-4, %r9
	movapd	LCPI0_0(%rip), %xmm0            ## xmm0 = [-8.9999999999999996E-2,-8.9999999999999996E-2]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <775,775,u,u>
	movq	%r10, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%r10,4), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, -56(%rbp)                 ## 8-byte Folded Spill
	addq	%rcx, %r8
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	$2, %ecx
	addq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rdx
	addq	%rbx, %rsi
	addq	%rbx, %rdi
	addq	%rbx, %r15
	addq	%rbx, %r14
	addq	%rbx, %r13
	addq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	40(%rbp), %ecx
	cmpl	$9, %ecx
	jl	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r10d, %r10d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r10
	cmpq	%r10, %r9
	je	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%rax,%r10,4), %r11d
	cmpl	$128, %r11d
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$255, %r11d
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movd	(%rsi,%r10,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	pinsrd	$1, 16(%r14,%r10,4), %xmm2
	movd	(%rdi,%r10,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	pinsrd	$1, 16(%r13,%r10,4), %xmm3
	movdqa	%xmm2, %xmm4
	pmulld	%xmm3, %xmm4
	movd	(%rdx,%r10,4), %xmm5            ## xmm5 = mem[0],zero,zero,zero
	pinsrd	$1, 16(%r15,%r10,4), %xmm5
	pmulld	%xmm5, %xmm5
	psubd	%xmm5, %xmm4
	cvtdq2pd	%xmm4, %xmm4
	paddd	%xmm2, %xmm3
	cvtdq2pd	%xmm3, %xmm2
	movapd	%xmm2, %xmm3
	mulpd	%xmm0, %xmm3
	mulpd	%xmm2, %xmm3
	addpd	%xmm4, %xmm3
	cvttpd2dq	%xmm3, %xmm2
	pcmpgtd	%xmm1, %xmm2
	pmovsxdq	%xmm2, %xmm2
	movmskpd	%xmm2, %ebx
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movzbl	4(%rcx,%r10), %ebx
	movzbl	4(%r8,%r10), %ecx
	addl	%ebx, %ecx
	incl	%ecx
	shrl	%ecx
	movl	%ecx, 16(%r12,%r10,4)
	jmp	LBB0_8
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eedi2_post_process_corner      ; -- Begin function eedi2_post_process_corner
	.p2align	2
_eedi2_post_process_corner:             ; @eedi2_post_process_corner
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	.cfi_offset w23, -40
	.cfi_offset w24, -48
                                        ; kill: def $w7 killed $w7 def $x7
                                        ; kill: def $w3 killed $w3 def $x3
	ldr	w8, [sp, #48]
	ldr	w9, [sp, #56]
	mov	w10, #8
	sub	w8, w8, #7
	sub	w9, w10, w9
	cmp	w9, w8
	b.ge	LBB0_11
; %bb.1:
	add	w17, w3, w3, lsl #1
	sxtw	x19, w3
	sbfiz	x12, x17, #2, #32
	add	x10, x0, x12
	add	x11, x1, x12
	add	x12, x2, x12
	mul	w13, w9, w7
	add	x13, x6, w13, sxtw #2
	sbfiz	x15, x7, #2, #32
	add	x14, x13, x15
	sub	x15, x13, x15
	mul	w6, w9, w5
	lsl	w20, w5, #1
	sbfiz	x16, x7, #1, #32
	add	x17, x19, w17, sxtw
	lsl	x17, x17, #2
	add	x3, x17, #16
	ldr	w17, [sp, #52]
	add	x2, x2, x3
	add	x1, x1, x3
	add	x0, x0, x3
	sub	w21, w17, #4
	sbfiz	x3, x7, #3, #32
	lsl	x5, x19, #2
	add	x4, x4, w6, sxtw #2
	sub	x6, x21, #4
	mov	x7, #55050
	movk	x7, #28835, lsl #16
	movk	x7, #2621, lsl #32
	movk	x7, #49079, lsl #48
	sbfiz	x19, x20, #2, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x15, x15, x16
	add	x14, x14, x16
	add	w9, w9, #2
	add	x13, x13, x3
	add	x2, x2, x5
	add	x1, x1, x5
	add	x0, x0, x5
	add	x12, x12, x5
	add	x11, x11, x5
	add	x10, x10, x5
	add	x4, x4, x19
	cmp	w9, w8
	b.ge	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w17, #9
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x21, x15, x20
	ldrb	w21, [x21, #4]
	add	x22, x14, x20
	ldrb	w22, [x22, #4]
	add	w21, w21, w22
	add	w21, w21, #1
	lsr	w21, w21, #1
	add	x22, x13, x20, lsl #2
	str	w21, [x22, #16]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x20, x20, #1
	cmp	x6, x20
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x21, x4, x20, lsl #2
	ldr	w21, [x21, #16]
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w21, #255
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	lsl	x21, x20, #2
	add	x22, x10, x21
	ldr	w22, [x22, #16]
	add	x23, x11, x21
	ldr	w23, [x23, #16]
	add	x24, x12, x21
	ldr	w24, [x24, #16]
	mul	w24, w24, w24
	neg	w24, w24
	madd	w24, w23, w22, w24
	scvtf	d1, w24
	add	w22, w23, w22
	scvtf	d2, w22
	fmov	d0, x7
	fmul	d3, d2, d0
	fmadd	d1, d3, d2, d1
	fcvtzs	w22, d1
	cmp	w22, #775
	b.gt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w22, [x0, x21]
	ldr	w23, [x1, x21]
	ldr	w21, [x2, x21]
	mul	w21, w21, w21
	neg	w21, w21
	madd	w21, w23, w22, w21
	scvtf	d1, w21
	add	w21, w23, w22
	scvtf	d2, w21
	fmul	d0, d2, d0
	fmadd	d0, d0, d2, d1
	fcvtzs	w21, d0
	cmp	w21, #776
	b.lt	LBB0_6
	b	LBB0_5
LBB0_11:
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
