	.file	"extr_test_vdso.c_test_one_clock_gettime.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[RUN]\tTesting clock_gettime for clock %s (%d)...\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"[OK]\tNo such clock."
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"[FAIL]\tNo such clock, but __vdso_clock_gettime returned %d\n"
	.align 8
.LC3:
	.string	"[WARN]\t clock_gettime(%d) syscall returned error %d\n"
	.align 8
.LC4:
	.string	"[FAIL]\tvDSO returned %d, syscall errno=%d\n"
	.align 8
.LC5:
	.string	"\t%llu.%09ld %llu.%09ld %llu.%09ld\n"
	.align 8
.LC6:
	.string	"[FAIL]\tTimes are out of sequence"
	.text
	.p2align 4
	.type	test_one_clock_gettime, @function
test_one_clock_gettime:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edx, edi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	lea	rdi, .LC0[rip]
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	call	printf@PLT
	mov	rsi, r13
	mov	edi, ebp
	call	sys_clock_gettime@PLT
	test	eax, eax
	js	.L15
	lea	r14, 16[rsp]
	mov	edi, ebp
	lea	r15, 32[rsp]
	mov	rsi, r14
	call	vdso_clock_gettime@PLT
	mov	rsi, r15
	mov	edi, ebp
	mov	r12d, eax
	call	sys_clock_gettime@PLT
	or	eax, r12d
	jne	.L16
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	lea	rdi, .LC5[rip]
	mov	eax, DWORD PTR 40[rsp]
	push	rax
	.cfi_def_cfa_offset 128
	mov	r9, QWORD PTR 56[rsp]
	xor	eax, eax
	mov	r8d, DWORD PTR 32[rsp]
	mov	rcx, QWORD PTR 40[rsp]
	mov	edx, DWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	call	printf@PLT
	mov	rsi, r14
	mov	rdi, r13
	call	ts_leq@PLT
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	test	eax, eax
	jne	.L7
.L8:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	add	DWORD PTR nerrs[rip], 1
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edx, DWORD PTR errno[rip]
	cmp	edx, DWORD PTR EINVAL[rip]
	je	.L18
	mov	esi, ebp
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edx, DWORD PTR errno[rip]
	mov	esi, r12d
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	printf@PLT
	add	DWORD PTR nerrs[rip], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, r15
	mov	rdi, r14
	call	ts_leq@PLT
	test	eax, eax
	je	.L8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, 16[rsp]
	mov	edi, ebp
	call	vdso_clock_gettime@PLT
	mov	esi, eax
	add	eax, DWORD PTR EINVAL[rip]
	je	.L19
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printf@PLT
	add	DWORD PTR nerrs[rip], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_one_clock_gettime, .-test_one_clock_gettime
	.comm	nerrs,4,4
	.comm	errno,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_test_vdso.c_test_one_clock_gettime.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[RUN]\011Testing clock_gettime for clock %s (%d)..."
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"[OK]\011No such clock.\000"
	.align	2
.LC2:
	.ascii	"[FAIL]\011No such clock, but __vdso_clock_gettime r"
	.ascii	"eturned %d\012\000"
	.align	2
.LC3:
	.ascii	"[WARN]\011 clock_gettime(%d) syscall returned error"
	.ascii	" %d\012\000"
	.align	2
.LC4:
	.ascii	"[FAIL]\011vDSO returned %d, syscall errno=%d\012\000"
	.align	2
.LC5:
	.ascii	"\011%llu.%09ld %llu.%09ld %llu.%09ld\012\000"
	.align	2
.LC6:
	.ascii	"[FAIL]\011Times are out of sequence\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_one_clock_gettime, %function
test_one_clock_gettime:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r3, .L20
	sub	sp, sp, #76
	mov	r2, r4
	ldr	r0, .L20+4
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	bl	printf
	mov	r0, r4
	add	r1, sp, #44
	bl	sys_clock_gettime
	cmp	r0, #0
	blt	.L15
	mov	r0, r4
	add	r1, sp, #52
	bl	vdso_clock_gettime
	mov	r3, r0
	add	r1, sp, #60
	mov	r0, r4
	mov	r4, r3
	bl	sys_clock_gettime
	orrs	r3, r4, r0
	bne	.L16
	ldr	r2, [sp, #64]
	ldr	r0, [sp, #56]
	asr	r3, r2, #31
	asr	r1, r0, #31
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	ldr	r2, [sp, #48]
	ldr	ip, [sp, #60]
	ldr	r0, [sp, #52]
	ldr	r1, [sp, #44]
	asr	r3, r2, #31
	str	ip, [sp, #32]
	str	r0, [sp, #16]
	str	r1, [sp]
	ldr	r0, .L20+8
	bl	printf
	add	r1, sp, #52
	add	r0, sp, #44
	bl	ts_leq
	cmp	r0, #0
	bne	.L7
.L8:
	ldr	r0, .L20+12
	bl	puts
	ldr	r2, .L20+16
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, pc}
.L15:
	ldr	r3, .L20+20
	ldr	r5, .L20+24
	ldr	r2, [r3]
	ldr	r3, [r5]
	cmp	r2, r3
	beq	.L18
	mov	r1, r4
	ldr	r0, .L20+28
	bl	printf
	b	.L1
.L16:
	ldr	r3, .L20+20
	mov	r1, r4
	ldr	r2, [r3]
	ldr	r0, .L20+32
	bl	printf
	ldr	r2, .L20+16
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	b	.L1
.L7:
	add	r1, sp, #60
	add	r0, sp, #52
	bl	ts_leq
	cmp	r0, #0
	beq	.L8
	b	.L1
.L18:
	add	r1, sp, #52
	mov	r0, r4
	bl	vdso_clock_gettime
	ldr	r3, [r5]
	mov	r1, r0
	cmn	r0, r3
	beq	.L19
	ldr	r0, .L20+36
	bl	printf
	ldr	r2, .L20+16
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	b	.L1
.L19:
	ldr	r0, .L20+40
	bl	puts
	b	.L1
.L17:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC7
	.word	.LC0
	.word	.LC5
	.word	.LC6
	.word	nerrs
	.word	errno
	.word	EINVAL
	.word	.LC3
	.word	.LC4
	.word	.LC2
	.word	.LC1
	.size	test_one_clock_gettime, .-test_one_clock_gettime
	.comm	nerrs,4,4
	.comm	errno,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
