	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OS_getSystemUptime
_OS_getSystemUptime:                    ## @OS_getSystemUptime
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_kernel_boot@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jne	LBB0_5
## %bb.1:
	movq	_CTL_KERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_KERN_BOOTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	$16, -64(%rbp)
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nitems
	leaq	-56(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.4:
	movq	-48(%rbp), %rsi
	movslq	-56(%rbp), %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_HRDBG
	imull	$100, -48(%rbp), %eax
	movslq	-56(%rbp), %rcx
	imulq	$1759218605, %rcx, %rcx         ## imm = 0x68DB8BAD
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$44, %rcx
	addl	%edx, %ecx
	addl	%eax, %ecx
	movl	%ecx, (%r15)
LBB0_5:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	imull	$100, -48(%rbp), %eax
	movslq	-56(%rbp), %rcx
	imulq	$1759218605, %rcx, %rcx         ## imm = 0x68DB8BAD
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$44, %rcx
	addl	%edx, %ecx
	addl	%eax, %ecx
	subl	(%r15), %ecx
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, (%r14)
	movq	_SNMP_ERR_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_3:
	callq	_syslog
	movq	_SNMP_ERR_GENERR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_boot,4,2                ## @kernel_boot
	.comm	_CTL_KERN,4,2                   ## @CTL_KERN
	.comm	_KERN_BOOTTIME,4,2              ## @KERN_BOOTTIME
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sysctl KERN_BOOTTIME failed: %m"

	.comm	_SNMP_ERR_GENERR,4,2            ## @SNMP_ERR_GENERR
L_.str.1:                               ## @.str.1
	.asciz	"boot timestamp from kernel: {%lld, %ld}"

L_.str.2:                               ## @.str.2
	.asciz	"gettimeofday failed: %m"

	.comm	_UINT32_MAX,4,2                 ## @UINT32_MAX
	.comm	_SNMP_ERR_NOERROR,4,2           ## @SNMP_ERR_NOERROR
	.no_dead_strip	_OS_getSystemUptime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OS_getSystemUptime
_OS_getSystemUptime:                    ; @OS_getSystemUptime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x20, _kernel_boot@GOTPAGE
Lloh4:
	ldr	x20, [x20, _kernel_boot@GOTPAGEOFF]
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _CTL_KERN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CTL_KERN@GOTPAGEOFF]
Lloh7:
	adrp	x9, _KERN_BOOTTIME@GOTPAGE
Lloh8:
	ldr	x9, [x9, _KERN_BOOTTIME@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
	mov	w8, #16
	str	x8, [sp, #8]
	add	x0, sp, #32
	bl	_nitems
	mov	x1, x0
	add	x0, sp, #32
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.2:
	ldr	x1, [sp, #24]
	ldrsw	x2, [sp, #16]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_HRDBG
	mov	w8, #100
	ldr	w9, [sp, #24]
	ldrsw	x10, [sp, #16]
	mov	w11, #35757
	movk	w11, #26843, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #44
	add	w10, w10, w11
	madd	w8, w9, w8, w10
	str	w8, [x20]
LBB0_3:
	add	x0, sp, #16
	mov	x1, #0
	bl	_gettimeofday
	tbnz	x0, #63, LBB0_5
; %bb.4:
	mov	w8, #100
	ldr	w9, [sp, #24]
	ldrsw	x10, [sp, #16]
	mov	w11, #35757
	movk	w11, #26843, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #44
	add	w10, w10, w11
	madd	w8, w9, w8, w10
	ldr	w9, [x20]
Lloh13:
	adrp	x10, _UINT32_MAX@GOTPAGE
Lloh14:
	ldr	x10, [x10, _UINT32_MAX@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	sub	w8, w8, w9
	cmp	w8, w10
	csel	w8, w8, w10, lt
	str	w8, [x19]
Lloh16:
	adrp	x8, _SNMP_ERR_NOERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SNMP_ERR_NOERROR@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh18:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh23:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	bl	_syslog
Lloh28:
	adrp	x8, _SNMP_ERR_GENERR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SNMP_ERR_GENERR@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldur	x8, [x29, #-24]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_boot,4,2                ; @kernel_boot
	.comm	_CTL_KERN,4,2                   ; @CTL_KERN
	.comm	_KERN_BOOTTIME,4,2              ; @KERN_BOOTTIME
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sysctl KERN_BOOTTIME failed: %m"

	.comm	_SNMP_ERR_GENERR,4,2            ; @SNMP_ERR_GENERR
l_.str.1:                               ; @.str.1
	.asciz	"boot timestamp from kernel: {%lld, %ld}"

l_.str.2:                               ; @.str.2
	.asciz	"gettimeofday failed: %m"

	.comm	_UINT32_MAX,4,2                 ; @UINT32_MAX
	.comm	_SNMP_ERR_NOERROR,4,2           ; @SNMP_ERR_NOERROR
	.no_dead_strip	_OS_getSystemUptime
.subsections_via_symbols
