	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function check_leapsec
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_check_leapsec:                         ## @check_leapsec
	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%edi, %edi
	callq	_leapsec_electric
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_LSPROX_NOWARN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_leapsec_reset_frame
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	jmp	LBB0_16
LBB0_2:
	leaq	-72(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_leapsec_query
	movl	%eax, %ebx
	movslq	-28(%rbp), %rsi
	movl	$3, %edi
	callq	_DPRINTF
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.3:
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm0, %xmm2
	jbe	LBB0_7
## %bb.4:
	movq	_clock_max_back@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	ucomisd	%xmm2, %xmm1
	leaq	_check_leapsec.leapmsg_p_slew(%rip), %rbx
	jbe	LBB0_12
## %bb.5:
	movapd	LCPI0_0(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0]
	xorpd	%xmm0, %xmm2
	ucomisd	%xmm1, %xmm2
	jbe	LBB0_12
## %bb.6:
	leaq	_check_leapsec.leapmsg_p_step(%rip), %rbx
	jmp	LBB0_11
LBB0_14:
	movq	-48(%rbp), %rbx
	jmp	LBB0_15
LBB0_7:
	ucomisd	%xmm2, %xmm0
	jbe	LBB0_13
## %bb.8:
	movq	_clock_max_fwd@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm2, %xmm1
	leaq	_check_leapsec.leapmsg_n_slew(%rip), %rbx
	jbe	LBB0_12
## %bb.9:
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_12
## %bb.10:
	leaq	_check_leapsec.leapmsg_n_step(%rip), %rbx
LBB0_11:
	callq	_step_systime
LBB0_12:
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_msyslog
LBB0_13:
	movq	_EVNT_LEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_report_event
	movq	_LSPROX_NOWARN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_leapsec@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
LBB0_15:
	movq	-56(%rbp), %rax
	movq	_sys_tai@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_16:
	movq	_leapsec@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	setg	%cl
	movq	_LSPROX_ALERT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rbx
	setl	%dl
	orb	%cl, %dl
	cmpb	$1, %dl
	jne	LBB0_23
## %bb.17:
	cmpq	%rbx, %rax
	jge	LBB0_23
## %bb.18:
	movq	_LSPROX_SCHEDULE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_30
## %bb.19:
	cmpq	%rcx, %rbx
	jl	LBB0_30
## %bb.20:
	cmpq	$0, -40(%rbp)
	je	LBB0_22
## %bb.21:
	movq	_PEVNT_ARMED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sys_peer@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_29
LBB0_23:
	cmpq	%rbx, %rax
	jle	LBB0_24
## %bb.25:
	movq	_LSPROX_SCHEDULE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_30
## %bb.26:
	cmpq	%rcx, %rbx
	jge	LBB0_30
## %bb.27:
	movq	_EVNT_DISARMED@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_24:
	movq	%rax, %rbx
	jmp	LBB0_31
LBB0_22:
	movq	_EVNT_ARMED@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %edi
	xorl	%esi, %esi
LBB0_29:
	xorl	%edx, %edx
	callq	_report_event
LBB0_30:
	movq	%rbx, (%r14)
LBB0_31:
	movq	_LSPROX_SCHEDULE@GOTPCREL(%rip), %rax
	xorpd	%xmm0, %xmm0
	cmpq	(%rax), %rbx
	jl	LBB0_33
## %bb.32:
	movsd	-72(%rbp), %xmm0                ## xmm0 = mem[0],zero
LBB0_33:
	movq	_leapdif@GOTPCREL(%rip), %rax
	movsd	%xmm0, (%rax)
	leaq	-72(%rbp), %rdi
	callq	_check_leap_sec_in_progress
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @check_leapsec.leapmsg_p_step
_check_leapsec.leapmsg_p_step:
	.asciz	"Positive leap second, stepped backward."

	.p2align	4                               ## @check_leapsec.leapmsg_p_slew
_check_leapsec.leapmsg_p_slew:
	.asciz	"Positive leap second, no step correction. System clock will be inaccurate for a long time."

	.p2align	4                               ## @check_leapsec.leapmsg_n_step
_check_leapsec.leapmsg_n_step:
	.asciz	"Negative leap second, stepped forward."

	.p2align	4                               ## @check_leapsec.leapmsg_n_slew
_check_leapsec.leapmsg_n_slew:
	.asciz	"Negative leap second, no step correction. System clock will be inaccurate for a long time."

	.comm	_LSPROX_NOWARN,8,3              ## @LSPROX_NOWARN
	.comm	_clock_max_back,8,3             ## @clock_max_back
	.comm	_clock_max_fwd,8,3              ## @clock_max_fwd
	.comm	_LOG_NOTICE,4,2                 ## @LOG_NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_EVNT_LEAP,4,2                  ## @EVNT_LEAP
	.comm	_leapsec,8,3                    ## @leapsec
	.comm	_sys_tai,8,3                    ## @sys_tai
	.comm	_LSPROX_ALERT,8,3               ## @LSPROX_ALERT
	.comm	_LSPROX_SCHEDULE,8,3            ## @LSPROX_SCHEDULE
	.comm	_PEVNT_ARMED,4,2                ## @PEVNT_ARMED
	.comm	_sys_peer,8,3                   ## @sys_peer
	.comm	_EVNT_ARMED,4,2                 ## @EVNT_ARMED
	.comm	_EVNT_DISARMED,4,2              ## @EVNT_DISARMED
	.comm	_leapdif,8,3                    ## @leapdif
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_M_PI,8,3                       ## @M_PI
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_kern_enable,8,3                ## @kern_enable
	.comm	_leap_smear,32,3                ## @leap_smear
	.comm	_leap_smear_intv,8,3            ## @leap_smear_intv
	.comm	_pll_control,8,3                ## @pll_control
	.no_dead_strip	_check_leapsec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_leapsec
_check_leapsec:                         ; @check_leapsec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	w0, #0
	bl	_leapsec_electric
Lloh0:
	adrp	x22, _leapsec@GOTPAGE
Lloh1:
	ldr	x22, [x22, _leapsec@GOTPAGEOFF]
	cbz	w21, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _LSPROX_NOWARN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LSPROX_NOWARN@GOTPAGEOFF]
