	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpcal_split_eradays           ## -- Begin function ntpcal_split_eradays
	.p2align	4, 0x90
_ntpcal_split_eradays:                  ## @ntpcal_split_eradays
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	callq	_int32_sflag
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_int32_to_uint32_2cpl
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_uint32_saturate
                                        ## kill: def $eax killed $eax def $rax
	leal	3(,%rax,4), %ebx
	movl	%ebx, %eax
	xorl	%r15d, %eax
	movq	_GREGORIAN_CYCLE_DAYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r12d
	xorl	%r15d, %r12d
	imull	%r12d, %ecx
	subl	%ecx, %ebx
	movl	%r12d, %edi
	callq	_uint32_2cpl_to_int32
	movl	%eax, %ecx
	orl	$3, %ebx
	movq	_GREGORIAN_NORMAL_LEAP_CYCLE_DAYS@GOTPCREL(%rip), %rsi
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%rsi)
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	leal	1(%rax), %esi
	testb	$3, %sil
	jne	LBB0_4
## %bb.2:
	movl	$1, %r13d
	cmpl	$99, %eax
	jne	LBB0_4
## %bb.3:
	incl	%r12d
	xorl	%r13d, %r13d
	testb	$3, %r12b
	sete	%r13b
LBB0_4:
	movl	%r13d, (%r14)
LBB0_5:
	shrl	$2, %edx
	imull	$100, %ecx, %ecx
	addl	%ecx, %eax
	shlq	$32, %rdx
	orq	%rdx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GREGORIAN_CYCLE_DAYS,4,2       ## @GREGORIAN_CYCLE_DAYS
	.comm	_GREGORIAN_NORMAL_LEAP_CYCLE_DAYS,4,2 ## @GREGORIAN_NORMAL_LEAP_CYCLE_DAYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpcal_split_eradays           ; -- Begin function ntpcal_split_eradays
	.p2align	2
_ntpcal_split_eradays:                  ; @ntpcal_split_eradays
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	bl	_int32_sflag
	mov	x21, x0
	mov	x0, x20
	bl	_int32_to_uint32_2cpl
	mov	x1, x21
	bl	_uint32_saturate
	mov	w8, #3
	bfi	w8, w0, #2, #30
	eor	w9, w8, w21
Lloh0:
	adrp	x10, _GREGORIAN_CYCLE_DAYS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GREGORIAN_CYCLE_DAYS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	udiv	w9, w9, w10
	eor	w20, w9, w21
	msub	w21, w20, w10, w8
	mov	x0, x20
	bl	_uint32_2cpl_to_int32
	orr	w8, w21, #0x3
Lloh3:
	adrp	x9, _GREGORIAN_NORMAL_LEAP_CYCLE_DAYS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GREGORIAN_NORMAL_LEAP_CYCLE_DAYS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x9]
	udiv	w9, w8, w10
	cbz	x19, LBB0_2
; %bb.1:
	add	w11, w9, #1
	mov	w12, #1
	add	w13, w20, #1
	tst	w13, #0x3
	cset	w13, eq
	cmp	w9, #99
	csel	w12, w12, w13, ne
	tst	w11, #0x3
	csel	w11, wzr, w12, ne
	str	w11, [x19]
LBB0_2:
	msub	w8, w9, w10, w8
	lsr	w8, w8, #2
	mov	w10, #100
	madd	w0, w0, w10, w9
	bfi	x0, x8, #32, #30
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GREGORIAN_CYCLE_DAYS,4,2       ; @GREGORIAN_CYCLE_DAYS
	.comm	_GREGORIAN_NORMAL_LEAP_CYCLE_DAYS,4,2 ; @GREGORIAN_NORMAL_LEAP_CYCLE_DAYS
.subsections_via_symbols
