	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function get_systime
LCPI0_0:
	.quad	0x3e112e0be826d695              ## double 1.0000000000000001E-9
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_get_systime
	.p2align	4, 0x90
_get_systime:                           ## @get_systime
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-56(%rbp), %rdi
	callq	_get_ostime
	movq	_systime_init_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG_REQUIRE
	xorl	%eax, %eax
	callq	_ENTER_GET_SYSTIME_CRITSEC
	movq	-56(%rbp), %rdi
	movl	-48(%rbp), %esi
	movl	$50000000, %edx                 ## imm = 0x2FAF080
	callq	_add_tspec_ns
	movq	_get_systime.ts_last(%rip), %rbx
	movl	_get_systime.ts_last+8(%rip), %ecx
	movq	%rax, %rdi
	movl	%edx, %esi
	movq	%rbx, %rdx
	callq	_cmp_tspec
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_lamport_violated@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_sys_lamport@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_2:
	movups	-56(%rbp), %xmm0
	movups	%xmm0, _get_systime.ts_last(%rip)
	xorl	%eax, %eax
	callq	_USING_SIGIO
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	_sys_fuzz_nsec@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_get_systime.ts_prev(%rip), %rdi
	movl	_get_systime.ts_prev+8(%rip), %esi
	callq	_add_tspec_ns
	movq	%rax, %rbx
	movl	%edx, %r15d
	movq	-56(%rbp), %rdi
	movl	-48(%rbp), %esi
	movq	%rax, %rdx
	movl	%r15d, %ecx
	callq	_cmp_tspec
	testq	%rax, %rax
	jns	LBB0_8
## %bb.4:
	movq	-56(%rbp), %rdx
	movl	-48(%rbp), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_sub_tspec
	movq	_lamport_violated@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	testl	%ecx, %ecx
	je	LBB0_18
LBB0_6:
	testl	%ecx, %ecx
	jne	LBB0_8
## %bb.7:
	movq	%rbx, -56(%rbp)
	movl	%r15d, -48(%rbp)
LBB0_8:
	movups	-56(%rbp), %xmm0
	movups	%xmm0, _get_systime.ts_prev(%rip)
LBB0_9:
	movq	-56(%rbp), %rdi
	movl	-48(%rbp), %esi
	callq	_tspec_stamp_to_lfp
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_ntp_random
	cvtsi2sd	%eax, %xmm1
	addsd	%xmm1, %xmm1
	movq	_FRAC@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rax), %xmm0
	divsd	%xmm0, %xmm1
	movq	_sys_fuzz@GOTPCREL(%rip), %r12
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%r12), %xmm0
	mulsd	%xmm1, %xmm0
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_DTOLFP
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_L_ADD
	xorl	%eax, %eax
	callq	_USING_SIGIO
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	leaq	_get_systime.lfp_prev(%rip), %rdi
	callq	_L_ISZERO
	movq	_lamport_violated@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	cmpl	$0, (%r15)
	jne	LBB0_15
## %bb.12:
	cmpl	$0, (%r12)
	jle	LBB0_15
## %bb.13:
	movq	-40(%rbp), %rax
	movq	%rax, -64(%rbp)
	leaq	_get_systime.lfp_prev(%rip), %rsi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_L_SUB
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_L_SUBUF
	cmpq	$0, -64(%rbp)
	jns	LBB0_15
## %bb.14:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_L_NEG
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_lfptoa
	movslq	%eax, %rsi
	movl	$1, %edi
	callq	_DPRINTF
	movq	_get_systime.lfp_prev(%rip), %rax
	movq	%rax, -40(%rbp)
	leaq	-40(%rbp), %rdi
	movl	$1, %esi
	callq	_L_ADDUF
	movq	_sys_tsrounding@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_15:
	movq	-40(%rbp), %rax
	movq	%rax, _get_systime.lfp_prev(%rip)
	cmpl	$0, (%r15)
	je	LBB0_17
