	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ComputeA
LCPI0_0:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3e7ad7f29abcaf48              ## double 9.9999999999999995E-8
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ComputeA:                              ## @ComputeA
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_Pi2@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	callq	_cos
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movapd	%xmm0, %xmm1
	incl	%ebx
	xorpd	%xmm0, %xmm0
	xorl	%eax, %eax
	movapd	LCPI0_0(%rip), %xmm3            ## xmm3 = [NaN,NaN]
	movsd	LCPI0_1(%rip), %xmm4            ## xmm4 = mem[0],zero
	xorpd	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movapd	%xmm1, %xmm5
	subsd	(%r12,%rax,8), %xmm5
	movapd	%xmm5, %xmm6
	andpd	%xmm3, %xmm6
	ucomisd	%xmm6, %xmm4
	ja	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movsd	(%r15,%rax,8), %xmm6            ## xmm6 = mem[0],zero
	divsd	%xmm5, %xmm6
	addsd	%xmm6, %xmm2
	mulsd	(%r14,%rax,8), %xmm6
	addsd	%xmm6, %xmm0
	incq	%rax
	cmpq	%rax, %rbx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorpd	%xmm2, %xmm2
	xorpd	%xmm0, %xmm0
	jmp	LBB0_6
LBB0_4:
	movsd	(%r14,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero
LBB0_6:
	divsd	%xmm2, %xmm0
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pi2,8,3                        ## @Pi2
	.no_dead_strip	_ComputeA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ComputeA
_ComputeA:                              ; @ComputeA
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _Pi2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pi2@GOTPAGEOFF]
Lloh2:
	ldr	d1, [x8]
	fmul	d0, d1, d0
	bl	_cos
	tbnz	w22, #31, LBB0_4
; %bb.1:
	add	w8, w22, #1
	movi	d1, #0000000000000000
	mov	x9, #44872
	movk	x9, #39612, lsl #16
	movk	x9, #55282, lsl #32
	movk	x9, #15994, lsl #48
	movi	d2, #0000000000000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d3, [x20]
	fabd	d4, d0, d3
	fmov	d5, x9
	fcmp	d4, d5
	b.mi	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	fsub	d3, d0, d3
	ldr	d4, [x21], #8
	fdiv	d3, d4, d3
	fadd	d2, d2, d3
	ldr	d4, [x19], #8
	fmadd	d1, d3, d4, d1
	add	x20, x20, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	movi	d2, #0000000000000000
	movi	d1, #0000000000000000
	b	LBB0_6
LBB0_5:
	ldr	d1, [x19]
	fmov	d2, #1.00000000
LBB0_6:
	fdiv	d0, d1, d2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Pi2,8,3                        ; @Pi2
	.no_dead_strip	_ComputeA
.subsections_via_symbols
