	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function leapsec_add
_leapsec_add:                           ## @leapsec_add
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	16(%rdi), %rsi
	movq	%rbx, %rdi
	callq	_ucmpv64
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.2:
	movq	24(%r15), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	callq	_ucmpv64
	testq	%rax, %rax
	jle	LBB0_3
LBB0_5:
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_ntpcal_ntp64_to_date
	cmpl	$1, -72(%rbp)
	jne	LBB0_8
## %bb.6:
	cmpq	$0, -64(%rbp)
	jne	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_8:
	movl	$1, -72(%rbp)
	movq	$0, -64(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -48(%rbp)
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	callq	_ntpcal_date_to_ntp64
	movq	%rax, %rbx
	incl	-56(%rbp)
	movq	%r12, %rdi
	callq	_ntpcal_date_to_ntp64
	movq	%rax, -80(%rbp)
	subq	%rbx, %rax
	movq	%rax, -88(%rbp)
	cmpq	$0, 8(%r15)
	je	LBB0_10
## %bb.9:
	movq	24(%r15), %rax
	jmp	LBB0_11
LBB0_10:
	movq	%r15, %rax
LBB0_11:
	xorl	%ecx, %ecx
	cmpl	$1, %r14d
	sbbq	%rcx, %rcx
	orq	$1, %rcx
	addq	(%rax), %rcx
	movq	%rcx, -96(%rbp)
	movl	$1, -104(%rbp)
	leaq	-104(%rbp), %rsi
	movq	%r15, %rdi
	callq	_add_range
LBB0_12:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_errno,4,2                      ## @errno
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_leapsec_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function leapsec_add
_leapsec_add:                           ; @leapsec_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x1, x0, #16
	mov	x0, x21
	bl	_ucmpv64
	tbnz	x0, #63, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	add	x1, x8, #8
	mov	x0, x21
	bl	_ucmpv64
	cmp	x0, #0
	b.le	LBB0_6
LBB0_3:
	add	x0, sp, #40
	mov	x1, x21
	bl	_ntpcal_ntp64_to_date
	ldr	w8, [sp, #40]
	ldr	x9, [sp, #48]
	cmp	w8, #1
	ccmp	x9, #0, #0, eq
	b.eq	LBB0_7
; %bb.4:
	mov	w8, #1
	str	w8, [sp, #40]
	stp	xzr, xzr, [sp, #64]
	str	xzr, [sp, #48]
	add	x0, sp, #40
	bl	_ntpcal_date_to_ntp64
	mov	x21, x0
	ldr	w8, [sp, #56]
	add	w8, w8, #1
	str	w8, [sp, #56]
	add	x0, sp, #40
	bl	_ntpcal_date_to_ntp64
	sub	x8, x0, x21
	stp	x8, x0, [sp, #24]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	x8, [x19, #24]
	b	LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _errno@GOTPAGE
Lloh5:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh6:
	str	w8, [x9]
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_9:
	mov	x8, x19
LBB0_10:
	ldr	x8, [x8]
	sub	x9, x8, #1
	cmp	w20, #0
	csinc	x8, x9, x8, eq
	str	x8, [sp, #16]
	mov	w8, #1
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_add_range
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_errno,4,2                      ; @errno
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_leapsec_add
.subsections_via_symbols
