	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsse8_c
_nsse8_c:                               ## @nsse8_c
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%r8d, %r8d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%rdx, %r13
	movq	%rsi, %r12
	movslq	%ecx, %rcx
	leaq	(%rsi,%rcx,4), %rax
	addq	$4, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rcx,4), %rax
	addq	$4, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movdqa	-160(%rbp), %xmm1               ## 16-byte Reload
	movdqa	-144(%rbp), %xmm0               ## 16-byte Reload
	movdqa	-128(%rbp), %xmm2               ## 16-byte Reload
	movdqa	-112(%rbp), %xmm3               ## 16-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	psubd	%xmm3, %xmm1
	psubd	%xmm2, %xmm0
	pmulld	%xmm0, %xmm0
	pmulld	%xmm1, %xmm1
	paddd	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r14d
	addq	%rcx, %r12
	addq	%rcx, %r13
	addq	%rcx, -64(%rbp)                 ## 8-byte Folded Spill
	addq	%rcx, -56(%rbp)                 ## 8-byte Folded Spill
	cmpl	%r8d, %edx
	je	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movdqu	(%r12), %xmm1
	movdqu	16(%r12), %xmm0
	movdqu	(%r13), %xmm3
	movdqu	16(%r13), %xmm2
	incl	%edx
	cmpl	%r8d, %edx
	jge	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movdqa	%xmm3, -112(%rbp)               ## 16-byte Spill
	movdqa	%xmm2, -128(%rbp)               ## 16-byte Spill
	movdqa	%xmm0, -144(%rbp)               ## 16-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movdqa	%xmm1, -160(%rbp)               ## 16-byte Spill
	movd	%xmm1, %edi
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-4(%rcx,%r15), %eax
	addl	4(%r12,%r15), %eax
	subl	%eax, %edi
	addl	(%rcx,%r15), %edi
	callq	_FFABS
	movl	%eax, %r14d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-4(%rcx,%r15), %eax
	addl	4(%r13,%r15), %eax
	movl	(%r13,%r15), %edi
	subl	%eax, %edi
	addl	(%rcx,%r15), %edi
	callq	_FFABS
	addl	%r14d, %ebx
	subl	%eax, %ebx
	cmpq	$24, %r15
	je	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	4(%r12,%r15), %edi
	addq	$4, %r15
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %edi
	callq	_FFABS
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	movq	(%rcx), %rcx
	imull	(%rcx), %eax
	jmp	LBB0_11
LBB0_10:
	shll	$3, %eax
LBB0_11:
	addl	%r14d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nsse8_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsse8_c
_nsse8_c:                               ; @nsse8_c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
                                        ; kill: def $w3 killed $w3 def $x3
	cmp	w4, #1
	str	x0, [sp]                        ; 8-byte Folded Spill
	b.lt	LBB0_8
; %bb.1:
	mov	x21, x2
	mov	x23, x1
	mov	w26, #0
	mov	w22, #0
	mov	w25, #0
	sbfiz	x19, x3, #2, #32
	str	w4, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w4, [sp, #12]                   ; 4-byte Folded Reload
	ldp	q0, q1, [sp, #48]               ; 32-byte Folded Reload
	ldp	q3, q2, [sp, #16]               ; 32-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub.4s	v0, v0, v3
	sub.4s	v1, v1, v2
	mul.4s	v1, v1, v1
	mla.4s	v1, v0, v0
	addv.4s	s0, v1
	fmov	w8, s0
	add	w25, w8, w25
	add	x23, x23, x19
	add	x21, x21, x19
	cmp	w26, w4
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldp	q0, q1, [x23]
	ldp	q3, q2, [x21]
	add	w26, w26, #1
	cmp	w26, w4
	b.ge	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	q3, q2, [sp, #16]               ; 32-byte Folded Spill
	stp	q0, q1, [sp, #48]               ; 32-byte Folded Spill
	mov	x28, #0
	fmov	w8, s0
	mov	x27, x19
	mov	w20, #4
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x23, x20]
	add	x10, x23, x27
	ldp	w11, w10, [x10]
	add	w9, w11, w9
	sub	w8, w8, w9
	add	w0, w8, w10
	bl	_FFABS
	mov	x24, x0
	add	x8, x21, x28
	add	x9, x21, x27
	ldp	w10, w8, [x8]
	ldp	w11, w9, [x9]
	add	w8, w11, w8
	sub	w8, w10, w8
	add	w0, w8, w9
	bl	_FFABS
	add	w8, w24, w22
	sub	w22, w8, w0
	cmp	x20, #28
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x23, x20]
	add	x20, x20, #4
	add	x27, x27, #4
	add	x28, x28, #4
	b	LBB0_6
LBB0_8:
	mov	w25, #0
	mov	w22, #0
LBB0_9:
	mov	x0, x22
	bl	_FFABS
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cbz	x8, LBB0_11
; %bb.10:
	ldr	x8, [x8]
	ldr	w8, [x8]
	mul	w8, w8, w0
	b	LBB0_12
LBB0_11:
	lsl	w8, w0, #3
LBB0_12:
	add	w0, w8, w25
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nsse8_c
.subsections_via_symbols
