	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function greatcircle
_greatcircle:                           ## @greatcircle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movsd	%xmm3, -40(%rbp)                ## 8-byte Spill
	movsd	%xmm1, -32(%rbp)                ## 8-byte Spill
	movq	_RADPERDEG@GOTPCREL(%rip), %rbx
	movsd	(%rbx), %xmm1                   ## xmm1 = mem[0],zero
	movapd	%xmm1, %xmm3
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	mulsd	%xmm0, %xmm3
	movsd	%xmm3, -64(%rbp)                ## 8-byte Spill
	movsd	%xmm2, -56(%rbp)                ## 8-byte Spill
	mulsd	%xmm2, %xmm1
	movsd	%xmm1, -24(%rbp)                ## 8-byte Spill
	movq	_EARTHRADIUS@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movapd	%xmm3, %xmm0
	callq	_cos
	movl	%eax, %r14d
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_cos
	imull	%eax, %r14d
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	mulsd	(%rbx), %xmm0
	callq	_cos
	imull	%eax, %r14d
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_sin
	movl	%eax, %ebx
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_sin
	imull	%eax, %ebx
	addl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_acos
	movapd	%xmm0, %xmm4
	mulsd	-72(%rbp), %xmm4                ## 8-byte Folded Reload
	movq	_debug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-32(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-56(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	-40(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	movsd	%xmm4, -24(%rbp)                ## 8-byte Spill
	movsd	-24(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	callq	_printf
	movsd	-24(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
LBB0_2:
	movapd	%xmm4, %xmm0
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADPERDEG,8,3                  ## @RADPERDEG
	.comm	_EARTHRADIUS,8,3                ## @EARTHRADIUS
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"greatcircle lat1 %g long1 %g lat2 %g long2 %g dist %g\n"

	.no_dead_strip	_greatcircle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function greatcircle
_greatcircle:                           ; @greatcircle
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset b14, -88
	.cfi_offset b15, -96
	fmov	d8, d3
	fmov	d9, d2
	fmov	d10, d1
	fmov	d11, d0
Lloh0:
	adrp	x20, _RADPERDEG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RADPERDEG@GOTPAGEOFF]
	ldr	d0, [x20]
	fmul	d12, d0, d11
	fmul	d13, d0, d2
Lloh2:
	adrp	x8, _EARTHRADIUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EARTHRADIUS@GOTPAGEOFF]
Lloh4:
	ldr	d14, [x8]
	fmov	d0, d12
	bl	_cos
	mov	x19, x0
	fmov	d0, d13
	bl	_cos
	mul	w19, w0, w19
	fsub	d0, d8, d10
	ldr	d1, [x20]
	fmul	d0, d0, d1
	bl	_cos
	mul	w20, w19, w0
	fmov	d0, d12
	bl	_sin
	mov	x19, x0
	fmov	d0, d13
	bl	_sin
	madd	w0, w0, w19, w20
	bl	_acos
	fmul	d12, d14, d0
Lloh5:
	adrp	x8, _debug@GOTPAGE
Lloh6:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	fmov	d0, d11
	fmov	d1, d10
	fmov	d2, d9
	fmov	d3, d8
	fmov	d4, d12
	bl	_printf
LBB0_2:
	fmov	d0, d12
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RADPERDEG,8,3                  ; @RADPERDEG
	.comm	_EARTHRADIUS,8,3                ; @EARTHRADIUS
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"greatcircle lat1 %g long1 %g lat2 %g long2 %g dist %g\n"

	.no_dead_strip	_greatcircle
.subsections_via_symbols
