	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssd_plane                      ## -- Begin function ssd_plane
	.p2align	4, 0x90
_ssd_plane:                             ## @ssd_plane
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r9d
	cmpl	$8, %edx
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%r9d, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r8, %rcx
	andq	$-2, %rcx
	pxor	%xmm2, %xmm2
	xorl	%eax, %eax
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rax,4), %xmm4
	movdqu	16(%rdi,%rax,4), %xmm5
	movdqu	32(%rdi,%rax,4), %xmm0
	movdqu	48(%rdi,%rax,4), %xmm1
	movdqu	(%rsi,%rax,4), %xmm6
	psubd	%xmm6, %xmm4
	movdqu	16(%rsi,%rax,4), %xmm6
	psubd	%xmm6, %xmm5
	movdqu	32(%rsi,%rax,4), %xmm6
	psubd	%xmm6, %xmm0
	movdqu	48(%rsi,%rax,4), %xmm6
	psubd	%xmm6, %xmm1
	pmulld	%xmm4, %xmm4
	paddd	%xmm2, %xmm4
	pmulld	%xmm5, %xmm5
	paddd	%xmm3, %xmm5
	pmulld	%xmm0, %xmm0
	paddd	%xmm4, %xmm0
	pmulld	%xmm1, %xmm1
	paddd	%xmm5, %xmm1
	addq	$16, %rax
	movdqa	%xmm0, %xmm2
	movdqa	%xmm1, %xmm3
	addq	$-2, %rcx
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	movdqu	(%rdi,%rax,4), %xmm2
	movdqu	16(%rdi,%rax,4), %xmm3
	movdqu	(%rsi,%rax,4), %xmm4
	psubd	%xmm4, %xmm2
	movdqu	16(%rsi,%rax,4), %xmm4
	psubd	%xmm4, %xmm3
	pmulld	%xmm2, %xmm2
	paddd	%xmm2, %xmm0
	pmulld	%xmm3, %xmm3
	paddd	%xmm3, %xmm1
LBB0_10:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%r9, %rdx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rdx,4), %ecx
	subl	(%rsi,%rdx,4), %ecx
	imull	%ecx, %ecx
	addl	%ecx, %eax
	incq	%rdx
	cmpq	%rdx, %r9
	jne	LBB0_11
LBB0_12:
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm0, %xmm0
	xorl	%eax, %eax
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssd_plane                      ; -- Begin function ssd_plane
	.p2align	2
_ssd_plane:                             ; @ssd_plane
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w9, w2
	cmp	w2, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w8, #0
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	and	x10, x9, #0xfffffff0
	add	x8, x1, #32
	add	x11, x0, #32
	movi.2d	v0, #0000000000000000
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	ldp	q16, q17, [x8, #-32]
	ldp	q18, q19, [x8], #64
	sub.4s	v4, v4, v16
	sub.4s	v5, v5, v17
	sub.4s	v6, v6, v18
	sub.4s	v7, v7, v19
	mla.4s	v0, v4, v4
	mla.4s	v1, v5, v5
	mla.4s	v2, v6, v6
	mla.4s	v3, v7, v7
	subs	x12, x12, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w8, s0
	cmp	x10, x9
	b.eq	LBB0_9
LBB0_7:
	lsl	x12, x10, #2
	add	x11, x1, x12
	add	x12, x0, x12
	sub	x9, x9, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x12], #4
	ldr	w13, [x11], #4
	sub	w10, w10, w13
	madd	w8, w10, w10, w8
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
