	.file	"608631.c"
	.intel_syntax noprefix
	.text
	.globl	avg
	.type	avg, @function
avg:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR .LC0[rip]
	divss	xmm0, xmm1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	avg, .-avg
	.section	.rodata
	.align 8
.LC1:
	.string	"%d\353\262\210\354\247\270 \355\225\231\354\203\235 \352\265\255\354\226\264 \354\230\201\354\226\264 \354\210\230\355\225\231 \354\210\234\354\234\274\353\241\234 \354\236\205\353\240\245 : "
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"\355\225\231\354\203\235\353\223\244\354\235\230 \355\217\211\352\267\240"
	.align 8
.LC4:
	.string	"%d\353\262\210\354\247\270 \355\225\231\354\203\235 \352\265\255\354\226\264 \354\230\201\354\226\264 \354\210\230\355\225\231 \355\217\211\352\267\240 : %.2f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	.L4
.L5:
	mov	eax, DWORD PTR -100[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	lea	rcx, 8[rax]
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rsi, -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 4
	add	rax, rsi
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -100[rbp], 1
.L4:
	cmp	DWORD PTR -100[rbp], 4
	jle	.L5
	mov	DWORD PTR -100[rbp], 0
	jmp	.L6
.L7:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdi, rax
	call	avg
	movd	eax, xmm0
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdx, edx
	sal	rdx, 4
	add	rdx, rbp
	sub	rdx, 84
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -100[rbp], 1
.L6:
	cmp	DWORD PTR -100[rbp], 4
	jle	.L7
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -100[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 84
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	mov	edx, DWORD PTR -100[rbp]
	add	edx, 1
	movq	xmm0, rax
	mov	esi, edx
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -100[rbp], 1
.L8:
	cmp	DWORD PTR -100[rbp], 4
	jle	.L9
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	1077936128
	.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	"608631.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.align	2
	.global	avg
	.syntax unified
	.arm
	.fpu softvfp
	.type	avg, %function
avg:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L3
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	1077936128
	.size	avg, .-avg
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\353\262\210\354\247\270 \355\225\231\354\203\235"
	.ascii	" \352\265\255\354\226\264 \354\230\201\354\226\264 "
	.ascii	"\354\210\230\355\225\231 \354\210\234\354\234\274\353"
	.ascii	"\241\234 \354\236\205\353\240\245 : \000"
	.align	2
.LC1:
	.ascii	"%d %d %d\000"
	.align	2
.LC2:
	.ascii	"\355\225\231\354\203\235\353\223\244\354\235\230 \355"
	.ascii	"\217\211\352\267\240\000"
	.global	__aeabi_f2d
	.align	2
.LC3:
	.ascii	"%d\353\262\210\354\247\270 \355\225\231\354\203\235"
	.ascii	" \352\265\255\354\226\264 \354\230\201\354\226\264 "
	.ascii	"\354\210\230\355\225\231 \355\217\211\352\267\240 :"
	.ascii	" %.2f\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L6
.L7:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L13+4
	bl	printf
	sub	r2, fp, #96
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #4
	add	r1, r2, r3
	sub	r2, fp, #96
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r0, r3, #4
	sub	r2, fp, #96
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #4
	add	r3, r3, #8
	add	r3, r2, r3
	mov	r2, r0
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L6:
	ldr	r3, [fp, #-100]
	cmp	r3, #4
	ble	.L7
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L8
.L9:
	sub	r2, fp, #96
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r0, r3
	bl	avg
	mov	r2, r0
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #4
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-72]	@ float
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L8:
	ldr	r3, [fp, #-100]
	cmp	r3, #4
	ble	.L9
	ldr	r0, .L13+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L10
.L11:
	ldr	r3, [fp, #-100]
	add	r4, r3, #1
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #4
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-72]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L13+16
	bl	printf
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L10:
	ldr	r3, [fp, #-100]
	cmp	r3, #4
	ble	.L11
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
