	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_second_overflow                ## -- Begin function second_overflow
	.p2align	4, 0x90
_second_overflow:                       ## @second_overflow
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_time_tolerance@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_time_maxerror@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movq	_time_offset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	js	LBB0_1
## %bb.2:
	movq	_SHIFT_KG@GOTPCREL(%rip), %rdx
	movq	_time_constant@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rdx), %ecx
	movl	%esi, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edx
	subl	%edx, %esi
	movl	%esi, (%rax)
	movq	_SHIFT_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SHIFT_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SHIFT_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	%esi, %edi
	movl	%eax, %ecx
	subl	%edi, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	jmp	LBB0_3
LBB0_1:
	movl	%esi, %edx
	movq	_SHIFT_KG@GOTPCREL(%rip), %rdi
	movq	_time_constant@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rdi), %ecx
	negl	%edx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edx
	addl	%edx, %esi
	movl	%esi, (%rax)
	movq	_SHIFT_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SHIFT_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SHIFT_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	%esi, %edi
	movl	%eax, %ecx
	subl	%edi, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	negl	%edx
LBB0_3:
	movq	_time_freq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%edi, %edi
	js	LBB0_4
## %bb.5:
	movq	_SHIFT_KF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%esi, %ecx
	subl	%eax, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edi
	addl	%edi, %edx
	jmp	LBB0_6
LBB0_4:
	negl	%edi
	movq	_SHIFT_KF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%esi, %ecx
	subl	%eax, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edi
	subl	%edi, %edx
LBB0_6:
	movq	_fixtick@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subl	%esi, %eax
	movl	%eax, %ecx
	shll	%cl, %edi
	addl	%edx, %edi
	movq	_time_adj@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_timex@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imull	$757186827, %edx, %eax          ## imm = 0x2D21C10B
	addl	$3181440, %eax                  ## imm = 0x308B80
	rorl	$7, %eax
	cmpl	$49710, %eax                    ## imm = 0xC22E
	jbe	LBB0_7
LBB0_14:
	popq	%rbp
	retq
LBB0_7:
	movq	_time_status@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$128, %esi
	je	LBB0_12
## %bb.8:
	cmpl	$130, %esi
	je	LBB0_11
## %bb.9:
	cmpl	$129, %esi
	jne	LBB0_14
## %bb.10:
	decl	%edx
	movl	%edx, (%rcx)
	movl	$128, %ecx
	jmp	LBB0_13
LBB0_11:
	incl	%edx
	movl	%edx, (%rcx)
LBB0_12:
	movq	_TIME_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_13:
	movl	%ecx, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_time_tolerance,8,3             ## @time_tolerance
	.comm	_time_maxerror,4,2              ## @time_maxerror
	.comm	_time_offset,4,2                ## @time_offset
	.comm	_SHIFT_KG,4,2                   ## @SHIFT_KG
	.comm	_time_constant,4,2              ## @time_constant
	.comm	_SHIFT_SCALE,4,2                ## @SHIFT_SCALE
	.comm	_SHIFT_HZ,4,2                   ## @SHIFT_HZ
	.comm	_SHIFT_UPDATE,4,2               ## @SHIFT_UPDATE
	.comm	_time_adj,4,2                   ## @time_adj
	.comm	_time_freq,4,2                  ## @time_freq
	.comm	_SHIFT_KF,4,2                   ## @SHIFT_KF
	.comm	_fixtick,4,2                    ## @fixtick
	.comm	_timex,4,2                      ## @timex
	.comm	_time_status,4,2                ## @time_status
	.comm	_TIME_OK,4,2                    ## @TIME_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_second_overflow                ; -- Begin function second_overflow
	.p2align	2
