	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function print_results
LCPI0_0:
	.quad	0x4010000000000000              ## double 4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_print_results:                         ## @print_results
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	(%rdi), %edi
	imull	%edx, %r13d
	imull	%r8d, %r13d
	movl	%r13d, %esi
	callq	_ssd_to_psnr
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movl	4(%r12), %edi
	leal	3(%r13), %ebx
	testl	%r13d, %r13d
	cmovnsl	%r13d, %ebx
	sarl	$2, %ebx
	movl	%ebx, %esi
	callq	_ssd_to_psnr
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movl	8(%r12), %edi
	movl	%ebx, %esi
	callq	_ssd_to_psnr
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	4(%r12), %edi
	addl	(%r12), %edi
	addl	8(%r12), %edi
	leal	(%r13,%r13,2), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	callq	_ssd_to_psnr
	movaps	%xmm0, %xmm3
	leaq	L_.str(%rip), %rdi
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movb	$4, %al
	callq	_printf
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r15d, %xmm1
	movsd	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	movsd	8(%r14), %xmm2                  ## xmm2 = mem[0],zero
	movapd	%xmm0, %xmm3
	divsd	%xmm1, %xmm3
	movsd	%xmm3, -64(%rbp)                ## 8-byte Spill
	mulsd	LCPI0_0(%rip), %xmm0
	addsd	%xmm2, %xmm0
	divsd	%xmm1, %xmm2
	movsd	%xmm2, -56(%rbp)                ## 8-byte Spill
	movsd	16(%r14), %xmm2                 ## xmm2 = mem[0],zero
	addsd	%xmm2, %xmm0
	divsd	%xmm1, %xmm2
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	addl	%r15d, %r15d
	leal	(%r15,%r15,2), %edi
	xorps	%xmm1, %xmm1
	cvtsi2sd	%edi, %xmm1
	movapd	%xmm0, %xmm2
	divsd	%xmm1, %xmm2
	movsd	%xmm2, -72(%rbp)                ## 8-byte Spill
	callq	_ssim_db
	movapd	%xmm0, %xmm4
	leaq	L_.str.1(%rip), %rdi
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	-72(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	movb	$5, %al
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PSNR Y:%.3f  U:%.3f  V:%.3f  All:%.3f | "

L_.str.1:                               ## @.str.1
	.asciz	"SSIM Y:%.5f U:%.5f V:%.5f All:%.5f (%.5f)"

	.no_dead_strip	_print_results
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_results
_print_results:                         ; @print_results
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	mul	w8, w3, w2
	mul	w22, w8, w4
	mov	x1, x22
	bl	_ssd_to_psnr
	fmov	d8, d0
	ldr	w0, [x21, #4]
	add	w8, w22, #3
	cmp	w22, #0
	csel	w8, w8, w22, lt
	asr	w23, w8, #2
	mov	x1, x23
	bl	_ssd_to_psnr
	fmov	d9, d0
	ldr	w0, [x21, #8]
	mov	x1, x23
	bl	_ssd_to_psnr
	fmov	d10, d0
	ldp	w8, w9, [x21]
	ldr	w10, [x21, #8]
	add	w8, w9, w8
	add	w0, w8, w10
	add	w8, w22, w22, lsl #1
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	bl	_ssd_to_psnr
	fmov	d3, d0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	fmov	d0, d8
	fmov	d1, d9
	fmov	d2, d10
	bl	_printf
	scvtf	d0, w19
	ldp	d1, d2, [x20]
	fdiv	d8, d1, d0
	fdiv	d9, d2, d0
	ldr	d3, [x20, #16]
	fdiv	d10, d3, d0
	fmov	d0, #4.00000000
	fmadd	d0, d1, d0, d2
	fadd	d0, d0, d3
	add	w8, w19, w19, lsl #1
	lsl	w0, w8, #1
	scvtf	d1, w0
	fdiv	d11, d0, d1
	bl	_ssim_db
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	str	d0, [sp]
	fmov	d0, d8
	fmov	d1, d9
	fmov	d2, d10
	fmov	d3, d11
	bl	_printf
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PSNR Y:%.3f  U:%.3f  V:%.3f  All:%.3f | "

l_.str.1:                               ; @.str.1
	.asciz	"SSIM Y:%.5f U:%.5f V:%.5f All:%.5f (%.5f)"

	.no_dead_strip	_print_results
.subsections_via_symbols
