	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_leapsec_query                  ## -- Begin function leapsec_query
	.p2align	4, 0x90
_leapsec_query:                         ## @leapsec_query
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_ntpcal_ntp_to_ntp
	movq	%rax, -48(%rbp)
	movl	(%rbx), %edi
	callq	_leapsec_get_table
	movq	%rax, %r15
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	leaq	48(%r15), %r13
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_ucmpv64
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	leaq	24(%r15), %rbx
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_ucmpv64
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_addv64i32
	movq	%rax, -64(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_ucmpv64
	testq	%rax, %rax
	js	LBB0_5
LBB0_3:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_reload_limits
LBB0_4:
	movl	-52(%rbp), %r13d                ## 4-byte Reload
LBB0_8:
	movq	8(%r15), %rax
	movq	%rax, 48(%r12)
	movq	48(%r15), %rax
	movq	%rax, 40(%r12)
	movq	40(%r15), %rax
	movq	%rax, 32(%r12)
	movq	%r15, %rsi
	addq	$32, %rsi
	leaq	-48(%rbp), %rdi
	callq	_ucmpv64
	testq	%rax, %rax
	js	LBB0_12
## %bb.9:
	movq	16(%r15), %rax
	subq	8(%r15), %rax
	movq	24(%r15), %rbx
	movq	%rax, 24(%r12)
	movq	%rbx, %rax
	subq	%r14, %rax
	movq	%rax, 16(%r12)
	movl	(%r15), %eax
	movl	%eax, 8(%r12)
	movq	_LSPROX_SCHEDULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_SECSPERDAY@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	subq	(%rax), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_betweenu32
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movq	_LSPROX_ANNOUNCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	leaq	-10(%rbx), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_betweenu32
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_LSPROX_ALERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
LBB0_12:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	40(%r15), %rsi
	movq	%rsi, -64(%rbp)
	subl	24(%r15), %esi
	movl	%esi, (%r12)
	leaq	-48(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_addv64i32
	movq	%rax, -72(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_reload_limits
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ucmpv64
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$0, (%r12)
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_7:
	movq	-72(%rbp), %r14
	movq	%r14, -48(%rbp)
	movl	$1, %r13d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_LSPROX_SCHEDULE,4,2            ## @LSPROX_SCHEDULE
	.comm	_SECSPERDAY,8,3                 ## @SECSPERDAY
	.comm	_LSPROX_ANNOUNCE,4,2            ## @LSPROX_ANNOUNCE
	.comm	_LSPROX_ALERT,4,2               ## @LSPROX_ALERT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_leapsec_query                  ; -- Begin function leapsec_query
	.p2align	2
_leapsec_query:                         ; @leapsec_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _FALSE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x1
	mov	x1, x2
	bl	_ntpcal_ntp_to_ntp
	str	x0, [sp, #24]
	ldr	w0, [x22]
	bl	_leapsec_get_table
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	add	x23, x22, #48
	add	x0, sp, #24
	mov	x1, x23
	bl	_ucmpv64
	tbnz	x0, #63, LBB0_3
; %bb.1:
	add	x24, x22, #24
	add	x0, sp, #24
	mov	x1, x24
	bl	_ucmpv64
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	x0, x24
	mov	w1, #3
	bl	_addv64i32
	str	x0, [sp, #16]
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_ucmpv64
	tbnz	x0, #63, LBB0_9
LBB0_3:
	add	x1, sp, #24
	mov	x0, x22
	bl	_reload_limits
LBB0_4:
	ldr	x8, [x22, #8]
	str	x8, [x19, #48]
	ldr	x8, [x22, #48]
	str	x8, [x19, #40]
	ldr	x8, [x22, #40]
	str	x8, [x19, #32]
	add	x1, x22, #32
	add	x0, sp, #24
	bl	_ucmpv64
	tbnz	x0, #63, LBB0_8
; %bb.5:
	ldp	x8, x23, [x22, #16]
	ldr	x9, [x22, #8]
	sub	x8, x8, x9
	sub	x9, x23, x20
	stp	x9, x8, [x19, #16]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _LSPROX_SCHEDULE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LSPROX_SCHEDULE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
Lloh5:
	adrp	x8, _SECSPERDAY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SECSPERDAY@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	sub	x0, x23, x8
	mov	x1, x20
	mov	x2, x23
	bl	_betweenu32
	cbz	w0, LBB0_8
; %bb.6:
Lloh8:
	adrp	x8, _LSPROX_ANNOUNCE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LSPROX_ANNOUNCE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	sub	x0, x23, #10
	mov	x1, x20
	mov	x2, x23
	bl	_betweenu32
	cbz	w0, LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _LSPROX_ALERT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LSPROX_ALERT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	x8, [x22, #40]
	str	x8, [sp, #16]
	ldr	w9, [x22, #24]
	sub	w1, w8, w9
	str	w1, [x19]
	add	x0, sp, #24
	bl	_addv64i32
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x22
	bl	_reload_limits
	add	x1, sp, #16
	mov	x0, x23
	bl	_ucmpv64
	cbz	x0, LBB0_11
; %bb.10:
	mov	w21, #0
	str	wzr, [x19]
	b	LBB0_4
LBB0_11:
	ldr	x20, [sp, #8]
	str	x20, [sp, #24]
	mov	w21, #1
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_LSPROX_SCHEDULE,4,2            ; @LSPROX_SCHEDULE
	.comm	_SECSPERDAY,8,3                 ; @SECSPERDAY
	.comm	_LSPROX_ANNOUNCE,4,2            ; @LSPROX_ANNOUNCE
	.comm	_LSPROX_ALERT,4,2               ; @LSPROX_ALERT
.subsections_via_symbols
