	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function magic_date_calc
_magic_date_calc:                       ## @magic_date_calc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	cmpl	$-719498, %eax                  ## imm = 0xFFF50576
	jl	LBB0_4
## %bb.1:
	movq	_EPOCH_DAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx), %r8d
	decl	%r8d
	imull	$10000, %r8d, %eax              ## imm = 0x2710
	addl	$14780, %eax                    ## imm = 0x39BC
	movslq	%eax, %rdx
	imulq	$616521849, %rdx, %r9           ## imm = 0x24BF6079
	movq	%r9, %rax
	shrq	$63, %rax
	sarq	$51, %r9
	addl	%eax, %r9d
	imull	$-365, %r9d, %r10d              ## imm = 0xFE93
	imulq	$-616521849, %rdx, %rcx         ## imm = 0xDB409F87
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$53, %rcx
	addl	%eax, %ecx
	imulq	$1578295933, %rdx, %rax         ## imm = 0x5E12E27D
	movq	%rax, %rsi
	shrq	$63, %rsi
	sarq	$59, %rax
	addl	%esi, %eax
	imulq	$-789147967, %rdx, %rdx         ## imm = 0xD0F68EC1
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$60, %rdx
	addl	%esi, %edx
	addl	%r8d, %ecx
	addl	%eax, %ecx
	addl	%edx, %ecx
	addl	%r10d, %ecx
	jns	LBB0_3
## %bb.2:
	leal	-1(%r9), %r10d
	imull	$-365, %r10d, %ecx              ## imm = 0xFE93
	addl	$2, %r9d
	testw	%r10w, %r10w
	cmovnsl	%r10d, %r9d
	movswl	%r9w, %eax
	shrl	$2, %eax
	negl	%eax
	movswl	%ax, %r9d
	imull	$5243, %r10d, %edx              ## imm = 0x147B
	movl	%edx, %eax
	shrl	$31, %eax
	sarl	$19, %edx
	addl	%eax, %edx
	imull	$-5243, %r10d, %eax             ## imm = 0xEB85
	movl	%eax, %esi
	shrl	$31, %esi
	sarl	$21, %eax
	addl	%esi, %eax
	addl	%r8d, %ecx
	addl	%r9d, %ecx
	addl	%edx, %ecx
	addl	%eax, %ecx
	movl	%r10d, %r9d
LBB0_3:
	imull	$100, %ecx, %eax
	addl	$52, %eax
	cltq
	imulq	$718635051, %rax, %rax          ## imm = 0x2AD5802B
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$41, %rax
	leal	(%rax,%rdx), %r8d
	addl	%edx, %eax
	addl	$2, %eax
	movslq	%eax, %r10
	imulq	$715827883, %r10, %rsi          ## imm = 0x2AAAAAAB
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$33, %rsi
	addl	%eax, %esi
	leal	(,%rsi,4), %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %r10d
	incl	%r10d
	addl	%r9d, %esi
	imull	$306, %r8d, %eax                ## imm = 0x132
	addl	$5, %eax
	cltq
	imulq	$-1717986919, %rax, %rax        ## imm = 0x99999999
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$34, %rax
	addl	%edx, %eax
	addl	%ecx, %eax
	incl	%eax
	movl	%esi, 4(%rdi)
	movl	%r10d, 8(%rdi)
	movl	%eax, (%rdi)
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOCH_DAY,4,2                  ## @EPOCH_DAY
	.no_dead_strip	_magic_date_calc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function magic_date_calc
_magic_date_calc:                       ; @magic_date_calc
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	mov	w9, #1398
	movk	w9, #65525, lsl #16
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _EPOCH_DAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EPOCH_DAY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w8, w8, w9
	sub	w8, w8, #1
	mov	w9, #10000
	mov	w10, #14780
	madd	w9, w8, w9, w10
	mov	w10, #24697
	movk	w10, #9407, lsl #16
	smull	x10, w9, w10
	lsr	x11, x10, #63
	asr	x10, x10, #51
	add	w10, w10, w11
	mov	w11, #-365
	mov	w12, #40839
	movk	w12, #56128, lsl #16
	smull	x12, w9, w12
	lsr	x13, x12, #63
	asr	x12, x12, #53
	mov	w14, #57981
	movk	w14, #24082, lsl #16
	smull	x14, w9, w14
	lsr	x15, x14, #63
	asr	x14, x14, #59
	mov	w16, #36545
	movk	w16, #53494, lsl #16
	smull	x9, w9, w16
	lsr	x16, x9, #63
	asr	x9, x9, #60
	add	w12, w12, w13
	add	w12, w12, w8
	add	w13, w14, w15
	add	w12, w12, w13
	add	w9, w9, w16
	add	w9, w12, w9
	madd	w9, w10, w11, w9
	sub	w12, w10, #1
	and	w13, w12, #0xc000
	add	w13, w12, w13, lsr #14
	mov	w14, #5243
	mul	w14, w12, w14
	asr	w15, w14, #19
	add	w14, w15, w14, lsr #31
	mov	w15, #-5243
	mul	w15, w12, w15
	asr	w16, w15, #21
	add	w15, w16, w15, lsr #31
	madd	w8, w12, w11, w8
	sub	w8, w8, w13, asr #2
	add	w8, w8, w14
	add	w8, w8, w15
	tst	w9, #0x80000000
	csel	w8, w9, w8, eq
	csel	w9, w10, w12, eq
	mov	w10, #100
	mul	w10, w8, w10
	add	w10, w10, #52
	mov	w11, #32811
	movk	w11, #10965, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #41
	add	w10, w10, w11
	add	w11, w10, #2
	mov	w12, #43691
	movk	w12, #10922, lsl #16
	smull	x12, w11, w12
	lsr	x13, x12, #63
	asr	x12, x12, #33
	mov	w14, #12
	add	w12, w12, w13
	add	w9, w12, w9
	msub	w11, w12, w14, w11
	add	w11, w11, #1
	mov	w12, #306
	mul	w10, w10, w12
	add	w10, w10, #5
	mov	w12, #-1717986919
	smull	x10, w10, w12
	lsr	x12, x10, #63
	asr	x10, x10, #34
	add	w10, w10, w12
	add	w8, w8, w10
	stp	w9, w11, [x0, #4]
	add	w8, w8, #1
	str	w8, [x0]
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOCH_DAY,4,2                  ; @EPOCH_DAY
	.no_dead_strip	_magic_date_calc
.subsections_via_symbols
