	.file	"302574.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Failed to get start time\n"
.LC1:
	.string	"Failed to nanosleep"
.LC2:
	.string	"Failed to get end time\n"
	.align 8
.LC3:
	.string	"%d nanosleeps of %d nanoseconds\n"
	.align 8
.LC5:
	.string	"Should take   %11d microseconds or %f seconds\n"
	.align 8
.LC7:
	.string	"Actually took %11ld microseconds or %f seconds\n"
	.align 8
.LC9:
	.string	"Number of seconds per nanosleep was       %f\n"
	.align 8
.LC11:
	.string	"Number of seconds per nanosleep should be %f\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	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], 1000
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	cmp	eax, -1
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L8
.L2:
	mov	DWORD PTR -76[rbp], 0
	jmp	.L4
.L6:
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	nanosleep@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L8
.L5:
	add	DWORD PTR -76[rbp], 1
.L4:
	cmp	DWORD PTR -76[rbp], 99
	jle	.L6
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	cmp	eax, -1
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	sub	rax, rdx
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -24[rbp]
	sub	rax, rdx
	mov	QWORD PTR -72[rbp], rax
	mov	edx, 1000
	mov	esi, 100
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR .LC4[rip]
	movq	xmm0, rax
	mov	esi, 100
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -72[rbp]
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	movq	rdx, xmm0
	mov	rax, QWORD PTR -72[rbp]
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -72[rbp]
	movsd	xmm1, QWORD PTR .LC8[rip]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR .LC10[rip]
	movq	xmm0, rax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.long	-350469331
	.long	1058682594
	.align 8
.LC6:
	.long	0
	.long	1093567616
	.align 8
.LC8:
	.long	0
	.long	1079574528
	.align 8
.LC10:
	.long	-1598689907
	.long	1051772663
	.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	"302574.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Failed to get start time\012\000"
	.align	2
.LC1:
	.ascii	"Failed to nanosleep\000"
	.align	2
.LC2:
	.ascii	"Failed to get end time\012\000"
	.align	2
.LC3:
	.ascii	"%d nanosleeps of %d nanoseconds\012\000"
	.align	2
.LC4:
	.ascii	"Should take   %11d microseconds or %f seconds\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC5:
	.ascii	"Actually took %11ld microseconds or %f seconds\012\000"
	.align	2
.LC6:
	.ascii	"Number of seconds per nanosleep was       %f\012\000"
	.align	2
.LC7:
	.ascii	"Number of seconds per nanosleep should be %f\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #1000
	str	r3, [fp, #-28]
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L10+8
	bl	fwrite
	mov	r3, #1
	b	.L8
.L2:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L4
.L6:
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	nanosleep
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L10+12
	bl	perror
	mov	r3, #1
	b	.L8
.L5:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L4:
	ldr	r3, [fp, #-40]
	cmp	r3, #99
	ble	.L6
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L10+16
	bl	fwrite
	mov	r3, #1
	b	.L8
.L7:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-36]
	mov	r2, #1000
	mov	r1, #100
	ldr	r0, .L10+20
	bl	printf
	ldr	r2, .L10+24
	ldr	r3, .L10+28
	mov	r1, #100
	ldr	r0, .L10+32
	bl	printf
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L10+36
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-36]
	ldr	r0, .L10+40
	bl	printf
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L10+44
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L10+36
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L10+48
	bl	printf
	ldr	r2, .L10+52
	ldr	r3, .L10+56
	ldr	r0, .L10+60
	bl	printf
	mov	r3, #0
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC8
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	-350469331
	.word	1058682594
	.word	.LC4
	.word	1093567616
	.word	.LC5
	.word	1079574528
	.word	.LC6
	.word	-1598689907
	.word	1051772663
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
