	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_drift
_update_drift:                          ## @update_drift
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edx, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	movq	_accum_drift@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_USECSCALE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_R_SHIFT
	movb	(%r13), %cl
	movl	$-1, %r15d
	shll	%cl, %r15d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %esi
	notl	%r15d
	andl	%esi, %r15d
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_LPRINTF
	movb	(%r13), %cl
	movl	$1, %esi
	shll	%cl, %esi
	imull	$1000, %r15d, %eax              ## imm = 0x3E8
	cltd
	idivl	%esi
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_l_abs
	cltq
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$50, %rax
	addl	%ecx, %eax
	movslq	%eax, %r13
	movq	%rbx, %rdi
	callq	_l_abs
	cltq
	imulq	$1125899907, %rax, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$50, %rcx
	addl	%edx, %ecx
	imull	$1000000, %ecx, %ecx            ## imm = 0xF4240
	subl	%ecx, %eax
	movslq	%eax, %r15
	leaq	-48(%rbp), %rdi
	callq	_localtime
	movl	%eax, %edi
	callq	_asctime
                                        ## kill: def $eax killed $eax def $rax
	shrq	$63, %rbx
	leal	(%rbx,%rbx), %r8d
	addl	$43, %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movq	%r13, %r9
	pushq	%rax
	pushq	%r15
	callq	_fprintf
	addq	$16, %rsp
	movq	%r14, %rdi
	callq	_fclose
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_LPRINTF
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

	.comm	_accum_drift,4,2                ## @accum_drift
	.comm	_USECSCALE,4,2                  ## @USECSCALE
L_.str.1:                               ## @.str.1
	.asciz	"update_drift: drift_comp %ld "

L_.str.2:                               ## @.str.2
	.asciz	"%4d.%03d %c%ld.%06ld %.24s\n"

L_.str.3:                               ## @.str.3
	.asciz	"update_drift: %d.%03d ppm "

	.no_dead_strip	_update_drift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_drift
_update_drift:                          ; @update_drift
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	str	w2, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x22, _accum_drift@GOTPAGE
Lloh3:
	ldr	x22, [x22, _accum_drift@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh4:
	adrp	x23, _USECSCALE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _USECSCALE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_R_SHIFT
	mov	x20, x0
	ldr	w1, [x22]
	ldr	w8, [x23]
	mov	w9, #-1
	lsl	w8, w9, w8
	bic	w22, w1, w8
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LPRINTF
	mov	w8, #1000
	mul	w8, w22, w8
	ldr	w9, [x23]
	mov	w10, #1
	lsl	w9, w10, w9
	sdiv	w22, w8, w9
	mov	x0, x21
	bl	_l_abs
	mov	w24, #56963
	movk	w24, #17179, lsl #16
	smull	x8, w0, w24
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	sxtw	x23, w8
	mov	x0, x21
	bl	_l_abs
	smull	x8, w0, w24
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	mov	w9, #16960
	movk	w9, #15, lsl #16
	msub	w8, w8, w9, w0
	sxtw	x24, w8
	add	x0, sp, #12
	bl	_localtime
	bl	_asctime
	mov	x7, x0
	cmp	x21, #0
	mov	w8, #43
	mov	w9, #45
	csel	w4, w9, w8, lt
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	mov	x5, x23
	mov	x6, x24
	bl	_fprintf
	mov	x0, x19
	bl	_fclose
	str	x22, [sp]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_LPRINTF
LBB0_2:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

	.comm	_accum_drift,4,2                ; @accum_drift
	.comm	_USECSCALE,4,2                  ; @USECSCALE
l_.str.1:                               ; @.str.1
	.asciz	"update_drift: drift_comp %ld "

l_.str.2:                               ; @.str.2
	.asciz	"%4d.%03d %c%ld.%06ld %.24s\n"

l_.str.3:                               ; @.str.3
	.asciz	"update_drift: %d.%03d ppm "

	.no_dead_strip	_update_drift
.subsections_via_symbols
