	.file	"82951369.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"MYST_TARGET"
.LC1:
	.string	"sgx"
	.text
	.type	is_sgx_target, @function
is_sgx_target:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_sgx_target, .-is_sgx_target
	.section	.rodata
.LC2:
	.string	"the_stack_data/82951369.c"
	.align 8
.LC3:
	.string	"clock_gettime(CLOCK_REALTIME, &tp) == 0"
	.align 8
.LC4:
	.string	"Time spent on booting myst = %ld ms\n"
.LC5:
	.string	"diff > 0 && diff < tolerance"
	.align 8
.LC6:
	.string	"clock_gettime(CLOCK_MONOTONIC, &tp) == 0"
	.align 8
.LC7:
	.string	"monotonic clock: prev %ld, now %ld\n"
.LC8:
	.string	"timestamp > prev_timestamp"
	.align 8
.LC9:
	.string	"clock_gettime(CLOCK_MONOTONIC, &mono_tp) == 0"
	.align 8
.LC10:
	.string	"clock_gettime(CLOCK_BOOTTIME, &boot_tp) == 0"
	.align 8
.LC11:
	.string	"Diff between mono and boot = %ld ns (expected  %ld ns)\n"
	.align 8
.LC12:
	.string	"mono_boot_diff >= 0 && mono_boot_diff < mono_boot_tolerance"
	.align 8
.LC13:
	.string	"clock_gettime(CLOCK_REALTIME_COARSE, &tp) == 0"
	.align 8
.LC14:
	.string	"clock_gettime(CLOCK_MONOTONIC_COARSE, &tp) == 0"
	.align 8
.LC15:
	.string	"clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &tp) == 0"
	.align 8
.LC16:
	.string	"clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp) == 0"
	.align 8
.LC17:
	.string	"clock_gettime(CLOCK_REALTIME_ALARM, &tp) == -1"
	.align 8
.LC18:
	.string	"clock_gettime(CLOCK_TAI, &tp) == -1"
	.align 8
.LC19:
	.string	"clock_gettime(CLOCK_MONOTONIC_RAW, &tp) == -1"
	.align 8
.LC20:
	.string	"clock_gettime(CLOCK_BOOTTIME_ALARM, &tp) == -1"
	.text
	.type	test_clock_get_time, @function
