	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_input_ref
_config_input_ref:                      ## @config_input_ref
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %r14
	movq	16(%rbx), %rdi
	movq	8(%rdi), %r15
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	(%rdi), %rcx
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movq	(%rax), %rdx
	cmpq	(%rcx), %rdx
	jne	LBB0_2
## %bb.1:
	movq	8(%rax), %rdx
	cmpq	8(%rcx), %rdx
	jne	LBB0_2
## %bb.4:
	movq	16(%rax), %rax
	cmpq	16(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	8(%r14), %rax
	movb	(%rax), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	movq	8(%r15), %rsi
	movl	%edx, (%rsi)
	movb	4(%rax), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	movl	%edx, 4(%rsi)
	movb	8(%rax), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	movl	$-1, %edi
	notl	%edx
	movl	%edx, 8(%rsi)
	movb	12(%rax), %cl
	shll	%cl, %edi
	notl	%edi
	movl	%edi, 12(%rsi)
	movl	64(%r15), %edi
	movl	8(%rbx), %esi
	callq	_ff_fill_rgba_map
	movq	%rax, %rcx
	shrq	$63, %rcx
	xorl	$1, %ecx
	testq	%rax, %rax
	movl	%ecx, 16(%r15)
	movl	$114, %eax
	movl	$121, %ecx
	cmovnsl	%eax, %ecx
	movq	24(%r15), %rax
	movb	%cl, (%rax)
	cmpl	$0, 16(%r15)
	movl	$117, %eax
	movl	$103, %ecx
	cmovel	%eax, %ecx
	movq	24(%r15), %rax
	movb	%cl, 1(%rax)
	cmpl	$0, 16(%r15)
	movl	$118, %eax
	movl	$98, %ecx
	cmovel	%eax, %ecx
	movq	24(%r15), %rax
	movb	%cl, 2(%rax)
	movq	24(%r15), %rax
	movb	$97, 3(%rax)
	movl	(%rbx), %edi
	movl	20(%r14), %esi
	callq	_AV_CEIL_RSHIFT
	movq	32(%r15), %rcx
	movl	%eax, 8(%rcx)
	movl	%eax, 4(%rcx)
	movl	(%rbx), %eax
	movl	%eax, 12(%rcx)
	movl	%eax, (%rcx)
	movl	4(%rbx), %edi
	movl	16(%r14), %esi
	callq	_AV_CEIL_RSHIFT
	movq	40(%r15), %r12
	movl	%eax, 8(%r12)
	movl	%eax, 4(%r12)
	movl	4(%rbx), %edx
	movl	%edx, 12(%r12)
	movl	%edx, (%r12)
	movl	(%r15), %r11d
	testl	%r11d, %r11d
	jle	LBB0_7
## %bb.10:
	movq	32(%r15), %r10
	movl	(%r10), %ebx
	imull	%edx, %ebx
	cmpl	$1, %r11d
	je	LBB0_21
## %bb.11:
	leaq	-1(%r11), %r8
	movl	$1, %edi
	cmpq	$8, %r8
	jb	LBB0_20
## %bb.12:
	movq	%r8, %rdi
	andq	$-8, %rdi
	movd	%ebx, %xmm0
	leaq	-8(%rdi), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%r9, %rsi
	andq	$-2, %rsi
	pxor	%xmm1, %xmm1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%r12,%rbx,4), %xmm2
	movdqu	16(%r12,%rbx,4), %xmm3
	movdqu	32(%r12,%rbx,4), %xmm4
	movdqu	48(%r12,%rbx,4), %xmm5
	movdqu	(%r10,%rbx,4), %xmm6
	pmulld	%xmm2, %xmm6
	paddd	%xmm0, %xmm6
	movdqu	16(%r10,%rbx,4), %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	movdqu	32(%r10,%rbx,4), %xmm0
	pmulld	%xmm4, %xmm0
	paddd	%xmm6, %xmm0
	movdqu	48(%r10,%rbx,4), %xmm1
	pmulld	%xmm5, %xmm1
	paddd	%xmm2, %xmm1
	addq	$16, %rbx
	addq	$-2, %rsi
	jne	LBB0_15
	jmp	LBB0_16
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_3:
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_7:
	pxor	%xmm0, %xmm0
