	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function renormalise
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_renormalise:                           ## @renormalise
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.1:
	leal	-1(%rsi), %r8d
	xorl	%edx, %edx
	cmpl	$3, %r8d
	jae	LBB0_3
## %bb.2:
	movq	%rdi, %rax
	jmp	LBB0_6
LBB0_3:
	incq	%r8
	movq	%r8, %rdx
	andq	$-4, %rdx
	leaq	(%rdx,%rdx,2), %rax
	leaq	(%rdi,%rax,4), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0,1.0E+0,1.0E+0]
	movq	%rdx, %rcx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rdi), %xmm4
	movups	16(%rdi), %xmm3
	movups	32(%rdi), %xmm5
	movaps	%xmm4, %xmm1
	shufps	$236, %xmm3, %xmm1              ## xmm1 = xmm1[0,3],xmm3[2,3]
	insertps	$112, %xmm5, %xmm1              ## xmm1 = xmm1[0,1,2],xmm5[1]
	movaps	%xmm3, %xmm2
	blendps	$2, %xmm4, %xmm2                ## xmm2 = xmm2[0],xmm4[1],xmm2[2,3]
	shufps	$241, %xmm2, %xmm2              ## xmm2 = xmm2[1,0,3,3]
	insertps	$176, %xmm5, %xmm2              ## xmm2 = xmm2[0,1,2],xmm5[2]
	insertps	$140, %xmm4, %xmm3              ## xmm3 = xmm4[2],xmm3[1],zero,zero
	shufps	$196, %xmm5, %xmm3              ## xmm3 = xmm3[0,1],xmm5[0,3]
	movaps	%xmm2, %xmm4
	mulps	%xmm2, %xmm4
	movaps	%xmm1, %xmm5
	mulps	%xmm1, %xmm5
	addps	%xmm4, %xmm5
	movaps	%xmm3, %xmm4
	mulps	%xmm3, %xmm4
	addps	%xmm5, %xmm4
	sqrtps	%xmm4, %xmm4
	movaps	%xmm0, %xmm5
	divps	%xmm4, %xmm5
	mulps	%xmm5, %xmm1
	mulps	%xmm5, %xmm2
	mulps	%xmm3, %xmm5
	movaps	%xmm1, %xmm3
	shufps	$255, %xmm2, %xmm3              ## xmm3 = xmm3[3,3],xmm2[3,3]
	shufps	$233, %xmm5, %xmm3              ## xmm3 = xmm3[1,2],xmm5[2,3]
	shufps	$210, %xmm3, %xmm3              ## xmm3 = xmm3[2,0,1,3]
	movaps	%xmm1, %xmm4
	unpckhpd	%xmm2, %xmm4                    ## xmm4 = xmm4[1],xmm2[1]
	movaps	%xmm2, %xmm6
	shufps	$133, %xmm4, %xmm6              ## xmm6 = xmm6[1,1],xmm4[0,2]
	blendps	$2, %xmm5, %xmm6                ## xmm6 = xmm6[0],xmm5[1],xmm6[2,3]
	movlhps	%xmm1, %xmm2                    ## xmm2 = xmm2[0],xmm1[0]
	shufps	$98, %xmm1, %xmm2               ## xmm2 = xmm2[2,0],xmm1[2,1]
	insertps	$32, %xmm5, %xmm2               ## xmm2 = xmm2[0,1],xmm5[0],xmm2[3]
	movups	%xmm2, (%rdi)
	movups	%xmm6, 16(%rdi)
	movups	%xmm3, 32(%rdi)
	addq	$48, %rdi
	addq	$-4, %rcx
	jne	LBB0_4
## %bb.5:
	cmpq	%rdx, %r8
	je	LBB0_8
LBB0_6:
	subl	%edx, %esi
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	4(%rax), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	movss	8(%rax), %xmm3                  ## xmm3 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm4
	mulss	%xmm2, %xmm4
	movaps	%xmm1, %xmm5
	mulss	%xmm1, %xmm5
	addss	%xmm4, %xmm5
	movaps	%xmm3, %xmm4
	mulss	%xmm3, %xmm4
	addss	%xmm5, %xmm4
	sqrtss	%xmm4, %xmm4
	movaps	%xmm0, %xmm5
	divss	%xmm4, %xmm5
	mulss	%xmm5, %xmm1
	movss	%xmm1, (%rax)
	mulss	%xmm5, %xmm2
	movss	%xmm2, 4(%rax)
	mulss	%xmm3, %xmm5
	movss	%xmm5, 8(%rax)
	addq	$12, %rax
	decl	%esi
	jne	LBB0_7
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_renormalise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function renormalise
_renormalise:                           ; @renormalise
	.cfi_startproc
; %bb.0:
	subs	w8, w1, #1
	b.lt	LBB0_8
; %bb.1:
	cmp	w8, #3
	b.hs	LBB0_3
; %bb.2:
	mov	w9, #0
	mov	x8, x0
	b	LBB0_6
LBB0_3:
	add	x10, x8, #1
	and	x9, x10, #0x1fffffffc
	mov	w8, #12
	madd	x8, x9, x8, x0
	fmov.4s	v0, #1.00000000
	mov	x11, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ld3.4s	{ v1, v2, v3 }, [x0]
	fmul.4s	v4, v2, v2
	fmla.4s	v4, v1, v1
	fmla.4s	v4, v3, v3
	fsqrt.4s	v4, v4
	fdiv.4s	v4, v0, v4
	fmul.4s	v5, v1, v4
	fmul.4s	v6, v2, v4
	fmul.4s	v7, v3, v4
	st3.4s	{ v5, v6, v7 }, [x0], #48
	subs	x11, x11, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x9
	b.eq	LBB0_8
LBB0_6:
	sub	w9, w1, w9
	fmov	s0, #1.00000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	s1, s2, [x8]
	ldr	s3, [x8, #8]
	fmul	s4, s2, s2
	fmadd	s4, s1, s1, s4
	fmadd	s4, s3, s3, s4
	fsqrt	s4, s4
	fdiv	s4, s0, s4
	fmul	s1, s1, s4
	fmul	s2, s2, s4
	stp	s1, s2, [x8]
	fmul	s1, s3, s4
	str	s1, [x8, #8]
	add	x8, x8, #12
	subs	w9, w9, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_renormalise
.subsections_via_symbols