test_clock_get_time:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	eax, 3000000000
	mov	QWORD PTR -120[rbp], rax
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	test	eax, eax
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 36
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L5:
	mov	rax, QWORD PTR -64[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	sub	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rcx, QWORD PTR -104[rbp]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -104[rbp], 0
	jle	.L6
	mov	rax, QWORD PTR -104[rbp]
	cmp	rax, QWORD PTR -120[rbp]
	jl	.L27
.L6:
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 40
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L27:
	mov	DWORD PTR -132[rbp], 1
	jmp	.L8
.L12:
	mov	edx, DWORD PTR -132[rbp]
	movsx	rax, edx
	imul	rax, rax, 1441151881
	shr	rax, 32
	sar	eax, 25
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100000000
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L9
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	test	eax, eax
	je	.L10
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 47
	lea	rsi, .LC2[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L10:
	mov	rax, QWORD PTR -64[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -112[rbp], rax
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -112[rbp]
	cmp	rax, QWORD PTR -128[rbp]
	jg	.L11
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 55
	lea	rsi, .LC2[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L11:
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -128[rbp], rax
.L9:
	add	DWORD PTR -132[rbp], 1
.L8:
	cmp	DWORD PTR -132[rbp], 999999999
	jle	.L12
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	test	eax, eax
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 63
	lea	rsi, .LC2[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L13:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 7
	call	clock_gettime@PLT
	test	eax, eax
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 64
	lea	rsi, .LC2[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L14:
	mov	rax, QWORD PTR -48[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	sub	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], 60000
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -80[rbp], 0
	js	.L15
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	jl	.L28
.L15:
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 73
	lea	rsi, .LC2[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L28:
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 5
	call	clock_gettime@PLT
	test	eax, eax
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 76
	lea	rsi, .LC2[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L17:
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 6
	call	clock_gettime@PLT
	test	eax, eax
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 77
	lea	rsi, .LC2[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L18:
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	clock_gettime@PLT
	test	eax, eax
	je	.L19
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 80
	lea	rsi, .LC2[rip]
	lea	rdi, .LC15[rip]
	call	__assert_fail@PLT
.L19:
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 3
	call	clock_gettime@PLT
	test	eax, eax
	je	.L20
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 81
	lea	rsi, .LC2[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L20:
	mov	eax, 0
	call	is_sgx_target
	test	eax, eax
	je	.L21
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 8
	call	clock_gettime@PLT
	cmp	eax, -1
	je	.L22
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 86
	lea	rsi, .LC2[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L22:
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 11
	call	clock_gettime@PLT
	cmp	eax, -1
	je	.L23
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 87
	lea	rsi, .LC2[rip]
	lea	rdi, .LC18[rip]
	call	__assert_fail@PLT
.L23:
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	cmp	eax, -1
	je	.L24
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 88
	lea	rsi, .LC2[rip]
	lea	rdi, .LC19[rip]
	call	__assert_fail@PLT
.L24:
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 9
	call	clock_gettime@PLT
	cmp	eax, -1
	je	.L21
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 89
	lea	rsi, .LC2[rip]
	lea	rdi, .LC20[rip]
	call	__assert_fail@PLT
.L21:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test_clock_get_time, .-test_clock_get_time
	.section	.rodata
	.align 8
.LC21:
	.string	"clock_gettime(CLOCK_REALTIME, &tp0) == 0"
	.align 8
.LC22:
	.string	"clock_settime(CLOCK_REALTIME, &update_tp) == 0"
	.align 8
.LC23:
	.string	"clock_gettime(CLOCK_REALTIME, &tp1) == 0"
.LC24:
	.string	"timestamp1 > timestamp0"
	.align 8
.LC25:
	.string	"clock_gettime(CLOCK_REALTIME, &tp2) == 0"
	.align 8
.LC26:
	.string	"Diff between tp1 and tp2  = %ld ms (expected %ld ms)\n"
	.align 8
.LC27:
	.string	"diff > 0 && diff < tolerance + adjust * NANO_IN_SECOND"
	.align 8
.LC28:
	.string	"clock_settime(CLOCK_REALTIME_ALARM, &update_tp) == -1"
	.align 8
.LC29:
	.string	"clock_settime(CLOCK_REALTIME_COARSE, &update_tp) == -1"
	.align 8
.LC30:
	.string	"clock_settime(CLOCK_TAI, &update_tp) == -1"
	.align 8
.LC31:
	.string	"clock_settime(CLOCK_MONOTONIC_COARSE, &update_tp) == -1"
	.align 8
.LC32:
	.string	"clock_settime(CLOCK_MONOTONIC, &update_tp) == -1"
	.align 8
.LC33:
	.string	"clock_settime(CLOCK_MONOTONIC_RAW, &update_tp) == -1"
	.align 8
.LC34:
	.string	"clock_settime(CLOCK_BOOTTIME, &update_tp) == -1"
	.align 8
.LC35:
	.string	"clock_settime(CLOCK_BOOTTIME_ALARM, &update_tp) == -1"
	.align 8
.LC36:
	.string	"clock_settime(CLOCK_PROCESS_CPUTIME_ID, &update_tp) == -1"
	.align 8
.LC37:
	.string	"clock_settime(CLOCK_THREAD_CPUTIME_ID, &update_tp) == -1"
	.text
	.type	test_clock_set_time, @function
test_clock_set_time:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -128[rbp], 100000000
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 10
	lea	rax, -80[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	test	eax, eax
	je	.L30
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 103
	lea	rsi, .LC2[rip]
	lea	rdi, .LC21[rip]
	call	__assert_fail@PLT
.L30:
	mov	rax, QWORD PTR -80[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_settime@PLT
	test	eax, eax
	je	.L31
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 108
	lea	rsi, .LC2[rip]
	lea	rdi, .LC22[rip]
	call	__assert_fail@PLT
.L31:
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	test	eax, eax
	je	.L32
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 112
	lea	rsi, .LC2[rip]
	lea	rdi, .LC23[rip]
	call	__assert_fail@PLT
.L32:
	mov	rax, QWORD PTR -64[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	cmp	rax, QWORD PTR -120[rbp]
	jg	.L33
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 115
	lea	rsi, .LC2[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L33:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_settime@PLT
	test	eax, eax
	je	.L34
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 119
	lea	rsi, .LC2[rip]
	lea	rdi, .LC22[rip]
	call	__assert_fail@PLT
.L34:
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	test	eax, eax
	je	.L35
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 122
	lea	rsi, .LC2[rip]
	lea	rdi, .LC25[rip]
	call	__assert_fail@PLT
.L35:
	mov	rax, QWORD PTR -48[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	sub	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	imul	rsi, rax, 1000
	mov	rcx, QWORD PTR -88[rbp]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	rdx, rsi
	mov	rsi, rax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -88[rbp], 0
	jle	.L36
	mov	rax, QWORD PTR -96[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	cmp	QWORD PTR -88[rbp], rax
	jl	.L50
.L36:
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 129
	lea	rsi, .LC2[rip]
	lea	rdi, .LC27[rip]
	call	__assert_fail@PLT
.L50:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 8
	call	clock_settime@PLT
	cmp	eax, -1
	je	.L38
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 132
	lea	rsi, .LC2[rip]
	lea	rdi, .LC28[rip]
	call	__assert_fail@PLT
.L38:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 5
	call	clock_settime@PLT
	cmp	eax, -1
	je	.L39
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 133
	lea	rsi, .LC2[rip]
	lea	rdi, .LC29[rip]
	call	__assert_fail@PLT
.L39:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 11
	call	clock_settime@PLT
	cmp	eax, -1
	je	.L40
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 134
	lea	rsi, .LC2[rip]
	lea	rdi, .LC30[rip]
	call	__assert_fail@PLT
.L40:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 6
	call	clock_settime@PLT
	cmp	eax, -1
	je	.L41
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 135
	lea	rsi, .LC2[rip]
	lea	rdi, .LC31[rip]
	call	__assert_fail@PLT
.L41:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_settime@PLT
	cmp	eax, -1
	je	.L42
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 136
	lea	rsi, .LC2[rip]
	lea	rdi, .LC32[rip]
	call	__assert_fail@PLT
.L42:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 4
	call	clock_settime@PLT
	cmp	eax, -1
	je	.L43
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 137
	lea	rsi, .LC2[rip]
	lea	rdi, .LC33[rip]
	call	__assert_fail@PLT
.L43:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 7
	call	clock_settime@PLT
	cmp	eax, -1
	je	.L44
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 138
	lea	rsi, .LC2[rip]
	lea	rdi, .LC34[rip]
	call	__assert_fail@PLT
.L44:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 9
	call	clock_settime@PLT
	cmp	eax, -1
	je	.L45
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 139
	lea	rsi, .LC2[rip]
	lea	rdi, .LC35[rip]
	call	__assert_fail@PLT
.L45:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	clock_settime@PLT
	cmp	eax, -1
	je	.L46
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 140
	lea	rsi, .LC2[rip]
	lea	rdi, .LC36[rip]
	call	__assert_fail@PLT
.L46:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 3
	call	clock_settime@PLT
	cmp	eax, -1
	je	.L47
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 141
	lea	rsi, .LC2[rip]
	lea	rdi, .LC37[rip]
	call	__assert_fail@PLT
.L47:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	test_clock_set_time, .-test_clock_set_time
	.section	.rodata
.LC38:
	.string	"gettimeofday(&tv, NULL) == 0"
.LC39:
	.string	"t > 0"
	.align 8
.LC40:
	.string	"t >= tp.tv_sec && t - tp.tv_sec <= tolerance"
	.align 8
.LC41:
	.string	"t >= tv.tv_sec && t - tv.tv_sec <= tolerance"
	.text
	.type	test_diff_precisions, @function
test_diff_precisions:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 1
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	test	eax, eax
	je	.L52
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 153
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L52:
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	test	eax, eax
	je	.L53
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 154
	lea	rsi, .LC2[rip]
	lea	rdi, .LC38[rip]
	call	__assert_fail@PLT
.L53:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jg	.L54
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 156
	lea	rsi, .LC2[rip]
	lea	rdi, .LC39[rip]
	call	__assert_fail@PLT
.L54:
	mov	rax, QWORD PTR -48[rbp]
	cmp	QWORD PTR -64[rbp], rax
	jl	.L55
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, rdx
	cmp	QWORD PTR -56[rbp], rax
	jge	.L61
.L55:
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 158
	lea	rsi, .LC2[rip]
	lea	rdi, .LC40[rip]
	call	__assert_fail@PLT
.L61:
	mov	rax, QWORD PTR -32[rbp]
	cmp	QWORD PTR -64[rbp], rax
	jl	.L57
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, rdx
	cmp	QWORD PTR -56[rbp], rax
	jge	.L62
.L57:
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 159
	lea	rsi, .LC2[rip]
	lea	rdi, .LC41[rip]
	call	__assert_fail@PLT
.L62:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	test_diff_precisions, .-test_diff_precisions
	.section	.rodata
.LC42:
	.string	"!ret && res.tv_nsec"
.LC43:
	.string	"!ret && res1.tv_nsec"
	.text
	.type	test_clock_getres, @function
test_clock_getres:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_getres@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jne	.L64
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	jne	.L70
.L64:
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 169
	lea	rsi, .LC2[rip]
	lea	rdi, .LC42[rip]
	call	__assert_fail@PLT
.L70:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_getres@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jne	.L66
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	jne	.L71
.L66:
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 172
	lea	rsi, .LC2[rip]
	lea	rdi, .LC43[rip]
	call	__assert_fail@PLT
.L71:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L69
	call	__stack_chk_fail@PLT
.L69:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	test_clock_getres, .-test_clock_getres
	.section	.rodata
.LC44:
	.string	"argc == 3"
	.align 8
.LC45:
	.string	"test_clock_get_time(now_from_cmdline) == 0"
.LC46:
	.string	"test_clock_set_time() == 0"
.LC47:
	.string	"test_diff_precisions() == 0"
.LC48:
	.string	"test_clock_getres() == 0"
.LC49:
	.string	"=== passed test (%s)\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 3
	je	.L73
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 178
	lea	rsi, .LC2[rip]
	lea	rdi, .LC44[rip]
	call	__assert_fail@PLT
.L73:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	imul	rbx, rax, 1000000000
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	add	rax, rbx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	test_clock_get_time
	test	eax, eax
	je	.L74
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 182
	lea	rsi, .LC2[rip]
	lea	rdi, .LC45[rip]
	call	__assert_fail@PLT
.L74:
	mov	eax, 0
	call	is_sgx_target
	test	eax, eax
	je	.L75
	mov	eax, 0
	call	test_clock_set_time
	test	eax, eax
	je	.L75
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 186
	lea	rsi, .LC2[rip]
	lea	rdi, .LC46[rip]
	call	__assert_fail@PLT
.L75:
	mov	eax, 0
	call	test_diff_precisions
	test	eax, eax
	je	.L76
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 189
	lea	rsi, .LC2[rip]
	lea	rdi, .LC47[rip]
	call	__assert_fail@PLT
.L76:
	mov	eax, 0
	call	test_clock_getres
	test	eax, eax
	je	.L77
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 191
	lea	rsi, .LC2[rip]
	lea	rdi, .LC48[rip]
	call	__assert_fail@PLT
.L77:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 20
__PRETTY_FUNCTION__.4:
	.string	"test_clock_get_time"
	.align 16
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 20
__PRETTY_FUNCTION__.3:
	.string	"test_clock_set_time"
	.align 16
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 21
__PRETTY_FUNCTION__.2:
	.string	"test_diff_precisions"
	.align 16
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 18
__PRETTY_FUNCTION__.1:
	.string	"test_clock_getres"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"82951369.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"MYST_TARGET\000"
	.align	2
.LC1:
	.ascii	"sgx\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_sgx_target, %function
is_sgx_target:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L4
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r1, [fp, #-8]
	ldr	r0, .L4+4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.size	is_sgx_target, .-is_sgx_target
	.section	.rodata
	.align	2
.LC2:
	.ascii	"the_stack_data/82951369.c\000"
	.align	2
.LC3:
	.ascii	"clock_gettime(CLOCK_REALTIME, &tp) == 0\000"
	.align	2
.LC4:
	.ascii	"Time spent on booting myst = %ld ms\012\000"
	.align	2
.LC5:
	.ascii	"diff > 0 && diff < tolerance\000"
	.align	2
.LC6:
	.ascii	"clock_gettime(CLOCK_MONOTONIC, &tp) == 0\000"
	.align	2
.LC7:
	.ascii	"monotonic clock: prev %ld, now %ld\012\000"
	.align	2
.LC8:
	.ascii	"timestamp > prev_timestamp\000"
	.align	2
.LC9:
	.ascii	"clock_gettime(CLOCK_MONOTONIC, &mono_tp) == 0\000"
	.align	2
.LC10:
	.ascii	"clock_gettime(CLOCK_BOOTTIME, &boot_tp) == 0\000"
	.align	2
.LC11:
	.ascii	"Diff between mono and boot = %ld ns (expected  %ld "
	.ascii	"ns)\012\000"
	.align	2
.LC12:
	.ascii	"mono_boot_diff >= 0 && mono_boot_diff < mono_boot_t"
	.ascii	"olerance\000"
	.align	2
.LC13:
	.ascii	"clock_gettime(CLOCK_REALTIME_COARSE, &tp) == 0\000"
	.align	2
.LC14:
	.ascii	"clock_gettime(CLOCK_MONOTONIC_COARSE, &tp) == 0\000"
	.align	2
.LC15:
	.ascii	"clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &tp) == 0\000"
	.align	2
.LC16:
	.ascii	"clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp) == 0\000"
	.align	2
.LC17:
	.ascii	"clock_gettime(CLOCK_REALTIME_ALARM, &tp) == -1\000"
	.align	2
.LC18:
	.ascii	"clock_gettime(CLOCK_TAI, &tp) == -1\000"
	.align	2
.LC19:
	.ascii	"clock_gettime(CLOCK_MONOTONIC_RAW, &tp) == -1\000"
	.align	2
.LC20:
	.ascii	"clock_gettime(CLOCK_BOOTTIME_ALARM, &tp) == -1\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_clock_get_time, %function
test_clock_get_time:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #32
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	ldr	r3, .L31+4
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-68]
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L31+8
	mov	r2, #36
	ldr	r1, .L31+12
	ldr	r0, .L31+16
	bl	__assert_fail
.L7:
	ldr	r3, [fp, #-32]
	ldr	r2, .L31+20
	mul	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-72]
	sub	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	ldr	r2, .L31+24
	smull	r1, r2, r3, r2
	asr	r2, r2, #18
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L31+28
	bl	printf
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	ble	.L8
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L29
.L8:
	ldr	r3, .L31+8
	mov	r2, #40
	ldr	r1, .L31+12
	ldr	r0, .L31+32
	bl	__assert_fail
.L29:
	mov	r3, #1
	str	r3, [fp, #-64]
	b	.L10
.L14:
	ldr	r2, [fp, #-64]
	ldr	r3, .L31+36
	smull	r1, r3, r2, r3
	asr	r1, r3, #25
	asr	r3, r2, #31
	sub	r3, r1, r3
	ldr	r1, .L31+40
	mul	r3, r1, r3
	sub	r3, r2, r3
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L31+8
	mov	r2, #47
	ldr	r1, .L31+12
	ldr	r0, .L31+44
	bl	__assert_fail
.L12:
	ldr	r3, [fp, #-32]
	ldr	r2, .L31+20
	mul	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-68]
	ldr	r0, .L31+48
	bl	printf
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bgt	.L13
	ldr	r3, .L31+8
	mov	r2, #55
	ldr	r1, .L31+12
	ldr	r0, .L31+52
	bl	__assert_fail
.L13:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-68]
.L11:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L10:
	ldr	r3, [fp, #-64]
	ldr	r2, .L31+56
	cmp	r3, r2
	ble	.L14
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L31+8
	mov	r2, #63
	ldr	r1, .L31+12
	ldr	r0, .L31+60
	bl	__assert_fail
.L15:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #7
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L31+8
	mov	r2, #64
	ldr	r1, .L31+12
	ldr	r0, .L31+64
	bl	__assert_fail
.L16:
	ldr	r3, [fp, #-24]
	ldr	r2, .L31+20
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-16]
	ldr	r2, .L31+20
	mul	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, .L31+68
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, .L31+72
	bl	printf
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	blt	.L17
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L30
.L17:
	ldr	r3, .L31+8
	mov	r2, #73
	ldr	r1, .L31+12
	ldr	r0, .L31+76
	bl	__assert_fail
.L30:
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #5
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L31+8
	mov	r2, #76
	ldr	r1, .L31+12
	ldr	r0, .L31+80
	bl	__assert_fail
.L19:
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #6
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L31+8
	mov	r2, #77
	ldr	r1, .L31+12
	ldr	r0, .L31+84
	bl	__assert_fail
.L20:
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #2
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L31+8
	mov	r2, #80
	ldr	r1, .L31+12
	ldr	r0, .L31+88
	bl	__assert_fail
.L21:
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #3
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L31+8
	mov	r2, #81
	ldr	r1, .L31+12
	ldr	r0, .L31+92
	bl	__assert_fail
.L22:
	bl	is_sgx_target
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #8
	bl	clock_gettime
	mov	r3, r0
	cmn	r3, #1
	beq	.L24
	ldr	r3, .L31+8
	mov	r2, #86
	ldr	r1, .L31+12
	ldr	r0, .L31+96
	bl	__assert_fail
.L24:
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #11
	bl	clock_gettime
	mov	r3, r0
	cmn	r3, #1
	beq	.L25
	ldr	r3, .L31+8
	mov	r2, #87
	ldr	r1, .L31+12
	ldr	r0, .L31+100
	bl	__assert_fail
.L25:
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	mov	r3, r0
	cmn	r3, #1
	beq	.L26
	ldr	r3, .L31+8
	mov	r2, #88
	ldr	r1, .L31+12
	ldr	r0, .L31+104
	bl	__assert_fail
.L26:
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #9
	bl	clock_gettime
	mov	r3, r0
	cmn	r3, #1
	beq	.L23
	ldr	r3, .L31+8
	mov	r2, #89
	ldr	r1, .L31+12
	ldr	r0, .L31+108
	bl	__assert_fail
.L23:
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC21
	.word	-1294967296
	.word	__PRETTY_FUNCTION__.5464
	.word	.LC2
	.word	.LC3
	.word	1000000000
	.word	1125899907
	.word	.LC4
	.word	.LC5
	.word	1441151881
	.word	100000000
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	999999999
	.word	.LC9
	.word	.LC10
	.word	60000
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	test_clock_get_time, .-test_clock_get_time
	.section	.rodata
	.align	2
.LC22:
	.ascii	"clock_gettime(CLOCK_REALTIME, &tp0) == 0\000"
	.align	2
.LC23:
	.ascii	"clock_settime(CLOCK_REALTIME, &update_tp) == 0\000"
	.align	2
.LC24:
	.ascii	"clock_gettime(CLOCK_REALTIME, &tp1) == 0\000"
	.align	2
.LC25:
	.ascii	"timestamp1 > timestamp0\000"
	.align	2
.LC26:
	.ascii	"clock_gettime(CLOCK_REALTIME, &tp2) == 0\000"
	.align	2
.LC27:
	.ascii	"Diff between tp1 and tp2  = %ld ms (expected %ld ms"
	.ascii	")\012\000"
	.align	2
.LC28:
	.ascii	"diff > 0 && diff < tolerance + adjust * NANO_IN_SEC"
	.ascii	"OND\000"
	.align	2
.LC29:
	.ascii	"clock_settime(CLOCK_REALTIME_ALARM, &update_tp) == "
	.ascii	"-1\000"
	.align	2
.LC30:
	.ascii	"clock_settime(CLOCK_REALTIME_COARSE, &update_tp) =="
	.ascii	" -1\000"
	.align	2
.LC31:
	.ascii	"clock_settime(CLOCK_TAI, &update_tp) == -1\000"
	.align	2
.LC32:
	.ascii	"clock_settime(CLOCK_MONOTONIC_COARSE, &update_tp) ="
	.ascii	"= -1\000"
	.align	2
.LC33:
	.ascii	"clock_settime(CLOCK_MONOTONIC, &update_tp) == -1\000"
	.align	2
.LC34:
	.ascii	"clock_settime(CLOCK_MONOTONIC_RAW, &update_tp) == -"
	.ascii	"1\000"
	.align	2
.LC35:
	.ascii	"clock_settime(CLOCK_BOOTTIME, &update_tp) == -1\000"
	.align	2
.LC36:
	.ascii	"clock_settime(CLOCK_BOOTTIME_ALARM, &update_tp) == "
	.ascii	"-1\000"
	.align	2
.LC37:
	.ascii	"clock_settime(CLOCK_PROCESS_CPUTIME_ID, &update_tp)"
	.ascii	" == -1\000"
	.align	2
.LC38:
	.ascii	"clock_settime(CLOCK_THREAD_CPUTIME_ID, &update_tp) "
	.ascii	"== -1\000"
	.align	2
.LC39:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_clock_set_time, %function
test_clock_set_time:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #32
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	ldr	r3, .L55+4
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #10
	str	r3, [fp, #-48]
	sub	r3, fp, #40
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	ldr	r3, .L55+8
	mov	r2, #103
	ldr	r1, .L55+12
	ldr	r0, .L55+16
	bl	__assert_fail
.L34:
	ldr	r3, [fp, #-40]
	ldr	r2, .L55+20
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-60]
	sub	r3, fp, #16
	sub	r2, fp, #40
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #0
	bl	clock_settime
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r3, .L55+8
	mov	r2, #108
	ldr	r1, .L55+12
	ldr	r0, .L55+24
	bl	__assert_fail
.L35:
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r3, .L55+8
	mov	r2, #112
	ldr	r1, .L55+12
	ldr	r0, .L55+28
	bl	__assert_fail
.L36:
	ldr	r3, [fp, #-32]
	ldr	r2, .L55+20
	mul	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bgt	.L37
	ldr	r3, .L55+8
	mov	r2, #115
	ldr	r1, .L55+12
	ldr	r0, .L55+32
	bl	__assert_fail
.L37:
	sub	r3, fp, #16
	sub	r2, fp, #32
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #0
	bl	clock_settime
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L55+8
	mov	r2, #119
	ldr	r1, .L55+12
	ldr	r0, .L55+24
	bl	__assert_fail
.L38:
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r3, .L55+8
	mov	r2, #122
	ldr	r1, .L55+12
	ldr	r0, .L55+36
	bl	__assert_fail
.L39:
	ldr	r3, [fp, #-24]
	ldr	r2, .L55+20
	mul	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-56]
	sub	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldr	r2, .L55+40
	smull	r1, r2, r3, r2
	asr	r2, r2, #18
	asr	r3, r3, #31
	sub	r1, r2, r3
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r0, .L55+44
	bl	printf
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	ble	.L40
	ldr	r3, [fp, #-48]
	ldr	r2, .L55+20
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L54
.L40:
	ldr	r3, .L55+8
	mov	r2, #129
	ldr	r1, .L55+12
	ldr	r0, .L55+48
	bl	__assert_fail
.L54:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #8
	bl	clock_settime
	mov	r3, r0
	cmn	r3, #1
	beq	.L42
	ldr	r3, .L55+8
	mov	r2, #132
	ldr	r1, .L55+12
	ldr	r0, .L55+52
	bl	__assert_fail
.L42:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #5
	bl	clock_settime
	mov	r3, r0
	cmn	r3, #1
	beq	.L43
	ldr	r3, .L55+8
	mov	r2, #133
	ldr	r1, .L55+12
	ldr	r0, .L55+56
	bl	__assert_fail
.L43:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #11
	bl	clock_settime
	mov	r3, r0
	cmn	r3, #1
	beq	.L44
	ldr	r3, .L55+8
	mov	r2, #134
	ldr	r1, .L55+12
	ldr	r0, .L55+60
	bl	__assert_fail
.L44:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #6
	bl	clock_settime
	mov	r3, r0
	cmn	r3, #1
	beq	.L45
	ldr	r3, .L55+8
	mov	r2, #135
	ldr	r1, .L55+12
	ldr	r0, .L55+64
	bl	__assert_fail
.L45:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #1
	bl	clock_settime
	mov	r3, r0
	cmn	r3, #1
	beq	.L46
	ldr	r3, .L55+8
	mov	r2, #136
	ldr	r1, .L55+12
	ldr	r0, .L55+68
	bl	__assert_fail
.L46:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #4
	bl	clock_settime
	mov	r3, r0
	cmn	r3, #1
	beq	.L47
	ldr	r3, .L55+8
	mov	r2, #137
	ldr	r1, .L55+12
	ldr	r0, .L55+72
	bl	__assert_fail
.L47:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #7
	bl	clock_settime
	mov	r3, r0
	cmn	r3, #1
	beq	.L48
	ldr	r3, .L55+8
	mov	r2, #138
	ldr	r1, .L55+12
	ldr	r0, .L55+76
	bl	__assert_fail
.L48:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #9
	bl	clock_settime
	mov	r3, r0
	cmn	r3, #1
	beq	.L49
	ldr	r3, .L55+8
	mov	r2, #139
	ldr	r1, .L55+12
	ldr	r0, .L55+80
	bl	__assert_fail
.L49:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #2
	bl	clock_settime
	mov	r3, r0
	cmn	r3, #1
	beq	.L50
	ldr	r3, .L55+8
	mov	r2, #140
	ldr	r1, .L55+12
	ldr	r0, .L55+84
	bl	__assert_fail
.L50:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #3
	bl	clock_settime
	mov	r3, r0
	cmn	r3, #1
	beq	.L51
	ldr	r3, .L55+8
	mov	r2, #141
	ldr	r1, .L55+12
	ldr	r0, .L55+88
	bl	__assert_fail
.L51:
	mov	r3, #0
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC39
	.word	100000000
	.word	__PRETTY_FUNCTION__.5487
	.word	.LC2
	.word	.LC22
	.word	1000000000
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	1125899907
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.size	test_clock_set_time, .-test_clock_set_time
	.section	.rodata
	.align	2
.LC40:
	.ascii	"gettimeofday(&tv, NULL) == 0\000"
	.align	2
.LC41:
	.ascii	"t > 0\000"
	.align	2
.LC42:
	.ascii	"t >= tp.tv_sec && t - tp.tv_sec <= tolerance\000"
	.align	2
.LC43:
	.ascii	"t >= tv.tv_sec && t - tv.tv_sec <= tolerance\000"
	.align	2
.LC44:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_diff_precisions, %function
test_diff_precisions:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-28]
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L58
	ldr	r3, .L69+4
	mov	r2, #153
	ldr	r1, .L69+8
	ldr	r0, .L69+12
	bl	__assert_fail
.L58:
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	ldr	r3, .L69+4
	mov	r2, #154
	ldr	r1, .L69+8
	ldr	r0, .L69+16
	bl	__assert_fail
.L59:
	mov	r0, #0
	bl	time
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L60
	ldr	r3, .L69+4
	mov	r2, #156
	ldr	r1, .L69+8
	ldr	r0, .L69+20
	bl	__assert_fail
.L60:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L61
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bge	.L67
.L61:
	ldr	r3, .L69+4
	mov	r2, #158
	ldr	r1, .L69+8
	ldr	r0, .L69+24
	bl	__assert_fail
.L67:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L63
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bge	.L68
.L63:
	ldr	r3, .L69+4
	mov	r2, #159
	ldr	r1, .L69+8
	ldr	r0, .L69+28
	bl	__assert_fail
.L68:
	mov	r3, #0
	ldr	r2, .L69
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L66
	bl	__stack_chk_fail
.L66:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC44
	.word	__PRETTY_FUNCTION__.5495
	.word	.LC2
	.word	.LC3
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.size	test_diff_precisions, .-test_diff_precisions
	.section	.rodata
	.align	2
.LC45:
	.ascii	"!ret && res.tv_nsec\000"
	.align	2
.LC46:
	.ascii	"!ret && res1.tv_nsec\000"
	.align	2
.LC47:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_clock_getres, %function
test_clock_getres:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L80
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #0
	bl	clock_getres
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L72
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L78
.L72:
	ldr	r3, .L80+4
	mov	r2, #169
	ldr	r1, .L80+8
	ldr	r0, .L80+12
	bl	__assert_fail
.L78:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #0
	bl	clock_getres
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L74
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L79
.L74:
	ldr	r3, .L80+4
	mov	r2, #172
	ldr	r1, .L80+8
	ldr	r0, .L80+16
	bl	__assert_fail
.L79:
	mov	r3, #0
	ldr	r2, .L80
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L77
	bl	__stack_chk_fail
.L77:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L81:
	.align	2
.L80:
	.word	.LC47
	.word	__PRETTY_FUNCTION__.5501
	.word	.LC2
	.word	.LC45
	.word	.LC46
	.size	test_clock_getres, .-test_clock_getres
	.section	.rodata
	.align	2
.LC48:
	.ascii	"argc == 3\000"
	.align	2
.LC49:
	.ascii	"test_clock_get_time(now_from_cmdline) == 0\000"
	.align	2
.LC50:
	.ascii	"test_clock_set_time() == 0\000"
	.align	2
.LC51:
	.ascii	"test_diff_precisions() == 0\000"
	.align	2
.LC52:
	.ascii	"test_clock_getres() == 0\000"
	.align	2
.LC53:
	.ascii	"=== passed test (%s)\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	beq	.L83
	ldr	r3, .L89
	mov	r2, #178
	ldr	r1, .L89+4
	ldr	r0, .L89+8
	bl	__assert_fail
.L83:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	ldr	r2, .L89+12
	mul	r4, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	add	r3, r4, r3
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	test_clock_get_time
	mov	r3, r0
	cmp	r3, #0
	beq	.L84
	ldr	r3, .L89
	mov	r2, #182
	ldr	r1, .L89+4
	ldr	r0, .L89+16
	bl	__assert_fail
.L84:
	bl	is_sgx_target
	mov	r3, r0
	cmp	r3, #0
	beq	.L85
	bl	test_clock_set_time
	mov	r3, r0
	cmp	r3, #0
	beq	.L85
	ldr	r3, .L89
	mov	r2, #186
	ldr	r1, .L89+4
	ldr	r0, .L89+20
	bl	__assert_fail
.L85:
	bl	test_diff_precisions
	mov	r3, r0
	cmp	r3, #0
	beq	.L86
	ldr	r3, .L89
	mov	r2, #189
	ldr	r1, .L89+4
	ldr	r0, .L89+24
	bl	__assert_fail
.L86:
	bl	test_clock_getres
	mov	r3, r0
	cmp	r3, #0
	beq	.L87
	ldr	r3, .L89
	mov	r2, #191
	ldr	r1, .L89+4
	ldr	r0, .L89+28
	bl	__assert_fail
.L87:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L89+32
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L90:
	.align	2
.L89:
	.word	__PRETTY_FUNCTION__.5506
	.word	.LC2
	.word	.LC48
	.word	1000000000
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5464, %object
	.size	__PRETTY_FUNCTION__.5464, 20
__PRETTY_FUNCTION__.5464:
	.ascii	"test_clock_get_time\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5487, %object
	.size	__PRETTY_FUNCTION__.5487, 20
__PRETTY_FUNCTION__.5487:
	.ascii	"test_clock_set_time\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5495, %object
	.size	__PRETTY_FUNCTION__.5495, 21
__PRETTY_FUNCTION__.5495:
	.ascii	"test_diff_precisions\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5501, %object
	.size	__PRETTY_FUNCTION__.5501, 18
__PRETTY_FUNCTION__.5501:
	.ascii	"test_clock_getres\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5506, %object
	.size	__PRETTY_FUNCTION__.5506, 5
__PRETTY_FUNCTION__.5506:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