LBB0_8:
	callq	_lrint
	movl	%eax, 60(%r15)
	movq	8(%r14), %rax
	movl	(%rax), %esi
	cmpl	$9, %esi
	jl	LBB0_9
## %bb.24:
	movq	_sse_line_16bit@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_9:
	movq	_sse_line_8bit@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movq	_ARCH_X86@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_27
## %bb.26:
	addq	$56, %r15
	movq	%r15, %rdi
	callq	_ff_psnr_init_x86
LBB0_27:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	pxor	%xmm1, %xmm1
	movl	$1, %ebx
LBB0_16:
	testb	$1, %r9b
	je	LBB0_18
## %bb.17:
	movdqu	(%r12,%rbx,4), %xmm2
	movdqu	16(%r12,%rbx,4), %xmm3
	movdqu	(%r10,%rbx,4), %xmm4
	pmulld	%xmm2, %xmm4
	paddd	%xmm4, %xmm0
	movdqu	16(%r10,%rbx,4), %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm2, %xmm1
LBB0_18:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ebx
	cmpq	%rdi, %r8
	je	LBB0_21
## %bb.19:
	orq	$1, %rdi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rdi,4), %eax
	imull	(%r10,%rdi,4), %eax
	addl	%eax, %ebx
	incq	%rdi
	cmpq	%rdi, %r11
	jne	LBB0_20
LBB0_21:
	movl	%ebx, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	movq	8(%r15), %rsi
	movq	32(%r15), %rdi
	movq	48(%r15), %rbx
	decq	%r11
	pxor	%xmm0, %xmm0
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm2
	movl	(%rdi,%rax,4), %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rcx, %xmm0
	movl	%edx, %ecx
	xorps	%xmm3, %xmm3
	cvtsi2sd	%rcx, %xmm3
	mulsd	%xmm0, %xmm3
	divsd	%xmm1, %xmm3
	movsd	%xmm3, (%rbx,%rax,8)
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rsi,%rax,4), %xmm0
	mulsd	%xmm3, %xmm0
	addsd	%xmm2, %xmm0
	cmpq	%rax, %r11
	je	LBB0_8
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	4(%r12,%rax,4), %edx
	incq	%rax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Width and height of input videos must be same.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Inputs must be of same pixel format.\n"

	.comm	_sse_line_16bit,4,2             ## @sse_line_16bit
	.comm	_sse_line_8bit,4,2              ## @sse_line_8bit
	.comm	_ARCH_X86,8,3                   ## @ARCH_X86
	.no_dead_strip	_config_input_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_input_ref
