	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ssim_end1x
LCPI0_0:
	.quad	0x3f4d7dbf487fcb92              ## double 8.9999999999999998E-4
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x3f1a36e2eb1c432d              ## double 1.0E-4
	.space	8
LCPI0_2:
	.space	8
	.quad	0x4050000000000000              ## double 64
LCPI0_3:
	.quad	0x4050000000000000              ## double 64
	.quad	0x404f800000000000              ## double 63
LCPI0_4:
	.quad	0x3fe0000000000000              ## double 0.5
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ssim_end1x:                            ## @ssim_end1x
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cvtsi2sd	%r8d, %xmm0
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $esi killed $esi def $rsi
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	shll	$6, %edx
	movl	%esi, %eax
	imull	%edi, %esi
	imull	%edi, %edi
	imull	%eax, %eax
	addl	%edi, %eax
	shll	$6, %ecx
	movapd	LCPI0_1(%rip), %xmm2            ## xmm2 = <1.0E-4,u>
	unpcklpd	%xmm1, %xmm2                    ## xmm2 = xmm2[0],xmm1[0]
	movddup	%xmm0, %xmm1                    ## xmm1 = xmm0[0,0]
	mulpd	%xmm2, %xmm1
	blendpd	$2, LCPI0_2(%rip), %xmm0        ## xmm0 = xmm0[0],mem[1]
	mulpd	%xmm1, %xmm0
	mulpd	LCPI0_3(%rip), %xmm0
	addpd	LCPI0_4(%rip), %xmm0
	subl	%esi, %ecx
	cvttpd2dq	%xmm0, %xmm1
	movd	%xmm1, %edi
	leal	(%rdi,%rsi,2), %esi
	xorps	%xmm2, %xmm2
	cvtsi2ss	%esi, %xmm2
	subl	%eax, %edx
	pextrd	$1, %xmm1, %esi
	leal	(%rsi,%rcx,2), %ecx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	mulss	%xmm2, %xmm0
	movd	%eax, %xmm2
	pinsrd	$1, %edx, %xmm2
	paddd	%xmm1, %xmm2
	cvtdq2ps	%xmm2, %xmm1
	movshdup	%xmm1, %xmm2                    ## xmm2 = xmm1[1,1,3,3]
	mulss	%xmm1, %xmm2
	divss	%xmm2, %xmm0
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ssim_end1x
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssim_end1x
_ssim_end1x:                            ; @ssim_end1x
	.cfi_startproc
; %bb.0:
	mov	x8, #17197
	movk	x8, #60188, lsl #16
	movk	x8, #14050, lsl #32
	movk	x8, #16154, lsl #48
	scvtf	d0, w4
	fmov	d1, x8
	fmul	d1, d0, d1
	fmul	d1, d1, d0
	mov	x8, #4634204016564240384
	fmov	d2, x8
	fmov	d3, #0.50000000
	fmadd	d1, d1, d2, d3
	fcvtzs	w8, d1
	mov	x9, #52114
	movk	x9, #18559, lsl #16
	movk	x9, #32191, lsl #32
	movk	x9, #16205, lsl #48
	fmov	d1, x9
	fmul	d1, d0, d1
	fmul	d0, d1, d0
	fmul	d0, d0, d2
	mov	x9, #140737488355328
	movk	x9, #16463, lsl #48
	fmov	d1, x9
	fmadd	d0, d0, d1, d3
	fcvtzs	w9, d0
	lsl	w10, w2, #6
	mul	w11, w0, w0
	lsl	w12, w3, #6
	mul	w13, w1, w0
	sub	w12, w12, w13
	add	w13, w8, w13, lsl #1
	scvtf	s0, w13
	add	w12, w9, w12, lsl #1
	scvtf	s1, w12
	madd	w11, w1, w1, w11
	fmul	s0, s0, s1
	add	w8, w11, w8
	scvtf	s1, w8
	sub	w8, w10, w11
	add	w8, w8, w9
	scvtf	s2, w8
	fmul	s1, s1, s2
	fdiv	s0, s0, s1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ssim_end1x
.subsections_via_symbols
