	.file	"37590.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\n\tTIMING TEST: %d calls  to rand()\n\n\t"
.LC1:
	.string	"%10d "
.LC2:
	.string	"....."
.LC3:
	.string	"\t%7s\n\n"
.LC5:
	.string	"      elapsed time: "
.LC6:
	.string	"        begin time: "
.LC7:
	.string	"          end time: "
	.align 8
.LC8:
	.string	"\n\t%s%ld\n\t%s%ld\n\t%s%ld\n\t%s%.10f\n\n"
.LC9:
	.string	"time for each call: "
	.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
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	esi, 100000000
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ebx, 1
	jmp	.L2
.L5:
	call	rand@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	rbx, 24
	ja	.L3
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, rbx
	and	eax, 7
	test	rax, rax
	jne	.L4
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 9
	call	putchar@PLT
	jmp	.L4
.L3:
	cmp	rbx, 25
	jne	.L4
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	add	rbx, 1
.L2:
	cmp	rbx, 100000000
	jbe	.L5
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movq	rdx, xmm0
	mov	rsi, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, .LC9[rip]
	push	rcx
	push	QWORD PTR -24[rbp]
	movq	xmm0, rdx
	lea	r9, .LC5[rip]
	mov	r8, rsi
	lea	rcx, .LC6[rip]
	mov	rdx, rax
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	add	rsp, 16
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1100470148
	.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	"37590.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\011TIMING TEST: %d calls  to rand()\012\012\011"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"%10d \000"
	.align	2
.LC2:
	.ascii	".....\000"
	.align	2
.LC3:
	.ascii	"\011%7s\012\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC4:
	.ascii	"        begin time: \000"
	.align	2
.LC5:
	.ascii	"          end time: \000"
	.align	2
.LC6:
	.ascii	"\012\011%s%ld\012\011%s%ld\012\011%s%ld\012\011%s%."
	.ascii	"10f\012\012\000"
	.align	2
.LC7:
	.ascii	"time for each call: \000"
	.align	2
.LC8:
	.ascii	"      elapsed time: \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, #44
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r0, #0
	bl	time
	str	r0, [fp, #-28]
	ldr	r1, .L7
	ldr	r0, .L7+4
	bl	printf
	mov	r4, #1
	b	.L2
.L5:
	bl	rand
	str	r0, [fp, #-16]
	cmp	r4, #24
	bhi	.L3
	ldr	r1, [fp, #-16]
	ldr	r0, .L7+8
	bl	printf
	and	r3, r4, #7
	cmp	r3, #0
	bne	.L4
	mov	r0, #10
	bl	putchar
	mov	r0, #9
	bl	putchar
	b	.L4
.L3:
	cmp	r4, #25
	bne	.L4
	ldr	r1, .L7+12
	ldr	r0, .L7+16
	bl	printf
.L4:
	add	r4, r4, #1
.L2:
	ldr	r3, .L7
	cmp	r4, r3
	bls	.L5
	mov	r0, #0
	bl	time
	str	r0, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L7+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	ldr	r3, .L7+24
	str	r3, [sp, #12]
	ldr	r3, [fp, #-20]
	str	r3, [sp, #8]
	ldr	r3, .L7+28
	str	r3, [sp, #4]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	ldr	r3, .L7+32
	ldr	r2, [fp, #-24]
	ldr	r1, .L7+36
	ldr	r0, .L7+40
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	100000000
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	1100470148
	.word	.LC7
	.word	.LC8
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