## %bb.16:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_17:
	xorl	%eax, %eax
	callq	_LEAVE_GET_SYSTIME_CRITSEC
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_LOG_ERR@GOTPCREL(%rip), %rcx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	cvtsi2sd	%edx, %xmm1
	mulsd	LCPI0_0(%rip), %xmm1
	movl	(%rcx), %edi
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_msyslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_systime.ts_last,16,3 ## @get_systime.ts_last
.zerofill __DATA,__bss,_get_systime.ts_prev,16,3 ## @get_systime.ts_prev
.zerofill __DATA,__bss,_get_systime.lfp_prev,8,3 ## @get_systime.lfp_prev
	.comm	_systime_init_done,4,2          ## @systime_init_done
	.comm	_lamport_violated,4,2           ## @lamport_violated
	.comm	_sys_lamport,4,2                ## @sys_lamport
	.comm	_sys_fuzz_nsec,4,2              ## @sys_fuzz_nsec
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_systime Lamport advance exceeds one second (%.9f)"

	.comm	_FRAC,4,2                       ## @FRAC
	.comm	_sys_fuzz,4,2                   ## @sys_fuzz
	.comm	_sys_tsrounding,4,2             ## @sys_tsrounding
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_systime                    ; -- Begin function get_systime
	.p2align	2
_get_systime:                           ; @get_systime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	add	x0, sp, #32
	bl	_get_ostime
Lloh0:
	adrp	x8, _systime_init_done@GOTPAGE
