	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_JulianToSdn                    ## -- Begin function JulianToSdn
	.p2align	4, 0x90
_JulianToSdn:                           ## @JulianToSdn
	.cfi_startproc
## %bb.0:
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	leal	-32(%rdx), %ecx
	xorl	%eax, %eax
	cmpl	$-31, %ecx
	jb	LBB0_8
## %bb.1:
	testl	%edi, %edi
	je	LBB0_8
## %bb.2:
	cmpl	$-4713, %edi                    ## imm = 0xED97
	jl	LBB0_8
## %bb.3:
	leal	-13(%rsi), %ecx
	cmpl	$-12, %ecx
	jb	LBB0_8
## %bb.4:
	cmpl	$-4713, %edi                    ## imm = 0xED97
	jne	LBB0_7
## %bb.5:
	cmpl	$1, %esi
	jne	LBB0_7
## %bb.6:
	cmpl	$1, %edx
	jne	LBB0_7
LBB0_8:
	retq
LBB0_7:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %ecx
	shrl	$31, %ecx
	addl	%edi, %ecx
	cmpl	$3, %esi
	sbbl	$0, %ecx
	leal	-3(%rsi), %eax
	leal	9(%rsi), %edi
	cmpl	$3, %esi
	cmovael	%eax, %edi
	addl	$4800, %ecx                     ## imm = 0x12C0
	movq	_DAYS_PER_4_YEARS@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	leal	3(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movq	_DAYS_PER_5_MONTHS@GOTPCREL(%rip), %rcx
	imull	(%rcx), %edi
	sarl	$2, %eax
	addl	$2, %edi
	movslq	%edi, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rsi
	shrq	$63, %rsi
	sarq	$33, %rcx
	addl	%esi, %ecx
	movq	_JULIAN_SDN_OFFSET@GOTPCREL(%rip), %rsi
	addl	%edx, %eax
	subl	(%rsi), %eax
	addl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAYS_PER_4_YEARS,4,2           ## @DAYS_PER_4_YEARS
	.comm	_DAYS_PER_5_MONTHS,4,2          ## @DAYS_PER_5_MONTHS
	.comm	_JULIAN_SDN_OFFSET,4,2          ## @JULIAN_SDN_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_JulianToSdn                    ; -- Begin function JulianToSdn
	.p2align	2
_JulianToSdn:                           ; @JulianToSdn
	.cfi_startproc
; %bb.0:
	sub	w9, w1, #13
	sub	w8, w2, #32
	cmn	w8, #31
	ccmp	w0, #0, #4, hs
	mov	w8, #-4713
	ccmp	w0, w8, #8, ne
	ccmn	w9, #12, #0, ge
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
	cmp	w1, #1
	b.ne	LBB0_6
; %bb.4:
	cmp	w2, #1
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	ret
LBB0_6:
	cmp	w0, #0
	mov	w8, #4800
	cinc	w8, w8, lt
	cmp	w1, #3
	cset	w9, lo
	add	w8, w8, w0
	sub	w8, w8, w9
	mov	w9, #9
	mov	w10, #-3
	cmp	w1, #2
	csel	w9, w10, w9, hi
	add	w9, w9, w1
Lloh0:
	adrp	x10, _DAYS_PER_4_YEARS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DAYS_PER_4_YEARS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mul	w8, w10, w8
	add	w10, w8, #3
	cmp	w8, #0
	csel	w8, w10, w8, lt
Lloh3:
	adrp	x10, _DAYS_PER_5_MONTHS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DAYS_PER_5_MONTHS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w11, wzr, #0x2
	madd	w9, w10, w9, w11
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #33
	add	w9, w9, w10
Lloh6:
	adrp	x10, _JULIAN_SDN_OFFSET@GOTPAGE
Lloh7:
	ldr	x10, [x10, _JULIAN_SDN_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	add	w8, w2, w8, asr #2
	sub	w8, w8, w10
	add	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DAYS_PER_4_YEARS,4,2           ; @DAYS_PER_4_YEARS
	.comm	_DAYS_PER_5_MONTHS,4,2          ; @DAYS_PER_5_MONTHS
	.comm	_JULIAN_SDN_OFFSET,4,2          ; @JULIAN_SDN_OFFSET
.subsections_via_symbols
