	.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_ostime
LCPI0_0:
	.quad	0x3e112e0be826d695              ## double 1.0000000000000001E-9
LCPI0_1:
	.quad	0x41cdcd6500000000              ## double 1.0E+9
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_get_ostime:                            ## @get_ostime
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rdi
	xorl	%esi, %esi
	callq	_GETTIMEOFDAY
	movl	-12(%rbp), %ecx
	movl	%ecx, 4(%rbx)
	imull	$1000, -16(%rbp), %ecx          ## imm = 0x3E8
	movl	%ecx, (%rbx)
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_trunc_os_clock@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	cvtsi2sd	%ecx, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	movq	_sys_tick@GOTPCREL(%rip), %rax
	cvtsi2sdl	(%rax), %xmm1
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rax
	movl	%eax, (%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_msyslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read system clock failed: %m (%d)"

	.comm	_errno,4,2                      ## @errno
	.comm	_trunc_os_clock,8,3             ## @trunc_os_clock
	.comm	_sys_tick,4,2                   ## @sys_tick
	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
	.comm	_TIMEOFDAY,4,2                  ## @TIMEOFDAY
	.no_dead_strip	_get_ostime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ostime
_get_ostime:                            ; @get_ostime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, sp, #8
	mov	x1, #0
	bl	_GETTIMEOFDAY
	ldp	w8, w9, [sp, #8]
	mov	w10, #1000
	mul	w8, w8, w10
	stp	w8, w9, [x19]
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _trunc_os_clock@GOTPAGE
Lloh1:
	ldr	x9, [x9, _trunc_os_clock@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cbz	x9, LBB0_3
; %bb.2:
	scvtf	d0, w8
	mov	x8, #54933
	movk	x8, #59430, lsl #16
	movk	x8, #11787, lsl #32
	movk	x8, #15889, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
Lloh3:
	adrp	x8, _sys_tick@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sys_tick@GOTPAGEOFF]
Lloh5:
	ldr	s1, [x8]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fdiv	d0, d0, d1
	fcvtzs	d0, d0
	scvtf	d0, d0
	mov	x8, #225833675390976
	movk	x8, #16845, lsl #48
	fmov	d2, x8
	fmul	d0, d0, d2
	fmul	d0, d0, d1
	fcvtzs	x8, d0
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh6:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msyslog
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read system clock failed: %m (%d)"

	.comm	_errno,4,2                      ; @errno
	.comm	_trunc_os_clock,8,3             ; @trunc_os_clock
	.comm	_sys_tick,4,2                   ; @sys_tick
	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
	.comm	_TIMEOFDAY,4,2                  ; @TIMEOFDAY
	.no_dead_strip	_get_ostime
.subsections_via_symbols
