	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function computeJD
LCPI0_0:
	.quad	0xc097d20000000000              ## double -1524.5
LCPI0_1:
	.quad	0x4194997000000000              ## double 8.64E+7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_computeJD:                             ## @computeJD
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_9:
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 48(%rdi)
	je	LBB0_2
## %bb.3:
	movl	4(%rdi), %ecx
	leal	-10000(%rcx), %eax
	cmpl	$-14713, %eax                   ## imm = 0xC687
	jb	LBB0_10
## %bb.4:
	movl	8(%rdi), %esi
	movl	12(%rdi), %r9d
	cmpq	$0, 64(%rdi)
	jne	LBB0_10
LBB0_6:
	leal	12(%rsi), %r10d
	xorl	%eax, %eax
	cmpl	$3, %esi
	setl	%al
	cmovgel	%esi, %r10d
	subl	%eax, %ecx
	movswl	%cx, %eax
	imull	$-5243, %eax, %esi              ## imm = 0xEB85
	movl	%esi, %edx
	sarl	$19, %edx
	shrl	$31, %esi
	addl	%esi, %edx
	addl	$2, %edx
	movswl	%dx, %r8d
	imull	$5243, %eax, %esi               ## imm = 0x147B
	movl	%esi, %eax
	shrl	$31, %eax
	sarl	$21, %esi
	addl	%eax, %esi
	imull	$36525, %ecx, %eax              ## imm = 0x8EAD
	addl	$172251900, %eax                ## imm = 0xA445AFC
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	shrq	$37, %rax
	imull	$306001, %r10d, %ecx            ## imm = 0x4AB51
	addl	$306001, %ecx                   ## imm = 0x4AB51
	movslq	%ecx, %rcx
	imulq	$1759218605, %rcx, %rcx         ## imm = 0x68DB8BAD
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$44, %rcx
	addl	%edx, %ecx
	addl	%r9d, %ecx
	addl	%eax, %ecx
	addl	%esi, %ecx
	addl	%r8d, %ecx
	cvtsi2sd	%ecx, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %rax
	movq	%rax, 56(%rdi)
	movl	$1, (%rdi)
	cmpq	$0, 40(%rdi)
	je	LBB0_9
## %bb.7:
	movslq	16(%rdi), %rcx
	imulq	$3600000, %rcx, %rcx            ## imm = 0x36EE80
	movslq	20(%rdi), %rdx
	imulq	$60000, %rdx, %rdx              ## imm = 0xEA60
	addq	%rcx, %rdx
	movslq	24(%rdi), %rcx
	imulq	$1000, %rcx, %rcx               ## imm = 0x3E8
	addq	%rax, %rcx
	addq	%rdx, %rcx
	movq	%rcx, 56(%rdi)
	cmpq	$0, 32(%rdi)
	je	LBB0_9
## %bb.8:
	leaq	32(%rdi), %rax
	movslq	28(%rdi), %rdx
	imulq	$60000, %rdx, %rdx              ## imm = 0xEA60
	subq	%rdx, %rcx
	movq	%rcx, 56(%rdi)
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, (%rax)
	movq	$0, 16(%rax)
	popq	%rbp
	retq
LBB0_2:
	movl	$1, %esi
	movl	$2000, %ecx                     ## imm = 0x7D0
	movl	$1, %r9d
	cmpq	$0, 64(%rdi)
	je	LBB0_6
LBB0_10:
	popq	%rbp
	jmp	_datetimeError                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_computeJD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function computeJD
_computeJD:                             ; @computeJD
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cbz	w8, LBB0_2
LBB0_1:
	ret
LBB0_2:
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	w9, [x0, #4]
	mov	w8, #-10000
	mov	w10, #-14713
	add	w8, w9, w8
	cmp	w8, w10
	b.lo	LBB0_9
; %bb.4:
	ldp	w10, w8, [x0, #8]
	ldr	x11, [x0, #64]
	cbnz	x11, LBB0_9
LBB0_5:
	add	w11, w10, #12
	cmp	w10, #3
	csel	w10, w11, w10, lt
	cset	w11, lt
	sub	w9, w9, w11
	sxth	w11, w9
	mov	w12, #-5243
	mul	w12, w11, w12
	asr	w13, w12, #19
	add	w12, w13, w12, lsr #31
	mov	w13, #5243
	mul	w11, w11, w13
	asr	w13, w11, #21
	add	w11, w13, w11, lsr #31
	mov	w13, #36525
	mov	w14, #23292
	movk	w14, #2628, lsl #16
	madd	w9, w9, w13, w14
	mov	w13, #34079
	movk	w13, #20971, lsl #16
	umull	x9, w9, w13
	lsr	x9, x9, #37
	mov	w13, #43857
	movk	w13, #4, lsl #16
	madd	w10, w10, w13, w13
	mov	w13, #35757
	movk	w13, #26843, lsl #16
	smull	x10, w10, w13
	lsr	x13, x10, #63
	asr	x10, x10, #44
	add	w10, w10, w13
	add	w8, w10, w8
	add	w8, w8, w9
	add	w8, w8, w11
	add	w8, w12, w8
	add	w8, w8, #2
	scvtf	d0, w8
	mov	x8, #230897441832960
	movk	x8, #49303, lsl #48
	fmov	d1, x8
	fadd	d0, d0, d1
	mov	x8, #168706315386880
	movk	x8, #16788, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fcvtzs	x9, d0
	str	x9, [x0, #56]
	mov	w8, #1
	str	w8, [x0]
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_1
; %bb.6:
	mov	x8, x0
	ldr	x10, [x8, #32]!
	mov	w11, #61056
	movk	w11, #54, lsl #16
	ldpsw	x12, x13, [x8, #-16]
	mul	x11, x12, x11
	mov	w12, #60000
	madd	x11, x13, x12, x11
	ldursw	x12, [x8, #-8]
	mov	w13, #1000
	madd	x9, x12, x13, x9
	add	x9, x9, x11
	str	x9, [x8, #24]
	cbz	x10, LBB0_1
; %bb.7:
	ldrsw	x10, [x0, #28]
	mov	w11, #60000
	msub	x9, x10, x11, x9
	str	x9, [x0, #56]
	stp	xzr, xzr, [x8, #8]
	str	xzr, [x8]
	ret
LBB0_8:
	mov	w10, #1
	mov	w9, #2000
	mov	w8, #1
	ldr	x11, [x0, #64]
	cbz	x11, LBB0_5
LBB0_9:
	b	_datetimeError
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_computeJD
.subsections_via_symbols