_config_input_ref:                      ; @config_input_ref
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_av_pix_fmt_desc_get
	mov	x20, x0
	ldr	x0, [x21, #16]
	ldr	w8, [x20]
	ldp	x9, x19, [x0]
	str	w8, [x19]
	ldp	x8, x9, [x9]
	ldr	x10, [x8]
	ldr	x11, [x9]
	cmp	x10, x11
	b.ne	LBB0_7
; %bb.1:
	ldr	x10, [x8, #8]
	ldr	x11, [x9, #8]
	cmp	x10, x11
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x8, #16]
	ldr	x9, [x9, #16]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	mov	w10, #-1
	lsl	w9, w10, w9
	mvn	w9, w9
	ldr	x11, [x19, #8]
	str	w9, [x11]
	ldr	w9, [x8, #4]
	lsl	w9, w10, w9
	mvn	w9, w9
	str	w9, [x11, #4]
	ldr	w9, [x8, #8]
	lsl	w9, w10, w9
	mvn	w9, w9
	str	w9, [x11, #8]
	ldr	w8, [x8, #12]
	lsl	w8, w10, w8
	mvn	w8, w8
	str	w8, [x11, #12]
	ldr	w0, [x19, #64]
	ldr	w1, [x21, #8]
	bl	_ff_fill_rgba_map
	lsr	x8, x0, #63
	eor	w8, w8, #0x1
	str	w8, [x19, #16]
	cmp	x0, #0
	mov	w8, #121
	mov	w9, #114
	csel	w8, w9, w8, ge
	ldr	x9, [x19, #24]
	strb	w8, [x9]
	ldr	w8, [x19, #16]
	mov	w9, #103
	mov	w10, #117
	cmp	w8, #0
	csel	w8, w10, w9, eq
	ldr	x9, [x19, #24]
	strb	w8, [x9, #1]
	ldr	w8, [x19, #16]
	mov	w9, #98
	mov	w10, #118
	cmp	w8, #0
	csel	w8, w10, w9, eq
	ldr	x9, [x19, #24]
	strb	w8, [x9, #2]
	ldr	x8, [x19, #24]
	mov	w9, #97
	strb	w9, [x8, #3]
	ldr	w0, [x21]
	ldr	w1, [x20, #20]
	bl	_AV_CEIL_RSHIFT
	ldr	x8, [x19, #32]
	stp	w0, w0, [x8, #4]
	ldr	w9, [x21]
	str	w9, [x8, #12]
	str	w9, [x8]
	ldr	w0, [x21, #4]
	ldr	w1, [x20, #16]
	bl	_AV_CEIL_RSHIFT
	ldr	x8, [x19, #40]
	stp	w0, w0, [x8, #4]
	ldr	w13, [x21, #4]
	str	w13, [x8, #12]
	str	w13, [x8]
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.4:
	ldr	x10, [x19, #32]
	ldr	w11, [x10]
	mul	w12, w13, w11
	cmp	w9, #1
	b.eq	LBB0_16
; %bb.5:
	sub	x14, x9, #1
	cmp	x14, #16
	b.hs	LBB0_11
; %bb.6:
	mov	w11, #1
	b	LBB0_14
LBB0_7:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
LBB0_8:
	bl	_av_log
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_9:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_10:
	movi	d0, #0000000000000000
	b	LBB0_24
LBB0_11:
	and	x15, x14, #0xfffffffffffffff0
	orr	x11, x15, #0x1
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w12
	movi.2d	v1, #0000000000000000
	add	x12, x10, #36
	add	x16, x8, #36
	mov	x17, x15
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x16, #-32]
	ldp	q6, q7, [x16], #64
	ldp	q16, q17, [x12, #-32]
	ldp	q18, q19, [x12], #64
	mla.4s	v0, v4, v16
	mla.4s	v1, v5, v17
	mla.4s	v2, v6, v18
	mla.4s	v3, v7, v19
	subs	x17, x17, #16
	b.ne	LBB0_12
; %bb.13:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w12, s0
	cmp	x14, x15
	b.eq	LBB0_16
LBB0_14:
	sub	x14, x9, x11
	lsl	x11, x11, #2
	add	x10, x10, x11
	add	x11, x8, x11
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x11], #4
	ldr	w16, [x10], #4
	madd	w12, w15, w16, w12
	subs	x14, x14, #1
	b.ne	LBB0_15
LBB0_16:
	ucvtf	d1, w12
	ldr	x12, [x19, #32]
	ldr	x11, [x19, #48]
	ldr	x10, [x19, #8]
	ldr	s0, [x12]
	ucvtf	d0, d0
	ucvtf	d2, w13
	fmul	d0, d0, d2
	fdiv	d0, d0, d1
	str	d0, [x11]
	ldr	s2, [x10]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	movi	d3, #0000000000000000
	fmadd	d0, d2, d0, d3
	cmp	w9, #1
	b.eq	LBB0_24
; %bb.17:
	sub	x14, x9, #1
	cmp	x14, #8
	b.hs	LBB0_19
; %bb.18:
	mov	w13, #1
	b	LBB0_22
LBB0_19:
	and	x15, x14, #0xfffffffffffffff8
	orr	x13, x15, #0x1
	add	x16, x10, #20
	dup.2d	v2, v1[0]
	add	x17, x8, #20
	add	x0, x11, #40
	add	x1, x12, #20
	mov	x2, x15
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldp	d3, d4, [x17, #-16]
	ldp	d5, d6, [x17], #32
	ldp	d7, d16, [x1, #-16]
	ldp	d17, d18, [x1], #32
	ushll.2d	v7, v7, #0
	ucvtf.2d	v7, v7
	ushll.2d	v16, v16, #0
	ucvtf.2d	v16, v16
	ushll.2d	v17, v17, #0
	ucvtf.2d	v17, v17
	ushll.2d	v18, v18, #0
	ucvtf.2d	v18, v18
	ushll.2d	v3, v3, #0
	ucvtf.2d	v3, v3
	ushll.2d	v4, v4, #0
	ucvtf.2d	v4, v4
	ushll.2d	v5, v5, #0
	ucvtf.2d	v5, v5
	ushll.2d	v6, v6, #0
	ucvtf.2d	v6, v6
	fmul.2d	v3, v7, v3
	fmul.2d	v4, v16, v4
	fmul.2d	v5, v17, v5
	fmul.2d	v6, v18, v6
	fdiv.2d	v3, v3, v2
	fdiv.2d	v4, v4, v2
	fdiv.2d	v5, v5, v2
	fdiv.2d	v6, v6, v2
	stp	q3, q4, [x0, #-32]
	stp	q5, q6, [x0], #64
	ldp	d7, d16, [x16, #-16]
	ldp	d17, d18, [x16], #32
	sshll.2d	v7, v7, #0
	scvtf.2d	v7, v7
	sshll.2d	v16, v16, #0
	scvtf.2d	v16, v16
	sshll.2d	v17, v17, #0
	scvtf.2d	v17, v17
	sshll.2d	v18, v18, #0
	scvtf.2d	v18, v18
	fmul.2d	v3, v3, v7
	mov	d7, v3[1]
	fmul.2d	v4, v4, v16
	mov	d16, v4[1]
	fmul.2d	v5, v5, v17
	mov	d17, v5[1]
	fmul.2d	v6, v6, v18
	mov	d18, v6[1]
	fadd	d0, d0, d3
	fadd	d0, d0, d7
	fadd	d0, d0, d4
	fadd	d0, d0, d16
	fadd	d0, d0, d5
	fadd	d0, d0, d17
	fadd	d0, d0, d6
	fadd	d0, d0, d18
	subs	x2, x2, #8
	b.ne	LBB0_20
; %bb.21:
	cmp	x14, x15
	b.eq	LBB0_24
LBB0_22:
	sub	x9, x9, x13
	lsl	x14, x13, #2
	add	x12, x12, x14
	add	x11, x11, x13, lsl #3
	add	x10, x10, x14
	add	x8, x8, x14
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x8], #4
	ldr	w14, [x12], #4
	ucvtf	d2, w14
	ucvtf	d3, w13
	fmul	d2, d2, d3
	fdiv	d2, d2, d1
	str	d2, [x11], #8
	ldr	w13, [x10], #4
	scvtf	d3, w13
	fmadd	d0, d3, d2, d0
	subs	x9, x9, #1
	b.ne	LBB0_23
LBB0_24:
	bl	_lrint
	str	w0, [x19, #60]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _sse_line_16bit@GOTPAGE
Lloh14:
	ldr	x8, [x8, _sse_line_16bit@GOTPAGEOFF]
Lloh15:
	adrp	x9, _sse_line_8bit@GOTPAGE
Lloh16:
	ldr	x9, [x9, _sse_line_8bit@GOTPAGEOFF]
	cmp	w1, #8
	csel	x8, x8, x9, gt
	ldr	w8, [x8]
	str	w8, [x19, #56]!
Lloh17:
	adrp	x8, _ARCH_X86@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ARCH_X86@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cbz	x8, LBB0_26
; %bb.25:
	mov	x0, x19
	bl	_ff_psnr_init_x86
LBB0_26:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Width and height of input videos must be same.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Inputs must be of same pixel format.\n"

	.comm	_sse_line_16bit,4,2             ; @sse_line_16bit
	.comm	_sse_line_8bit,4,2              ; @sse_line_8bit
	.comm	_ARCH_X86,8,3                   ; @ARCH_X86
	.no_dead_strip	_config_input_ref
.subsections_via_symbols
