	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function FillInNormalizedZ
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_FillInNormalizedZ:                     ## @FillInNormalizedZ
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.1:
	movq	%rsi, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	-56(%rbp), %r14                 ## 4-byte Folded Reload
	shlq	$3, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movaps	%xmm1, %xmm0
	callq	_FloatToOffsetByte
	movq	%rbx, (%r12,%r14)
	movq	%r13, 8(%r12,%r14)
	movq	%rax, 16(%r12,%r14)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r12,%r14)
	addq	$32, %r14
	decl	%r15d
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14), %rbx
	movq	8(%rax,%r14), %r13
	movq	24(%rax,%r14), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_OffsetByteToFloat
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	callq	_OffsetByteToFloat
	movaps	%xmm0, %xmm1
	movss	-64(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm2
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm0
	mulss	%xmm1, %xmm1
	subss	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	callq	_sqrt
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rax, %xmm1
	jmp	LBB0_6
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_FillInNormalizedZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FillInNormalizedZ
_FillInNormalizedZ:                     ; @FillInNormalizedZ
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	stp	x0, x1, [sp]                    ; 16-byte Folded Spill
	cmp	w3, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x24, #0
	lsl	w25, w2, #2
	fmov	s9, #1.00000000
	mov	w26, w3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	cmp	x24, x26
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	w8, w25, w24
	sbfiz	x8, x8, #3, #32
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x27, x9, x8
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	add	x28, x9, x8
	mov	x19, x20
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	bl	_FloatToOffsetByte
	stp	x22, x23, [x27]
	stp	x0, x21, [x27, #16]
	add	x28, x28, #32
	add	x27, x27, #32
	subs	w19, w19, #1
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x22, x23, [x28]
	ldr	x21, [x28, #24]
	mov	x0, x22
	bl	_OffsetByteToFloat
	fmov	s8, s0
	mov	x0, x23
	bl	_OffsetByteToFloat
	fmsub	s1, s8, s8, s9
	fmsub	s1, s0, s0, s1
	movi	d0, #0000000000000000
	fcmp	s1, #0.0
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	fmov	s0, s1
	bl	_sqrt
	scvtf	s0, x0
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_FillInNormalizedZ
.subsections_via_symbols