Lloh1:
	ldr	x8, [x8, _systime_init_done@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_DEBUG_REQUIRE
	bl	_ENTER_GET_SYSTIME_CRITSEC
	ldp	x0, x1, [sp, #32]
	mov	w2, #61568
	movk	w2, #762, lsl #16
	bl	_add_tspec_ns
Lloh3:
	adrp	x20, _get_systime.ts_last@PAGE
Lloh4:
	add	x20, x20, _get_systime.ts_last@PAGEOFF
	ldp	x2, x3, [x20]
	bl	_cmp_tspec
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _lamport_violated@GOTPAGE
Lloh6:
	ldr	x8, [x8, _lamport_violated@GOTPAGEOFF]
	mov	w9, #1
Lloh7:
	str	w9, [x8]
Lloh8:
	adrp	x8, _sys_lamport@GOTPAGE
Lloh9:
	ldr	x8, [x8, _sys_lamport@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_2:
	ldr	q0, [sp, #32]
	str	q0, [x20]
	bl	_USING_SIGIO
	cbnz	w0, LBB0_8
; %bb.3:
Lloh10:
	adrp	x8, _sys_fuzz_nsec@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sys_fuzz_nsec@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x22, _get_systime.ts_prev@PAGE
Lloh14:
	add	x22, x22, _get_systime.ts_prev@PAGEOFF
	ldp	x0, x1, [x22]
	bl	_add_tspec_ns
	mov	x20, x0
	mov	x21, x1
	ldp	x0, x1, [sp, #32]
	mov	x2, x20
	mov	x3, x21
	bl	_cmp_tspec
	tbz	x0, #63, LBB0_7
; %bb.4:
	ldp	x2, x3, [sp, #32]
	mov	x0, x20
	mov	x1, x21
	bl	_sub_tspec
Lloh15:
	adrp	x8, _lamport_violated@GOTPAGE
Lloh16:
	ldr	x8, [x8, _lamport_violated@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #1
	ccmp	w8, #0, #0, ge
	b.eq	LBB0_17
; %bb.5:
	cbnz	w8, LBB0_7
; %bb.6:
	stp	x20, x21, [sp, #32]
LBB0_7:
	ldr	q0, [sp, #32]
	str	q0, [x22]
LBB0_8:
	ldp	x0, x1, [sp, #32]
	bl	_tspec_stamp_to_lfp
	str	x0, [sp, #24]
	bl	_ntp_random
	scvtf	d0, w0
	fadd	d0, d0, d0
Lloh18:
	adrp	x8, _FRAC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FRAC@GOTPAGEOFF]
Lloh20:
	ldr	s1, [x8]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fdiv	d0, d0, d1
Lloh21:
	adrp	x22, _sys_fuzz@GOTPAGE
Lloh22:
	ldr	x22, [x22, _sys_fuzz@GOTPAGEOFF]
	ldr	s1, [x22]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fmul	d0, d0, d1
	add	x0, sp, #16
	bl	_DTOLFP
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_L_ADD
	bl	_USING_SIGIO
	cbnz	w0, LBB0_16
; %bb.9:
Lloh23:
	adrp	x0, _get_systime.lfp_prev@PAGE
Lloh24:
	add	x0, x0, _get_systime.lfp_prev@PAGEOFF
	bl	_L_ISZERO
Lloh25:
	adrp	x20, _lamport_violated@GOTPAGE
Lloh26:
	ldr	x20, [x20, _lamport_violated@GOTPAGEOFF]
	adrp	x21, _get_systime.lfp_prev@PAGE
	cbnz	w0, LBB0_14
; %bb.10:
	ldr	w8, [x20]
	cbnz	w8, LBB0_14
; %bb.11:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	ldr	x8, [sp, #24]
	str	x8, [sp, #8]
Lloh27:
	adrp	x1, _get_systime.lfp_prev@PAGE
Lloh28:
	add	x1, x1, _get_systime.lfp_prev@PAGEOFF
	add	x0, sp, #8
	bl	_L_SUB
	add	x0, sp, #8
	mov	w1, #1
	bl	_L_SUBUF
	ldr	x8, [sp, #8]
	tbz	x8, #63, LBB0_14
; %bb.13:
	add	x0, sp, #8
	bl	_L_NEG
	add	x0, sp, #8
	mov	w1, #9
	bl	_lfptoa
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	w0, #1
	bl	_DPRINTF
	ldr	x8, [x21, _get_systime.lfp_prev@PAGEOFF]
	str	x8, [sp, #24]
	add	x0, sp, #24
	mov	w1, #1
	bl	_L_ADDUF
Lloh29:
	adrp	x8, _sys_tsrounding@GOTPAGE
Lloh30:
	ldr	x8, [x8, _sys_tsrounding@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_14:
	ldr	x8, [sp, #24]
	str	x8, [x21, _get_systime.lfp_prev@PAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_16
; %bb.15:
Lloh31:
	adrp	x8, _FALSE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_16:
	bl	_LEAVE_GET_SYSTIME_CRITSEC
	ldr	x8, [sp, #24]
	str	x8, [x19]
	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
	add	sp, sp, #96
	ret
LBB0_17:
Lloh34:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
	scvtf	d0, x0
	scvtf	d1, w1
Lloh36:
	ldr	w0, [x8]
	mov	x8, #54933
	movk	x8, #59430, lsl #16
	movk	x8, #11787, lsl #32
	movk	x8, #15889, lsl #48
	fmov	d2, x8
	fmadd	d0, d1, d2, d0
	fcvtzs	x2, d0
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msyslog
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_systime.ts_last,16,3 ; @get_systime.ts_last
.zerofill __DATA,__bss,_get_systime.ts_prev,16,3 ; @get_systime.ts_prev
.zerofill __DATA,__bss,_get_systime.lfp_prev,8,3 ; @get_systime.lfp_prev
	.comm	_systime_init_done,4,2          ; @systime_init_done
	.comm	_lamport_violated,4,2           ; @lamport_violated
	.comm	_sys_lamport,4,2                ; @sys_lamport
	.comm	_sys_fuzz_nsec,4,2              ; @sys_fuzz_nsec
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_systime Lamport advance exceeds one second (%.9f)"

	.comm	_FRAC,4,2                       ; @FRAC
	.comm	_sys_fuzz,4,2                   ; @sys_fuzz
	.comm	_sys_tsrounding,4,2             ; @sys_tsrounding
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
