	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function VectorNormalize
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VectorNormalize
	.p2align	4, 0x90
_VectorNormalize:                       ## @VectorNormalize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movsd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	movsd	8(%rdi), %xmm1                  ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm1
	movapd	%xmm0, %xmm2
	mulsd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	movsd	16(%rdi), %xmm1                 ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm1
	addsd	%xmm2, %xmm1
	sqrtsd	%xmm1, %xmm1
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm2, %xmm1
	jne	LBB0_2
	jp	LBB0_2
## %bb.1:
	movq	%rsi, %rdi
	callq	_VectorClear
	xorpd	%xmm0, %xmm0
	popq	%rbp
	retq
LBB0_2:
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	divsd	%xmm1, %xmm2
	mulsd	%xmm2, %xmm0
	movsd	%xmm0, (%rsi)
	movsd	8(%rdi), %xmm0                  ## xmm0 = mem[0],zero
	mulsd	%xmm2, %xmm0
	movsd	%xmm0, 8(%rsi)
	mulsd	16(%rdi), %xmm2
	movsd	%xmm2, 16(%rsi)
	movapd	%xmm1, %xmm0
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VectorNormalize                ; -- Begin function VectorNormalize
	.p2align	2
_VectorNormalize:                       ; @VectorNormalize
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldp	d1, d0, [x0]
	fmul	d0, d0, d0
	fmadd	d0, d1, d1, d0
	ldr	d2, [x0, #16]
	fmadd	d0, d2, d2, d0
	fsqrt	d0, d0
	fcmp	d0, #0.0
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x1
	bl	_VectorClear
	movi	d0, #0000000000000000
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	fmov	d2, #1.00000000
	fdiv	d2, d2, d0
	fmul	d1, d1, d2
	str	d1, [x1]
	ldr	d1, [x0, #8]
	fmul	d1, d2, d1
	str	d1, [x1, #8]
	ldr	d1, [x0, #16]
	fmul	d1, d2, d1
	str	d1, [x1, #16]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
