	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isocal_ntp64_to_date           ## -- Begin function isocal_ntp64_to_date
	.p2align	4, 0x90
_isocal_ntp64_to_date:                  ## @isocal_ntp64_to_date
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	%rsi, %rdi
	callq	_ntpcal_daysplit
	movq	%rax, %rbx
	movq	%rax, %rsi
	shrq	$32, %rsi
	leaq	-64(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_priv_timesplit
	addl	%eax, %ebx
	movq	-64(%rbp), %rax
	movq	%rax, 40(%r14)
	movdqu	-56(%rbp), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, 24(%r14)
	movq	_DAY_NTP_STARTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rbx), %r15d
	decl	%r15d
	movl	%r15d, %edi
	callq	_int32_sflag
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_int32_to_uint32_2cpl
	movl	%eax, %r15d
	xorl	%ebx, %eax
	movq	_DAYSPERWEEK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	xorl	%eax, %ebx
	imull	%ebx, %ecx
	subl	%ecx, %r15d
	movl	%ebx, %edi
	callq	_uint32_2cpl_to_int32
	movslq	%r15d, %rcx
	incq	%rcx
	movq	%rcx, 16(%r14)
	movl	%eax, %edi
	callq	_isocal_split_eraweeks
	movslq	%eax, %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 8(%r14)
	sarq	$32, %rax
	incq	%rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	setb	%cl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-32(%rbp), %rdx
	jne	LBB0_2
## %bb.1:
	movb	%cl, %al
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DAY_NTP_STARTS,4,2             ## @DAY_NTP_STARTS
	.comm	_DAYSPERWEEK,4,2                ## @DAYSPERWEEK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isocal_ntp64_to_date           ; -- Begin function isocal_ntp64_to_date
	.p2align	2
_isocal_ntp64_to_date:                  ; @isocal_ntp64_to_date
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x0, x1
	bl	_ntpcal_daysplit
	mov	x20, x0
	lsr	x1, x0, #32
	mov	x0, sp
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_priv_timesplit
	ldp	x8, x9, [sp]
	stp	x9, x8, [x19, #32]
	ldr	x8, [sp, #16]
	str	x8, [x19, #24]
Lloh3:
	adrp	x8, _DAY_NTP_STARTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DAY_NTP_STARTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w0, w20
	add	w8, w9, w8
	sub	w20, w8, #1
	mov	x0, x20
	bl	_int32_sflag
	mov	x21, x0
	mov	x0, x20
	bl	_int32_to_uint32_2cpl
	eor	w8, w0, w21
Lloh6:
	adrp	x9, _DAYSPERWEEK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DAYSPERWEEK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	eor	w8, w8, w21
	msub	w20, w8, w9, w0
	mov	x0, x8
	bl	_uint32_2cpl_to_int32
	sxtw	x8, w20
	add	x8, x8, #1
	str	x8, [x19, #16]
	bl	_isocal_split_eraweeks
	sxtw	x8, w0
	add	x8, x8, #1
	asr	x9, x0, #32
	add	x9, x9, #1
	stp	x9, x8, [x19]
	mov	w8, #65535
	cmp	w0, w8
	cset	w0, lo
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DAY_NTP_STARTS,4,2             ; @DAY_NTP_STARTS
	.comm	_DAYSPERWEEK,4,2                ; @DAYSPERWEEK
.subsections_via_symbols
