	.file	"148579217.c"
	.intel_syntax noprefix
	.text
	.globl	fun
	.type	fun, @function
fun:
.LFB6:
	.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	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -104[rbp], xmm0
	mov	DWORD PTR -112[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -104[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -104[rbp], xmm0
	add	DWORD PTR -112[rbp], 1
.L2:
	cmp	DWORD PTR -112[rbp], 9
	jle	.L3
	mov	DWORD PTR -108[rbp], 0
	mov	eax, DWORD PTR -108[rbp]
	mov	DWORD PTR -112[rbp], eax
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -104[rbp]
	comisd	xmm0, xmm1
	jbe	.L5
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	movsd	QWORD PTR -96[rbp+rax*8], xmm0
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -108[rbp], 1
.L5:
	add	DWORD PTR -112[rbp], 1
.L4:
	cmp	DWORD PTR -112[rbp], 9
	jle	.L7
	mov	DWORD PTR -112[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR .LC2[rip]
	ucomisd	xmm0, xmm1
	jp	.L17
	movsd	xmm1, QWORD PTR .LC2[rip]
	comisd	xmm0, xmm1
	je	.L9
.L17:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -108[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -108[rbp], edx
	movsd	xmm0, QWORD PTR [rcx]
	cdqe
	movsd	QWORD PTR -96[rbp+rax*8], xmm0
.L9:
	add	DWORD PTR -112[rbp], 1
.L8:
	cmp	DWORD PTR -112[rbp], 9
	jle	.L11
	mov	DWORD PTR -112[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -96[rbp+rax*8]
	movsd	QWORD PTR [rdx], xmm0
	add	DWORD PTR -112[rbp], 1
.L12:
	cmp	DWORD PTR -112[rbp], 9
	jle	.L13
	movsd	xmm0, QWORD PTR -104[rbp]
	movq	rax, xmm0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fun, .-fun
	.section	.rodata
.LC3:
	.string	"%4.0f "
.LC4:
	.string	"\nThe average is: %f\n"
.LC5:
	.string	"\nThe result :\n"
.LC6:
	.string	"%5.0f "
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -100[rbp], 0
	jmp	.L19
.L20:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 4
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 50
	sub	eax, ecx
	mov	edx, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, edx
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	movsd	QWORD PTR -96[rbp+rax*8], xmm0
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -100[rbp], 1
.L19:
	cmp	DWORD PTR -100[rbp], 9
	jle	.L20
	mov	edi, 10
	call	putchar@PLT
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	fun
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	fun
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	DWORD PTR -100[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -100[rbp], 1
.L21:
	cmp	DWORD PTR -100[rbp], 9
	jle	.L22
	mov	edi, 10
	call	putchar@PLT
	call	getchar@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1076101120
	.align 8
.LC2:
	.long	0
	.long	-1074790400
	.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	"148579217.c"
	.text
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmpeq
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fun
	.syntax unified
	.arm
	.fpu softvfp
	.type	fun, %function
fun:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L2
.L3:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L18+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L2:
	ldr	r3, [fp, #-108]
	cmp	r3, #9
	ble	.L3
	mov	r3, #0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-108]
	b	.L4
.L7:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-104]
	lsl	r1, r1, #3
	sub	r0, fp, #4
	add	r1, r0, r1
	sub	r1, r1, #88
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-112]
	add	r1, r2, r3
	mov	r2, #0
	ldr	r3, .L18+8
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L5:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L4:
	ldr	r3, [fp, #-108]
	cmp	r3, #9
	ble	.L7
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L8
.L11:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L18+8
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r1, [fp, #-104]
	add	r2, r1, #1
	str	r2, [fp, #-104]
	ldmia	r3, {r2-r3}
	lsl	r1, r1, #3
	sub	r0, fp, #4
	add	r1, r0, r1
	sub	r1, r1, #88
	stm	r1, {r2-r3}
.L9:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L8:
	ldr	r3, [fp, #-108]
	cmp	r3, #9
	ble	.L11
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L12
.L13:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-112]
	add	r1, r2, r3
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #88
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L12:
	ldr	r3, [fp, #-108]
	cmp	r3, #9
	ble	.L13
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	ldr	r1, .L18
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	1076101120
	.word	-1074790400
	.size	fun, .-fun
	.global	__aeabi_i2d
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%4.0f \000"
	.align	2
.LC2:
	.ascii	"\012The average is: %f\012\000"
	.align	2
.LC3:
	.ascii	"\012The result :\012\000"
	.align	2
.LC4:
	.ascii	"%5.0f \000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L21
.L22:
	bl	rand
	mov	r1, r0
	ldr	r3, .L26+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #4
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	mov	r0, r2
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-96]
	lsl	r1, r1, #3
	sub	r0, fp, #4
	add	r1, r0, r1
	sub	r1, r1, #88
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #88
	ldmia	r3, {r2-r3}
	ldr	r0, .L26+8
	bl	printf
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L21:
	ldr	r3, [fp, #-96]
	cmp	r3, #9
	ble	.L22
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #92
	mov	r0, r3
	bl	fun
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L26+12
	bl	printf
	sub	r3, fp, #92
	mov	r0, r3
	bl	fun
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L26+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L23
.L24:
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #88
	ldmia	r3, {r2-r3}
	ldr	r0, .L26+20
	bl	printf
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L23:
	ldr	r3, [fp, #-96]
	cmp	r3, #9
	ble	.L24
	mov	r0, #10
	bl	putchar
	bl	getchar
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC5
	.word	1374389535
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
