	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssim_endn_16bit
_ssim_endn_16bit:                       ## @ssim_endn_16bit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%ecx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	%edx, %r12d
	shlq	$5, %r12
	xorps	%xmm0, %xmm0
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	32(%r13,%rbx), %rdi
	movq	40(%r13,%rbx), %rsi
	addq	(%r13,%rbx), %rdi
	addq	(%r15,%rbx), %rdi
	addq	32(%r15,%rbx), %rdi
	addq	8(%r13,%rbx), %rsi
	addq	8(%r15,%rbx), %rsi
	addq	40(%r15,%rbx), %rsi
	movq	48(%r13,%rbx), %rdx
	addq	16(%r13,%rbx), %rdx
	addq	16(%r15,%rbx), %rdx
	addq	48(%r15,%rbx), %rdx
	movq	56(%r13,%rbx), %rcx
	addq	24(%r13,%rbx), %rcx
	addq	24(%r15,%rbx), %rcx
	addq	56(%r15,%rbx), %rcx
	movl	%r14d, %r8d
	callq	_ssim_end1x
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addq	$32, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorps	%xmm0, %xmm0
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ssim_endn_16bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssim_endn_16bit
_ssim_endn_16bit:                       ; @ssim_endn_16bit
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x3
	mov	w20, w2
	add	x21, x1, #32
	add	x22, x0, #32
	movi	d8, #0000000000000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x22, #-32]
	ldp	x10, x11, [x22]
	ldp	x12, x13, [x21, #-32]
	add	x8, x10, x8
	add	x8, x8, x12
	ldp	x10, x12, [x21]
	add	x0, x8, x10
	add	x8, x11, x9
	add	x8, x8, x13
	add	x1, x8, x12
	ldp	x8, x9, [x22, #-16]
	ldp	x10, x11, [x22, #16]
	ldp	x12, x13, [x21, #-16]
	add	x8, x10, x8
	add	x8, x8, x12
	ldp	x10, x12, [x21, #16]
	add	x2, x8, x10
	add	x8, x11, x9
	add	x8, x8, x13
	add	x3, x8, x12
	mov	x4, x19
	bl	_ssim_end1x
	scvtf	s0, x0
	fadd	s8, s8, s0
	add	x21, x21, #32
	add	x22, x22, #32
	subs	x20, x20, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	movi	d8, #0000000000000000
LBB0_4:
	fmov	s0, s8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ssim_endn_16bit
.subsections_via_symbols
