	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ComputeNormal
_ComputeNormal:                         ## @ComputeNormal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rcx
	movslq	(%rdi), %rdi
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, (%rsi)
	movq	$0, 16(%rsi)
LBB0_2:
	xorl	%eax, %eax
	cmpl	$3, %edi
	jl	LBB0_11
## %bb.3:
	leaq	(%rcx,%rdi,8), %r8
	movq	(%rcx), %r9
	movq	8(%rcx), %rax
	movsd	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	movsd	8(%r9), %xmm7                   ## xmm7 = mem[0],zero
	subsd	%xmm7, %xmm0
	movsd	(%rsi), %xmm9                   ## xmm9 = mem[0],zero
	movsd	16(%rax), %xmm2                 ## xmm2 = mem[0],zero
	movhpd	(%rax), %xmm2                   ## xmm2 = xmm2[0],mem[0]
	movsd	16(%r9), %xmm6                  ## xmm6 = mem[0],zero
	movhpd	(%r9), %xmm6                    ## xmm6 = xmm6[0],mem[0]
	subpd	%xmm6, %xmm2
	movupd	8(%rsi), %xmm3
	addq	$24, %rcx
	xorl	%eax, %eax
	xorpd	%xmm8, %xmm8
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movapd	%xmm2, %xmm4
	movapd	%xmm0, %xmm1
	movq	-8(%rcx), %rdi
	movsd	8(%rdi), %xmm0                  ## xmm0 = mem[0],zero
	subsd	%xmm7, %xmm0
	movapd	%xmm0, %xmm7
	mulsd	%xmm2, %xmm7
	movsd	16(%rdi), %xmm2                 ## xmm2 = mem[0],zero
	movhpd	(%rdi), %xmm2                   ## xmm2 = xmm2[0],mem[0]
	subpd	%xmm6, %xmm2
	movapd	%xmm2, %xmm6
	shufpd	$1, %xmm0, %xmm6                ## xmm6 = xmm6[1],xmm0[0]
	mulpd	%xmm4, %xmm6
	shufpd	$1, %xmm1, %xmm4                ## xmm4 = xmm4[1],xmm1[0]
	mulsd	%xmm2, %xmm1
	subsd	%xmm7, %xmm1
	mulpd	%xmm2, %xmm4
	subpd	%xmm4, %xmm6
	movapd	%xmm3, %xmm4
	mulsd	%xmm6, %xmm4
	movapd	%xmm1, %xmm5
	mulsd	%xmm9, %xmm5
	addsd	%xmm4, %xmm5
	movapd	%xmm3, %xmm4
	unpckhpd	%xmm3, %xmm4                    ## xmm4 = xmm4[1],xmm3[1]
	movapd	%xmm6, %xmm7
	unpckhpd	%xmm6, %xmm7                    ## xmm7 = xmm7[1],xmm6[1]
	mulsd	%xmm4, %xmm7
	addsd	%xmm5, %xmm7
	testl	%edx, %edx
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	ucomisd	%xmm8, %xmm7
	jne	LBB0_8
	jnp	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	jbe	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	movl	$1, %eax
	jns	LBB0_15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	ucomisd	%xmm8, %xmm7
	jae	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	subsd	%xmm1, %xmm9
	movsd	%xmm9, (%rsi)
	subpd	%xmm6, %xmm3
	movapd	%xmm3, %xmm6
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	movl	$-1, %eax
	jle	LBB0_15
	jmp	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	addsd	%xmm1, %xmm9
	movsd	%xmm9, (%rsi)
	addpd	%xmm3, %xmm6
	movapd	%xmm6, %xmm3
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movsd	%xmm6, 8(%rsi)
	movhpd	%xmm3, 16(%rsi)
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r8, %rcx
	jae	LBB0_11
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movsd	8(%r9), %xmm7                   ## xmm7 = mem[0],zero
	movsd	16(%r9), %xmm6                  ## xmm6 = mem[0],zero
	movhpd	(%r9), %xmm6                    ## xmm6 = xmm6[0],mem[0]
	addq	$8, %rcx
	jmp	LBB0_4
LBB0_10:
	movq	_SIGN_INCONSISTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGN_INCONSISTENT,4,2          ## @SIGN_INCONSISTENT
	.no_dead_strip	_ComputeNormal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ComputeNormal
_ComputeNormal:                         ; @ComputeNormal
	.cfi_startproc
; %bb.0:
	ldr	x10, [x0, #8]
	ldrsw	x8, [x0]
	cbz	w2, LBB0_16
; %bb.1:
	cmp	w8, #3
	b.lt	LBB0_17
LBB0_2:
	mov	w0, #0
	add	x8, x10, x8, lsl #3
	ldp	x9, x11, [x10], #24
	ldr	d0, [x11]
	ldr	d5, [x9]
	fsub	d2, d0, d5
	ldur	q0, [x11, #8]
	ldur	q4, [x9, #8]
	fsub.2d	v3, v0, v4
	ldr	q0, [x1]
	ldr	d1, [x1, #16]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov.16b	v6, v3
	fmov	d7, d2
	ldur	x11, [x10, #-8]
	ldr	d2, [x11]
	fsub	d2, d2, d5
	dup.2d	v3, v3[1]
	mov.d	v3[1], v7[0]
	fneg.2d	v5, v3
	ldur	q3, [x11, #8]
	fsub.2d	v3, v3, v4
	fmul.2d	v4, v3, v5
	dup.2d	v5, v3[1]
	mov.d	v5[1], v2[0]
	fmla.2d	v4, v5, v6
	fneg	d5, d6
	fmul	d5, d2, d5
	fmla.d	d5, d7, v3[0]
	fmul.2d	v6, v0, v4
	mov	d6, v6[1]
	fmla.d	d6, d0, v4[0]
	fmadd	d6, d5, d1, d6
	fcmp	d6, #0.0
	cbz	w2, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	b.eq	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	b.le	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w0, #31, LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	b	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	b.ge	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	fsub.2d	v0, v0, v4
	str	q0, [x1]
	fsub	d1, d1, d5
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #1
	b.ge	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #-1
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	fadd.2d	v0, v0, v4
	str	q0, [x1]
	fadd	d1, d5, d1
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	str	d1, [x1, #16]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x10, x8
	b.hs	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	d5, [x9]
	ldur	q4, [x9, #8]
	add	x10, x10, #8
	b	LBB0_3
LBB0_16:
	stp	xzr, xzr, [x1]
	str	xzr, [x1, #16]
	cmp	w8, #3
	b.ge	LBB0_2
LBB0_17:
	mov	w0, #0
	ret
LBB0_18:
Lloh0:
	adrp	x8, _SIGN_INCONSISTENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGN_INCONSISTENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_19:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGN_INCONSISTENT,4,2          ; @SIGN_INCONSISTENT
	.no_dead_strip	_ComputeNormal
.subsections_via_symbols
