	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function geo_distance_internal
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_geo_distance_internal:                 ## @geo_distance_internal
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_degtorad
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_degtorad
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movl	4(%r14), %edi
	callq	_degtorad
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movl	(%r14), %edi
	callq	_degtorad
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	-40(%rbp), %xmm0                ## 8-byte Folded Reload
	callq	_fabs
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movq	_M_PI@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm2                   ## xmm2 = mem[0],zero
	movq	_TWO_PI@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	cmpltsd	%xmm0, %xmm2
	andpd	%xmm2, %xmm1
	andnpd	%xmm0, %xmm2
	orpd	%xmm1, %xmm2
	movapd	%xmm2, -32(%rbp)                ## 16-byte Spill
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	callq	_fabs
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	callq	_sin
	movl	%eax, %r14d
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_fabs
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	callq	_sin
	imull	%eax, %r14d
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_cos
	movl	%eax, %ebx
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_cos
	imull	%eax, %ebx
	movapd	-32(%rbp), %xmm0                ## 16-byte Reload
	mulsd	LCPI0_0(%rip), %xmm0
	movapd	%xmm0, -32(%rbp)                ## 16-byte Spill
	callq	_sin
	imull	%eax, %ebx
	movapd	-32(%rbp), %xmm0                ## 16-byte Reload
	callq	_sin
	imull	%eax, %ebx
	addl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_sqrt
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	minsd	%xmm0, %xmm1
	movq	_EARTH_RADIUS@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rax), %xmm0
	addsd	%xmm0, %xmm0
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movapd	%xmm1, %xmm0
	callq	_asin
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,8,3                       ## @M_PI
	.comm	_TWO_PI,8,3                     ## @TWO_PI
	.comm	_EARTH_RADIUS,4,2               ## @EARTH_RADIUS
	.no_dead_strip	_geo_distance_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function geo_distance_internal
_geo_distance_internal:                 ; @geo_distance_internal
	.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, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_degtorad
	fmov	d8, d0
	ldr	w0, [x20]
	bl	_degtorad
	fmov	d9, d0
	ldr	w0, [x19, #4]
	bl	_degtorad
	fmov	d10, d0
	ldr	w0, [x19]
	bl	_degtorad
	fmov	d11, d0
	fsub	d0, d8, d10
	bl	_fabs
	scvtf	d0, w0
Lloh0:
	adrp	x8, _M_PI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TWO_PI@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TWO_PI@GOTPAGEOFF]
Lloh4:
	ldr	d1, [x8]
Lloh5:
	ldr	d2, [x9]
	fsub	d2, d2, d0
	fcmp	d1, d0
	fcsel	d10, d2, d0, mi
	fsub	d8, d9, d11
	fmov	d0, d8
	bl	_fabs
	scvtf	d0, w0
	fmov	d12, #0.50000000
	fmul	d0, d0, d12
	bl	_sin
	mov	x19, x0
	fmov	d0, d8
	bl	_fabs
	scvtf	d0, w0
	fmul	d0, d0, d12
	bl	_sin
	mul	w20, w0, w19
	fmov	d0, d9
	bl	_cos
	mov	x19, x0
	fmov	d0, d11
	bl	_cos
	mul	w19, w0, w19
	fmul	d8, d10, d12
	fmov	d0, d8
	bl	_sin
	mul	w19, w19, w0
	fmov	d0, d8
	bl	_sin
	madd	w0, w19, w0, w20
	bl	_sqrt
	fmov	d1, #1.00000000
	fmin	d0, d0, d1
Lloh6:
	adrp	x8, _EARTH_RADIUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EARTH_RADIUS@GOTPAGEOFF]
Lloh8:
	ldr	s1, [x8]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fadd	d8, d1, d1
	bl	_asin
	scvtf	d0, w0
	fmul	d0, d8, d0
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,8,3                       ; @M_PI
	.comm	_TWO_PI,8,3                     ; @TWO_PI
	.comm	_EARTH_RADIUS,4,2               ; @EARTH_RADIUS
	.no_dead_strip	_geo_distance_internal
.subsections_via_symbols
