	.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
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.5:
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 20(%rdi)
	je	LBB0_2
## %bb.3:
	movl	$43200000, %eax                 ## imm = 0x2932E00
	addl	16(%rdi), %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
	leal	1525(%rax), %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	divsd	LCPI0_3(%rip), %xmm0
	cvttsd2si	%xmm0, %r8d
	imull	$36525, %r8d, %edx              ## imm = 0x8EAD
	movslq	%edx, %rdx
	imulq	$-1374389535, %rdx, %rdx        ## imm = 0xAE147AE1
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$37, %rdx
	addl	%esi, %edx
	addl	%edx, %eax
	addl	$1525, %eax                     ## imm = 0x5F5
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	LCPI0_4(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %esi
	cvttpd2dq	%xmm0, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %edx
	subl	%edx, %eax
	leal	-13(%rsi), %ecx
	leal	-1(%rsi), %edx
	cmpl	$14, %esi
	cmovgel	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$3, %edx
	setge	%cl
	negl	%ecx
	addl	%r8d, %ecx
	addl	$-4715, %ecx                    ## imm = 0xED95
	jmp	LBB0_4
LBB0_2:
	movl	$1, %edx
	movl	$2000, %ecx                     ## imm = 0x7D0
	movl	$1, %eax
LBB0_4:
	movl	%ecx, 4(%rdi)
	movl	%edx, 8(%rdi)
	movl	%eax, 12(%rdi)
	movl	$1, (%rdi)
	popq	%rbp
	retq
	.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
	.p2align	2                               ; -- Begin function computeYMD
_computeYMD:                            ; @computeYMD
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	ret
LBB0_2:
	ldr	w9, [x0, #20]
	mov	w8, #1
	cbz	w9, LBB0_4
; %bb.3:
	ldr	w9, [x0, #16]
	mov	w10, #11776
	movk	w10, #659, lsl #16
	add	w9, w9, w10
	mov	w10, #54331
	movk	w10, #12725, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #56
	add	w9, w9, w10
	scvtf	d0, w9
	mov	x10, #1073741824
	movk	x10, #32208, lsl #32
	movk	x10, #49468, lsl #48
	fmov	d1, x10
	fadd	d0, d0, d1
	mov	x10, #234780092268544
	movk	x10, #16609, lsl #48
	fmov	d1, x10
	fdiv	d0, d0, d1
	fcvtzs	w10, d0
	add	w11, w10, #3
	cmp	w10, #0
	csel	w11, w11, w10, lt
	add	w9, w9, w10
	sub	w9, w9, w11, asr #2
	add	w9, w9, #1525
	scvtf	d0, w9
	mov	x10, #7378697629483820646
	movk	x10, #34406, lsl #32
	movk	x10, #49246, lsl #48
	fmov	d1, x10
	fadd	d0, d0, d1
	mov	x10, #233096465088512
	movk	x10, #16502, lsl #48
	fmov	d1, x10
	fdiv	d0, d0, d1
	fcvtzs	w11, d0
	mov	w10, #36525
	mul	w10, w11, w10
	mov	w12, #31457
	movk	w12, #44564, lsl #16
	smull	x10, w10, w12
	lsr	x12, x10, #63
	asr	x10, x10, #37
	add	w10, w10, w12
	add	w9, w10, w9
	scvtf	d0, w9
	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	w12, d0
	sub	w9, w9, w12
	cmp	w10, #14
	mov	w12, #-13
	csinv	w12, w12, wzr, ge
	add	w10, w12, w10
	cmp	w10, #2
	mov	w12, #-4716
	cinc	w12, w12, le
	add	w11, w12, w11
	b	LBB0_5
LBB0_4:
	mov	w11, #2000
	mov	w10, #1
	mov	w9, #1
LBB0_5:
	stp	w10, w9, [x0, #8]
	stp	w8, w11, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_computeYMD
.subsections_via_symbols
