	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_images_mse
_compute_images_mse:                    ## @compute_images_mse
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorpd	%xmm1, %xmm1
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	imull	%r13d, %r14d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r14d, %xmm0
	divsd	%xmm0, %xmm1
	movq	24(%rbp), %rcx
	movsd	%xmm1, (%rcx,%rsi,8)
	incq	%rsi
	movslq	%eax, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdi
	movl	(%rcx,%rsi,4), %r13d
	movl	(%rdi,%rsi,4), %r14d
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax,%rsi,4), %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax,%rsi,4), %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rsi,8), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rsi,8), %r12
	shlq	$2, %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	xorps	%xmm1, %xmm1
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	%xmm1, -112(%rbp)               ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	*24(%rbx)
	movsd	-112(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	addsd	%xmm0, %xmm1
	addq	-96(%rbp), %r15                 ## 8-byte Folded Reload
	addq	-104(%rbp), %r12                ## 8-byte Folded Reload
	decl	%r14d
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_7
LBB0_8:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compute_images_mse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_images_mse
_compute_images_mse:                    ; @compute_images_mse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	stp	x3, x4, [sp, #16]               ; 16-byte Folded Spill
	stp	x1, x2, [sp]                    ; 16-byte Folded Spill
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x7
	mov	x24, x0
	mov	x28, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	movi	d8, #0000000000000000
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mul	w9, w23, w25
	scvtf	d0, w9
	fdiv	d0, d8, d0
	str	d0, [x19, x28, lsl #3]
	add	x28, x28, #1
	cmp	x28, w8, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	lsl	x9, x28, #2
	ldp	x10, x11, [x24, #8]
	ldr	w25, [x10, x9]
	ldr	w23, [x11, x9]
	cmp	w23, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x11, [sp, #8]               ; 16-byte Folded Reload
	ldrsw	x8, [x8, x9]
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	ldrsw	x9, [x10, x9]
	lsl	x10, x28, #3
	ldr	x26, [x11, x10]
	ldr	x11, [sp]                       ; 8-byte Folded Reload
	ldr	x27, [x11, x10]
	lsl	x21, x9, #2
	lsl	x22, x8, #2
	movi	d8, #0000000000000000
	mov	x20, x23
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24, #24]
	mov	x0, x27
	mov	x1, x26
	mov	x2, x25
	blr	x8
	scvtf	d0, x0
	fadd	d8, d8, d0
	add	x26, x26, x21
	add	x27, x27, x22
	subs	w20, w20, #1
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	b	LBB0_3
LBB0_8:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compute_images_mse
.subsections_via_symbols
