	.file	"98278.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"r"
.LC2:
	.string	"main_file.dat"
	.align 8
.LC3:
	.string	"\320\241\321\207\320\270\321\202\320\260\320\275\320\276 \321\207\320\270\321\201\320\273\320\276 %lf\n"
.LC4:
	.string	"%lf"
.LC5:
	.string	"\320\247\320\270\321\201\320\265\320\273 \320\275\320\265 \320\262\320\262\320\265\320\273\320\270"
	.align 8
.LC6:
	.string	"\320\241\321\200\320\265\320\264\320\275\320\265\320\265 \321\200\320\260\320\262\320\275\320\276 %lf\n"
	.align 8
.LC7:
	.string	"\320\236\321\210\320\270\320\261\320\272\320\260 \320\277\321\200\320\270 \320\277\321\200\320\276\321\207\321\202\320\265\320\275\320\270\320\270 \321\204\320\260\320\271\320\273\320\260"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L2
	mov	DWORD PTR -44[rbp], 0
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	xmm1, QWORD PTR -32[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	add	DWORD PTR -44[rbp], 1
.L3:
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L4
	cmp	DWORD PTR -44[rbp], 0
	je	.L5
	mov	eax, DWORD PTR -44[rbp]
	test	rax, rax
	js	.L6
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L7
.L6:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L7:
	movsd	xmm1, QWORD PTR -32[rbp]
	divsd	xmm1, xmm0
	movsd	QWORD PTR -24[rbp], xmm1
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L11
.L5:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, -1
	jmp	.L11
.L2:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, -1
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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	"98278.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"main_file.dat\000"
	.align	2
.LC2:
	.ascii	"\320\241\321\207\320\270\321\202\320\260\320\275\320"
	.ascii	"\276 \321\207\320\270\321\201\320\273\320\276 %lf\012"
	.ascii	"\000"
	.global	__aeabi_dadd
	.align	2
.LC3:
	.ascii	"%lf\000"
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.align	2
.LC4:
	.ascii	"\320\247\320\270\321\201\320\265\320\273 \320\275\320"
	.ascii	"\265 \320\262\320\262\320\265\320\273\320\270\000"
	.align	2
.LC5:
	.ascii	"\320\241\321\200\320\265\320\264\320\275\320\265\320"
	.ascii	"\265 \321\200\320\260\320\262\320\275\320\276 %lf\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"\320\236\321\210\320\270\320\261\320\272\320\260 \320"
	.ascii	"\277\321\200\320\270 \320\277\321\200\320\276\321\207"
	.ascii	"\321\202\320\265\320\275\320\270\320\270 \321\204\320"
	.ascii	"\260\320\271\320\273\320\260\000"
	.align	2
.LC7:
	.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, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r1, .L11+4
	ldr	r0, .L11+8
	bl	fopen
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L2
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L3
.L4:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L11+12
	bl	printf
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L3:
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L11+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L4
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L5
	ldr	r0, [fp, #-44]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L11+20
	bl	printf
	ldr	r0, [fp, #-40]
	bl	fclose
	mov	r3, #0
	b	.L9
.L5:
	ldr	r0, .L11+24
	bl	puts
	ldr	r0, [fp, #-40]
	bl	fclose
	mvn	r3, #0
	b	.L9
.L2:
	ldr	r0, .L11+28
	bl	puts
	mvn	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC5
	.word	.LC4
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
