	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function config_input
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x40a0680000000000              ## double 2100
LCPI0_2:
	.quad	0x4010000000000000              ## double 4
LCPI0_3:
	.quad	0xbff0000000000000              ## double -1
LCPI0_4:
	.quad	0xc000000000000000              ## double -2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_config_input:                          ## @config_input
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	imull	$-30, (%r15), %eax
	cltq
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$36, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ff_exp10
	movq	_M_PI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	cvtsi2sd	%eax, %xmm1
	cvtsi2sdl	4(%r15), %xmm2
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	movsd	%xmm3, -32(%rbp)                ## 8-byte Spill
	subsd	%xmm2, %xmm3
	mulsd	%xmm1, %xmm3
	mulsd	LCPI0_1(%rip), %xmm3
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%r14), %xmm0
	divsd	%xmm0, %xmm3
	movsd	%xmm3, -48(%rbp)                ## 8-byte Spill
	movapd	%xmm3, %xmm0
	callq	_sin
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_sqrt
	imull	%ebx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_cos
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	movapd	%xmm1, %xmm0
	addsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_sqrt
	addl	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	addsd	-72(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	-32(%rbp), %xmm1                ## 8-byte Folded Reload
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	addsd	-64(%rbp), %xmm1                ## 8-byte Folded Reload
	mulsd	LCPI0_4(%rip), %xmm1
	movsd	%xmm0, 8(%r15)
	cvttsd2si	%xmm1, %eax
	movl	%eax, 16(%r15)
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_sqrt
	addl	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, 24(%r15)
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_sqrt
	addl	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	addsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, 32(%r15)
	movapd	%xmm1, %xmm2
	movapd	%xmm1, %xmm0
	addsd	%xmm1, %xmm2
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	mulsd	%xmm2, %xmm1
	cvttsd2si	%xmm1, %eax
	movl	%eax, 40(%r15)
	callq	_sqrt
	addl	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	xorps	%xmm1, %xmm1
	cvtsi2sdl	16(%r15), %xmm1
	movsd	8(%r15), %xmm2                  ## xmm2 = mem[0],zero
	divsd	%xmm2, %xmm1
	cvttsd2si	%xmm1, %eax
	movsd	-32(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	subsd	%xmm0, %xmm3
	movl	%eax, 16(%r15)
	movupd	24(%r15), %xmm0
	movddup	%xmm2, %xmm1                    ## xmm1 = xmm2[0,0]
	divpd	%xmm1, %xmm0
	movupd	%xmm0, 24(%r15)
	xorps	%xmm0, %xmm0
	cvtsi2sdl	40(%r15), %xmm0
	mulsd	-40(%rbp), %xmm3                ## 8-byte Folded Reload
	divsd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, 40(%r15)
	divsd	%xmm2, %xmm3
	movsd	%xmm3, 48(%r15)
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_config_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_input
_config_input:                          ; @config_input
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	.cfi_offset b12, -72
	.cfi_offset b13, -80
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	w8, [x20]
	mov	w9, #-30
	mul	w8, w8, w9
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w0, w8, w9, asr #4
	bl	_ff_exp10
	fmov	d8, d0
Lloh0:
	adrp	x8, _M_PI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	scvtf	d0, w8
	ldr	s1, [x20, #4]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fmov	d10, #1.00000000
	fsub	d1, d10, d1
	fmul	d0, d1, d0
	mov	x8, #114349209288704
	movk	x8, #16544, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	ldr	s1, [x19]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fdiv	d9, d0, d1
	fmov	d0, d9
	bl	_sin
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w19, w8, #1
	fmov	d0, #4.00000000
	bl	_sqrt
	mul	w8, w19, w0
	scvtf	d11, w8
	fadd	d10, d8, d10
	fmov	d0, #-1.00000000
	fadd	d12, d8, d0
	fmov	d0, d9
	bl	_cos
	fmov	d9, d0
	fmadd	d13, d12, d0, d10
	fmov	d0, d8
	bl	_sqrt
	lsl	w8, w0, #1
	scvtf	d0, w8
	fmadd	d0, d0, d11, d13
	str	d0, [x20, #8]
	fmadd	d0, d10, d9, d12
	fmov	d1, #-2.00000000
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	str	w8, [x20, #16]
	fmov	d0, d8
	bl	_sqrt
	lsl	w8, w0, #1
	scvtf	d0, w8
	fmsub	d0, d0, d11, d13
	str	d0, [x20, #24]
	fmsub	d13, d12, d9, d10
	fmov	d0, d8
	bl	_sqrt
	lsl	w8, w0, #1
	scvtf	d0, w8
	fmadd	d0, d0, d11, d13
	fmul	d0, d8, d0
	str	d0, [x20, #32]
	fadd	d0, d8, d8
	fmsub	d1, d10, d9, d12
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	str	w8, [x20, #40]
	fmov	d0, d8
	bl	_sqrt
	lsl	w8, w0, #1
	scvtf	d0, w8
	fmsub	d0, d0, d11, d13
	fmul	d0, d8, d0
	ldr	d1, [x20, #8]
	ldr	s2, [x20, #16]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fdiv	d2, d2, d1
	fcvtzs	w8, d2
	str	w8, [x20, #16]
	ldur	q2, [x20, #24]
	dup.2d	v3, v1[0]
	fdiv.2d	v2, v2, v3
	stur	q2, [x20, #24]
	ldr	s2, [x20, #40]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fdiv	d2, d2, d1
	fcvtzs	w8, d2
	str	w8, [x20, #40]
	fdiv	d0, d0, d1
	str	d0, [x20, #48]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_config_input
.subsections_via_symbols
