	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function computeYMD
LCPI0_0:
	.quad	0xc13c7dd040000000              ## double -1867216.25
LCPI0_1:
	.quad	0x40e1d58800000000              ## double 36524.25
LCPI0_2:
	.quad	0xc05e866666666666              ## double -122.09999999999999
LCPI0_3:
	.quad	0x4076d40000000000              ## double 365.25
LCPI0_4:
	.quad	0x403e99a027525461              ## double 30.600100000000001
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_computeYMD:                            ## @computeYMD
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, (%rdi)
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 20(%rdi)
	je	LBB0_2
## %bb.3:
	movl	16(%rbx), %edi
	callq	_validJulianDay
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	$43200000, %eax                 ## imm = 0x2932E00
	addl	16(%rbx), %eax
	cltq
	imulq	$833999931, %rax, %rax          ## imm = 0x31B5D43B
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$56, %rax
	addl	%ecx, %eax
	cvtsi2sd	%eax, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	divsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %ecx
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	addl	%ecx, %eax
	subl	%edx, %eax
	addl	$1525, %eax                     ## imm = 0x5F5
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	divsd	LCPI0_3(%rip), %xmm0
	cvttsd2si	%xmm0, %ecx
	movl	%ecx, %edx
	andl	$32767, %edx                    ## imm = 0x7FFF
	imull	$36525, %edx, %edx              ## imm = 0x8EAD
	imulq	$1374389535, %rdx, %rdx         ## imm = 0x51EB851F
	shrq	$37, %rdx
	subl	%edx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	LCPI0_4(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %edx
	cvttpd2dq	%xmm0, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %esi
	subl	%esi, %eax
	leal	-13(%rdx), %esi
	cmpl	$14, %edx
	leal	-1(%rdx), %edx
	cmovgel	%esi, %edx
	movl	%eax, 12(%rbx)
	movl	%edx, 8(%rbx)
	xorl	%eax, %eax
	cmpl	$3, %edx
	setge	%al
	negl	%eax
	addl	%ecx, %eax
	addl	$-4715, %eax                    ## imm = 0xED95
	movl	%eax, 4(%rbx)
	jmp	LBB0_5
LBB0_2:
	movabsq	$4294969296, %rax               ## imm = 0x1000007D0
	movq	%rax, 4(%rbx)
	movl	$1, 12(%rbx)
LBB0_5:
	movl	$1, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_datetimeError                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_computeYMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function computeYMD
lCPI0_0:
	.long	2000                            ; 0x7d0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_computeYMD:                            ; @computeYMD
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbnz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #20]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_validJulianDay
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w8, [x19, #16]
	mov	w9, #11776
	movk	w9, #659, lsl #16
	add	w8, w8, w9
	mov	w9, #54331
	movk	w9, #12725, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #56
	add	w8, w8, w9
	scvtf	d0, w8
	mov	x9, #1073741824
	movk	x9, #32208, lsl #32
	movk	x9, #49468, lsl #48
	fmov	d1, x9
	fadd	d0, d0, d1
	mov	x9, #234780092268544
	movk	x9, #16609, lsl #48
	fmov	d1, x9
	fdiv	d0, d0, d1
	fcvtzs	w9, d0
	add	w10, w9, #3
	cmp	w9, #0
	csel	w10, w10, w9, lt
	add	w8, w8, w9
	sub	w8, w8, w10, asr #2
	add	w8, w8, #1525
	scvtf	d0, w8
	mov	x9, #7378697629483820646
	movk	x9, #34406, lsl #32
	movk	x9, #49246, lsl #48
	fmov	d1, x9
	fadd	d0, d0, d1
	mov	x9, #233096465088512
	movk	x9, #16502, lsl #48
	fmov	d1, x9
	fdiv	d0, d0, d1
	fcvtzs	w9, d0
	and	w10, w9, #0x7fff
	mov	w11, #36525
	mul	w10, w10, w11
	mov	w11, #34079
	movk	w11, #20971, lsl #16
	umull	x10, w10, w11
	lsr	x10, x10, #37
	sub	w8, w8, w10
	scvtf	d0, w8
	mov	x10, #21601
	movk	x10, #10066, lsl #16
	movk	x10, #39328, lsl #32
	movk	x10, #16446, lsl #48
	fmov	d1, x10
	fdiv	d0, d0, d1
	fcvtzs	w10, d0
	scvtf	d0, w10
	fmul	d0, d0, d1
	fcvtzs	w11, d0
	sub	w8, w8, w11
	str	w8, [x19, #12]
	cmp	w10, #14
	mov	w8, #-13
	csinv	w8, w8, wzr, ge
	add	w8, w8, w10
	cmp	w8, #2
	mov	w10, #-4716
	cinc	w10, w10, le
	add	w9, w10, w9
	stp	w9, w8, [x19, #4]
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_datetimeError
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_computeYMD
.subsections_via_symbols
