	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CalcParms
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x40f869ffffffffff              ## double 99999.999999999985
LCPI0_3:
	.quad	0x3ee4f8b588e368f1              ## double 1.0000000000000001E-5
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
LCPI0_4:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CalcParms:                             ## @CalcParms
	.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
	testl	%edi, %edi
	js	LBB0_26
## %bb.1:
	movl	%edi, %r13d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	%edi, %r15d
	leaq	1(%r15), %rax
	testl	%edi, %edi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:
                                        ## kill: def $eax killed $eax killed $rax def $rax
	andl	$-2, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_Pi2@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movslq	(%rbx,%r12,4), %rax
	mulsd	(%r14,%rax,8), %xmm0
	callq	_cos
	movq	16(%rbp), %rax
	movsd	%xmm0, (%rax,%r12,8)
	movq	_Pi2@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movslq	4(%rbx,%r12,4), %rax
	mulsd	(%r14,%rax,8), %xmm0
	callq	_cos
	movq	16(%rbp), %rax
	movsd	%xmm0, 8(%rax,%r12,8)
	addq	$2, %r12
	cmpq	%r12, -96(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%r12d, %r12d
LBB0_5:
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	testb	$1, %r11b
	je	LBB0_7
## %bb.6:
	movq	_Pi2@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax,%r12,4), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	mulsd	(%rcx,%rax,8), %xmm0
	movq	%r11, %rbx
	callq	_cos
	movq	%rbx, %r11
	movq	16(%rbp), %rax
	movsd	%xmm0, (%rax,%r12,8)
LBB0_7:
	movq	24(%rbp), %r8
	leal	-1(%r13), %eax
	cltq
	imulq	$-2004318071, %rax, %rax        ## imm = 0x88888889
	shrq	$32, %rax
	addl	%r13d, %eax
	decl	%eax
	movl	%eax, %ecx
	sarl	$3, %ecx
	shrl	$31, %eax
	addl	%eax, %ecx
	incl	%ecx
	xorl	%r9d, %r9d
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movapd	LCPI0_1(%rip), %xmm1            ## xmm1 = [NaN,NaN]
	movsd	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero
	movsd	LCPI0_3(%rip), %xmm3            ## xmm3 = mem[0],zero
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	16(%rbp), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movsd	%xmm5, (%r14,%r9,8)
	incq	%r9
	cmpq	%r11, %r9
	je	LBB0_18
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##       Child Loop BB0_11 Depth 3
	movsd	(%r12,%r9,8), %xmm5             ## xmm5 = mem[0],zero
	movq	%r12, %rsi
	movq	%r9, %rdi
	xorl	%eax, %eax
	movapd	%xmm0, %xmm4
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%rax
	decq	%rdi
	addq	$8, %rsi
	cmpq	%rcx, %rax
	je	LBB0_15
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_11 Depth 3
	cmpl	%r13d, %eax
	jg	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	xorl	%edx, %edx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=3
	addq	%rcx, %rdx
	leaq	(%rax,%rdx), %rbx
	cmpq	%r15, %rbx
	ja	LBB0_14
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rdx, %rdi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=3
	movapd	%xmm5, %xmm6
	subsd	(%rsi,%rdx,8), %xmm6
	addsd	%xmm6, %xmm6
	mulsd	%xmm6, %xmm4
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movapd	%xmm4, %xmm5
	andpd	%xmm1, %xmm5
	ucomisd	%xmm5, %xmm3
	movapd	%xmm2, %xmm5
	ja	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movapd	%xmm0, %xmm5
	divsd	%xmm4, %xmm5
	jmp	LBB0_17
LBB0_18:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	xorpd	%xmm0, %xmm0
	xorl	%eax, %eax
	movapd	LCPI0_4(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0]
	xorpd	%xmm3, %xmm3
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movsd	(%r14,%rax,8), %xmm4            ## xmm4 = mem[0],zero
	movslq	(%r10,%rax,4), %rcx
	movapd	%xmm1, %xmm5
	mulsd	%xmm4, %xmm5
	mulsd	(%rdi,%rcx,8), %xmm4
	addsd	%xmm4, %xmm0
	divsd	(%rsi,%rcx,8), %xmm5
	addsd	%xmm5, %xmm3
	xorpd	%xmm2, %xmm1
	incq	%rax
	cmpq	%rax, %r11
	jne	LBB0_19
## %bb.20:
	divsd	%xmm3, %xmm0
	testq	%r15, %r15
	je	LBB0_21