Lloh4:
	ldr	x19, [x8]
	bl	_leapsec_reset_frame
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	b	LBB0_16
LBB0_2:
	add	x0, sp, #16
	mov	x1, x20
	mov	x2, x19
	bl	_leapsec_query
	mov	x19, x0
	ldrsw	x1, [sp, #60]
	mov	w0, #3
	bl	_DPRINTF
	cbz	w19, LBB0_6
; %bb.3:
	ldr	d0, [sp, #24]
	fcmp	d0, #0.0
	b.pl	LBB0_7
; %bb.4:
Lloh5:
	adrp	x8, _clock_max_back@GOTPAGE
Lloh6:
	ldr	x8, [x8, _clock_max_back@GOTPAGEOFF]
Lloh7:
	ldr	d1, [x8]
	fneg	d2, d0
	fcmp	d1, #0.0
	fccmp	d1, d2, #0, gt
	b.mi	LBB0_10
; %bb.5:
Lloh8:
	adrp	x19, _check_leapsec.leapmsg_p_slew@PAGE
Lloh9:
	add	x19, x19, _check_leapsec.leapmsg_p_slew@PAGEOFF
	b	LBB0_13
LBB0_6:
	ldr	x19, [sp, #40]
	b	LBB0_15
LBB0_7:
	b.le	LBB0_14
; %bb.8:
Lloh10:
	adrp	x8, _clock_max_fwd@GOTPAGE
Lloh11:
	ldr	x8, [x8, _clock_max_fwd@GOTPAGEOFF]
Lloh12:
	ldr	d1, [x8]
	fcmp	d1, #0.0
	fccmp	d1, d0, #0, gt
	b.mi	LBB0_11
; %bb.9:
Lloh13:
	adrp	x19, _check_leapsec.leapmsg_n_slew@PAGE
Lloh14:
	add	x19, x19, _check_leapsec.leapmsg_n_slew@PAGEOFF
	b	LBB0_13
LBB0_10:
Lloh15:
	adrp	x19, _check_leapsec.leapmsg_p_step@PAGE
Lloh16:
	add	x19, x19, _check_leapsec.leapmsg_p_step@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x19, _check_leapsec.leapmsg_n_step@PAGE
Lloh18:
	add	x19, x19, _check_leapsec.leapmsg_n_step@PAGEOFF
LBB0_12:
	bl	_step_systime
LBB0_13:
Lloh19:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msyslog
LBB0_14:
Lloh24:
	adrp	x8, _EVNT_LEAP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EVNT_LEAP@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, #0
	bl	_report_event
Lloh27:
	adrp	x8, _LSPROX_NOWARN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LSPROX_NOWARN@GOTPAGEOFF]
Lloh29:
	ldr	x19, [x8]
	str	x19, [x22]
LBB0_15:
	ldr	x8, [sp, #32]
Lloh30:
	adrp	x9, _sys_tai@GOTPAGE
Lloh31:
	ldr	x9, [x9, _sys_tai@GOTPAGEOFF]
Lloh32:
	str	x8, [x9]
LBB0_16:
	ldr	x8, [x22]
Lloh33:
	adrp	x9, _LSPROX_ALERT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _LSPROX_ALERT@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x19, x9
	ccmp	x8, #0, #0, ge
	ccmp	x8, x19, #0, gt
Lloh36:
	adrp	x20, _LSPROX_SCHEDULE@GOTPAGE
Lloh37:
	ldr	x20, [x20, _LSPROX_SCHEDULE@GOTPAGEOFF]
	b.lt	LBB0_20
; %bb.17:
	cmp	x8, x19
	b.le	LBB0_27
; %bb.18:
	ldr	x9, [x20]
	cmp	x8, x9
	ccmp	x19, x9, #0, ge
	b.ge	LBB0_26
; %bb.19:
Lloh38:
	adrp	x8, _EVNT_DISARMED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EVNT_DISARMED@GOTPAGEOFF]
	b	LBB0_24
LBB0_20:
	ldr	x9, [x20]
	cmp	x8, x9
	ccmp	x19, x9, #8, lt
	b.lt	LBB0_26
; %bb.21:
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_23
; %bb.22:
Lloh40:
	adrp	x8, _PEVNT_ARMED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PEVNT_ARMED@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x8, _sys_peer@GOTPAGE
Lloh44:
	ldr	x8, [x8, _sys_peer@GOTPAGEOFF]
Lloh45:
	ldr	x1, [x8]
	b	LBB0_25
LBB0_23:
Lloh46:
	adrp	x8, _EVNT_ARMED@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EVNT_ARMED@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
	mov	x1, #0
LBB0_25:
	mov	x2, #0
	bl	_report_event
LBB0_26:
	str	x19, [x22]
	mov	x8, x19
LBB0_27:
	ldr	x9, [x20]
	ldr	d0, [sp, #16]
	cmp	x8, x9
	movi	d1, #0000000000000000
	fcsel	d0, d1, d0, lt
Lloh48:
	adrp	x8, _leapdif@GOTPAGE
Lloh49:
	ldr	x8, [x8, _leapdif@GOTPAGEOFF]
Lloh50:
	str	d0, [x8]
	add	x0, sp, #16
	bl	_check_leap_sec_in_progress
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_check_leapsec.leapmsg_p_step:          ; @check_leapsec.leapmsg_p_step
	.asciz	"Positive leap second, stepped backward."

_check_leapsec.leapmsg_p_slew:          ; @check_leapsec.leapmsg_p_slew
	.asciz	"Positive leap second, no step correction. System clock will be inaccurate for a long time."

_check_leapsec.leapmsg_n_step:          ; @check_leapsec.leapmsg_n_step
	.asciz	"Negative leap second, stepped forward."

_check_leapsec.leapmsg_n_slew:          ; @check_leapsec.leapmsg_n_slew
	.asciz	"Negative leap second, no step correction. System clock will be inaccurate for a long time."

	.comm	_LSPROX_NOWARN,8,3              ; @LSPROX_NOWARN
	.comm	_clock_max_back,8,3             ; @clock_max_back
	.comm	_clock_max_fwd,8,3              ; @clock_max_fwd
	.comm	_LOG_NOTICE,4,2                 ; @LOG_NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_EVNT_LEAP,4,2                  ; @EVNT_LEAP
	.comm	_leapsec,8,3                    ; @leapsec
	.comm	_sys_tai,8,3                    ; @sys_tai
	.comm	_LSPROX_ALERT,8,3               ; @LSPROX_ALERT
	.comm	_LSPROX_SCHEDULE,8,3            ; @LSPROX_SCHEDULE
	.comm	_PEVNT_ARMED,4,2                ; @PEVNT_ARMED
	.comm	_sys_peer,8,3                   ; @sys_peer
	.comm	_EVNT_ARMED,4,2                 ; @EVNT_ARMED
	.comm	_EVNT_DISARMED,4,2              ; @EVNT_DISARMED
	.comm	_leapdif,8,3                    ; @leapdif
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_M_PI,8,3                       ; @M_PI
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_kern_enable,8,3                ; @kern_enable
	.comm	_leap_smear,32,3                ; @leap_smear
	.comm	_leap_smear_intv,8,3            ; @leap_smear_intv
	.comm	_pll_control,8,3                ; @pll_control
	.no_dead_strip	_check_leapsec
.subsections_via_symbols
