	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frame_sum_square_err
_frame_sum_square_err:                  ## @frame_sum_square_err
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HIST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	xorpd	%xmm0, %xmm0
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_1:
	xorps	%xmm0, %xmm0
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %edx
	andl	$-2, %edx
	xorpd	%xmm1, %xmm1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rdi,%rcx,4), %xmm0
	movsd	(%rsi,%rcx,8), %xmm2            ## xmm2 = mem[0],zero
	subsd	%xmm0, %xmm2
	movsd	8(%rsi,%rcx,8), %xmm0           ## xmm0 = mem[0],zero
	mulsd	%xmm2, %xmm2
	addsd	%xmm1, %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2sdl	4(%rdi,%rcx,4), %xmm1
	subsd	%xmm1, %xmm0
	mulsd	%xmm0, %xmm0
	addsd	%xmm2, %xmm0
	addq	$2, %rcx
	movapd	%xmm0, %xmm1
	cmpq	%rcx, %rdx
	jne	LBB0_5
LBB0_6:
	testb	$1, %al
	je	LBB0_8
## %bb.7:
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%rdi,%rcx,4), %xmm2
	movsd	(%rsi,%rcx,8), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm2, %xmm1
	mulsd	%xmm1, %xmm1
	addsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIST_SIZE,4,2                  ## @HIST_SIZE
	.no_dead_strip	_frame_sum_square_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frame_sum_square_err
_frame_sum_square_err:                  ; @frame_sum_square_err
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _HIST_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIST_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w8, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x9, #0
	movi	d0, #0000000000000000
	b	LBB0_7
LBB0_3:
	movi	d0, #0000000000000000
	ret
LBB0_4:
	and	x9, x8, #0xfffffff8
	add	x10, x0, #16
	add	x11, x1, #32
	movi	d0, #0000000000000000
	mov	x12, x9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11], #64
	ldp	d5, d6, [x10, #-16]
	ldp	d7, d16, [x10], #32
	sshll.2d	v5, v5, #0
	scvtf.2d	v5, v5
	sshll.2d	v6, v6, #0
	scvtf.2d	v6, v6
	sshll.2d	v7, v7, #0
	scvtf.2d	v7, v7
	sshll.2d	v16, v16, #0
	scvtf.2d	v16, v16
	fsub.2d	v1, v1, v5
	fsub.2d	v2, v2, v6
	fsub.2d	v3, v3, v7
	fsub.2d	v4, v4, v16
	fmul.2d	v1, v1, v1
	mov	d5, v1[1]
	fmul.2d	v2, v2, v2
	mov	d6, v2[1]
	fmul.2d	v3, v3, v3
	mov	d7, v3[1]
	fmul.2d	v4, v4, v4
	mov	d16, v4[1]
	fadd	d0, d0, d1
	fadd	d0, d0, d5
	fadd	d0, d0, d2
	fadd	d0, d0, d6
	fadd	d0, d0, d3
	fadd	d0, d0, d7
	fadd	d0, d0, d4
	fadd	d0, d0, d16
	subs	x12, x12, #8
	b.ne	LBB0_5
; %bb.6:
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_7:
	add	x10, x0, x9, lsl #2
	sub	x8, x8, x9
	add	x9, x1, x9, lsl #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x9], #8
	ldr	w11, [x10], #4
	scvtf	d2, w11
	fsub	d1, d1, d2
	fmadd	d0, d1, d1, d0
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HIST_SIZE,4,2                  ; @HIST_SIZE
	.no_dead_strip	_frame_sum_square_err
.subsections_via_symbols