## %bb.22:
	movl	%r11d, %ecx
	andl	$-2, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r10,%rax,4), %rdx
	movapd	%xmm0, %xmm1
	divsd	(%rsi,%rdx,8), %xmm1
	movsd	(%rdi,%rdx,8), %xmm2            ## xmm2 = mem[0],zero
	subsd	%xmm1, %xmm2
	movsd	%xmm2, (%r8,%rax,8)
	movslq	4(%r10,%rax,4), %rdx
	movapd	%xmm0, %xmm1
	divsd	(%rsi,%rdx,8), %xmm1
	addsd	(%rdi,%rdx,8), %xmm1
	movsd	%xmm1, 8(%r8,%rax,8)
	addq	$2, %rax
	cmpq	%rax, %rcx
	jne	LBB0_23
## %bb.24:
	testb	$1, %r11b
	je	LBB0_26
LBB0_25:
	movslq	(%r10,%rax,4), %rcx
	movsd	(%rdi,%rcx,8), %xmm1            ## xmm1 = mem[0],zero
	divsd	(%rsi,%rcx,8), %xmm0
	subsd	%xmm0, %xmm1
	movsd	%xmm1, (%r8,%rax,8)
LBB0_26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%eax, %eax
	testb	$1, %r11b
	jne	LBB0_25
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_Pi2,8,3                        ## @Pi2
	.no_dead_strip	_CalcParms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CalcParms
_CalcParms:                             ; @CalcParms
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	tbnz	w0, #31, LBB0_16
; %bb.1:
	mov	x19, x7
	mov	x28, x6
	mov	x23, x5
	mov	x26, x2
	mov	x21, x1
	mov	x25, x0
	stp	x3, x4, [sp]                    ; 16-byte Folded Spill
	add	w20, w0, #1
	mov	x27, x20
	mov	x22, x1
	mov	x24, x6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh0:
	adrp	x8, _Pi2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pi2@GOTPAGEOFF]
Lloh2:
	ldr	d0, [x8]
	ldrsw	x8, [x22], #4
	ldr	d1, [x26, x8, lsl #3]
	fmul	d0, d0, d1
	bl	_cos
	str	d0, [x24], #8
	subs	x27, x27, #1
	b.ne	LBB0_2
; %bb.3:
	mov	x8, #0
	sub	w9, w25, #1
	mov	w10, #34953
	movk	w10, #34952, lsl #16
	smull	x10, w9, w10
	lsr	x10, x10, #32
	add	w9, w10, w9
	asr	w10, w9, #3
	add	w9, w10, w9, lsr #31
	add	w9, w9, #1
	mov	w10, w25
	fmov	d0, #1.00000000
	mov	x11, #26865
	movk	x11, #35043, lsl #16
	movk	x11, #63669, lsl #32
	movk	x11, #16100, lsl #48
	mov	x12, #-164926744166401
	movk	x12, #16632, lsl #48
	ldp	x1, x0, [sp]                    ; 16-byte Folded Reload
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	fabs	d1, d2
	fdiv	d2, d0, d2
	fmov	d3, x11
	fcmp	d1, d3
	fmov	d1, x12
	fcsel	d1, d1, d2, mi
	str	d1, [x23, x8, lsl #3]
	add	x8, x8, #1
	cmp	x8, x20
	b.eq	LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	mov	x13, #0
	ldr	d1, [x28, x8, lsl #3]
	mov	x14, x28
	mov	x15, x8
	fmov	d2, #1.00000000
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x13, x13, #1
	sub	x15, x15, #1
	add	x14, x14, #8
	cmp	x13, x9
	b.eq	LBB0_4
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	cmp	w13, w25
	b.gt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x16, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=3
	add	x16, x16, x9
	add	x17, x13, x16
	cmp	x17, x10
	b.hi	LBB0_6
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x15, x16
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=3
	ldr	d3, [x14, x16, lsl #3]
	fsub	d3, d1, d3
	fadd	d3, d3, d3
	fmul	d2, d2, d3
	b	LBB0_9
LBB0_12:
	fmov	d1, #1.00000000
	movi	d0, #0000000000000000
	mov	x8, x20
	mov	x9, x21
	movi	d2, #0000000000000000
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	d3, [x23], #8
	ldrsw	x10, [x9], #4
	lsl	x10, x10, #3
	ldr	d4, [x1, x10]
	fmadd	d0, d3, d4, d0
	fmul	d3, d1, d3
	ldr	d4, [x0, x10]
	fdiv	d3, d3, d4
	fadd	d2, d2, d3
	fneg	d1, d1
	subs	x8, x8, #1
	b.ne	LBB0_13
; %bb.14:
	fmov	d1, #1.00000000
	fdiv	d0, d0, d2
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x21], #4
	lsl	x8, x8, #3
	ldr	d2, [x1, x8]
	fmul	d3, d0, d1
	ldr	d4, [x0, x8]
	fdiv	d3, d3, d4
	fsub	d2, d2, d3
	str	d2, [x19], #8
	fneg	d1, d1
	subs	x20, x20, #1
	b.ne	LBB0_15
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Pi2,8,3                        ; @Pi2
	.no_dead_strip	_CalcParms
.subsections_via_symbols