_second_overflow:                       ; @second_overflow
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _time_tolerance@GOTPAGE
Lloh1:
	ldr	x8, [x8, _time_tolerance@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _time_maxerror@GOTPAGE
Lloh4:
	ldr	x9, [x9, _time_maxerror@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
Lloh5:
	adrp	x8, _time_offset@GOTPAGE
Lloh6:
	ldr	x8, [x8, _time_offset@GOTPAGEOFF]
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_2
; %bb.1:
Lloh7:
	adrp	x10, _SHIFT_KG@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SHIFT_KG@GOTPAGEOFF]
Lloh9:
	adrp	x11, _time_constant@GOTPAGE
Lloh10:
	ldr	x11, [x11, _time_constant@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	ldr	w11, [x11]
	add	w10, w11, w10
	lsr	w10, w9, w10
	sub	w9, w9, w10
	str	w9, [x8]
Lloh13:
	adrp	x8, _SHIFT_SCALE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SHIFT_SCALE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _SHIFT_HZ@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SHIFT_HZ@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x11, _SHIFT_UPDATE@GOTPAGE
Lloh20:
	ldr	x11, [x11, _SHIFT_UPDATE@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	add	w11, w9, w11
	sub	w11, w8, w11
	lsl	w10, w10, w11
	b	LBB0_3
LBB0_2:
	neg	w10, w9
Lloh22:
	adrp	x11, _SHIFT_KG@GOTPAGE
Lloh23:
	ldr	x11, [x11, _SHIFT_KG@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
Lloh25:
	adrp	x12, _time_constant@GOTPAGE
Lloh26:
	ldr	x12, [x12, _time_constant@GOTPAGEOFF]
Lloh27:
	ldr	w12, [x12]
	add	w11, w12, w11
	lsr	w10, w10, w11
	add	w9, w10, w9
Lloh28:
	adrp	x11, _SHIFT_SCALE@GOTPAGE
Lloh29:
	ldr	x11, [x11, _SHIFT_SCALE@GOTPAGEOFF]
	str	w9, [x8]
Lloh30:
	ldr	w8, [x11]
Lloh31:
	adrp	x9, _SHIFT_HZ@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SHIFT_HZ@GOTPAGEOFF]
Lloh33:
	adrp	x11, _SHIFT_UPDATE@GOTPAGE
Lloh34:
	ldr	x11, [x11, _SHIFT_UPDATE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	ldr	w11, [x11]
	add	w11, w9, w11
	sub	w11, w8, w11
	lsl	w10, w10, w11
	neg	w10, w10
LBB0_3:
Lloh37:
	adrp	x11, _time_freq@GOTPAGE
Lloh38:
	ldr	x11, [x11, _time_freq@GOTPAGEOFF]
Lloh39:
	ldr	w11, [x11]
	tbnz	w11, #31, LBB0_5
; %bb.4:
Lloh40:
	adrp	x12, _SHIFT_KF@GOTPAGE
Lloh41:
	ldr	x12, [x12, _SHIFT_KF@GOTPAGEOFF]
Lloh42:
	ldr	w12, [x12]
	add	w12, w9, w12
	sub	w12, w12, w8
	lsr	w11, w11, w12
	add	w10, w11, w10
	b	LBB0_6
LBB0_5:
Lloh43:
	adrp	x12, _SHIFT_KF@GOTPAGE
Lloh44:
	ldr	x12, [x12, _SHIFT_KF@GOTPAGEOFF]
	neg	w11, w11
Lloh45:
	ldr	w12, [x12]
	add	w12, w9, w12
	sub	w12, w12, w8
	lsr	w11, w11, w12
	sub	w10, w10, w11
LBB0_6:
Lloh46:
	adrp	x11, _fixtick@GOTPAGE
Lloh47:
	ldr	x11, [x11, _fixtick@GOTPAGEOFF]
Lloh48:
	ldr	w11, [x11]
	sub	w8, w8, w9
	lsl	w8, w11, w8
Lloh49:
	adrp	x9, _time_adj@GOTPAGE
Lloh50:
	ldr	x9, [x9, _time_adj@GOTPAGEOFF]
	add	w8, w8, w10
Lloh51:
	str	w8, [x9]
Lloh52:
	adrp	x9, _timex@GOTPAGE
Lloh53:
	ldr	x9, [x9, _timex@GOTPAGEOFF]
	ldr	w10, [x9]
	mov	w8, #49419
	movk	w8, #11553, lsl #16
	mov	w11, #35712
	movk	w11, #48, lsl #16
	madd	w8, w10, w8, w11
	ror	w8, w8, #7
	mov	w11, #49710
	cmp	w8, w11
	b.ls	LBB0_8
LBB0_7:
	ret
LBB0_8:
Lloh54:
	adrp	x8, _time_status@GOTPAGE
Lloh55:
	ldr	x8, [x8, _time_status@GOTPAGEOFF]
	ldr	w11, [x8]
	cmp	w11, #128
	b.eq	LBB0_13
; %bb.9:
	cmp	w11, #130
	b.eq	LBB0_12
; %bb.10:
	cmp	w11, #129
	b.ne	LBB0_7
; %bb.11:
	sub	w10, w10, #1
	str	w10, [x9]
	mov	w9, #128
	str	w9, [x8]
	ret
LBB0_12:
	add	w10, w10, #1
	str	w10, [x9]
LBB0_13:
Lloh56:
	adrp	x9, _TIME_OK@GOTPAGE
Lloh57:
	ldr	x9, [x9, _TIME_OK@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	str	w9, [x8]
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotStr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_time_tolerance,8,3             ; @time_tolerance
	.comm	_time_maxerror,4,2              ; @time_maxerror
	.comm	_time_offset,4,2                ; @time_offset
	.comm	_SHIFT_KG,4,2                   ; @SHIFT_KG
	.comm	_time_constant,4,2              ; @time_constant
	.comm	_SHIFT_SCALE,4,2                ; @SHIFT_SCALE
	.comm	_SHIFT_HZ,4,2                   ; @SHIFT_HZ
	.comm	_SHIFT_UPDATE,4,2               ; @SHIFT_UPDATE
	.comm	_time_adj,4,2                   ; @time_adj
	.comm	_time_freq,4,2                  ; @time_freq
	.comm	_SHIFT_KF,4,2                   ; @SHIFT_KF
	.comm	_fixtick,4,2                    ; @fixtick
	.comm	_timex,4,2                      ; @timex
	.comm	_time_status,4,2                ; @time_status
	.comm	_TIME_OK,4,2                    ; @TIME_OK
.subsections_via_symbols
