	.file	"218115.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"wb"
.LC1:
	.string	"matr1.dat"
	.align 8
.LC2:
	.string	"\320\236\321\210\320\270\320\261\320\272\320\260 \320\277\321\200\320\270 \320\276\321\202\320\272\321\200\321\213\321\202\320\270\320\270 \321\204\320\260\320\271\320\273\320\260."
	.align 8
.LC3:
	.string	"\320\222\320\262\320\265\320\264\320\270\321\202\320\265 \320\277\320\276\321\200\321\217\320\264\320\276\320\272 \320\274\320\260\321\202\321\200\320\270\321\206\321\213: "
.LC4:
	.string	"%d"
.LC6:
	.string	"%7.2f"
	.align 8
.LC7:
	.string	"\320\235\320\265 \320\274\320\276\320\266\320\265\320\274 \320\267\320\260\320\277\320\270\321\201\320\260\321\202\321\214 \320\270\320\275\321\204\320\276\321\200\320\274\320\260\321\206\320\270\321\216 \320\276 \320\274\320\260\321\202\321\200\320\270\321\206\320\265"
	.align 8
.LC8:
	.string	"\320\227\320\260\320\277\320\270\321\201\320\260\320\273\320\270\321\201\321\214 \320\235\320\225 \320\222\320\241\320\225 \321\215\320\273\320\265\320\274\320\265\320\275\321\202\321\213 \320\274\320\260\321\202\321\200\320\270\321\206\321\213"
	.align 8
.LC9:
	.string	"\320\236\321\210\320\270\320\261\320\272\320\260 \320\277\321\200\320\270 \320\267\320\260\320\272\321\200\321\213\321\202\320\270\320\270 \321\204\320\260\320\271\320\273\320\260"
	.align 8
.LC10:
	.string	"\n\320\224\320\273\321\217 \320\262\321\213\321\205\320\276\320\264\320\260 \320\275\320\270\320\266\320\274\320\270\321\202\320\265 Enter"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, edx
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L3
.L4:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1759218605
	shr	rdx, 32
	sar	edx, 12
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 10000
	sub	eax, ecx
	mov	edx, eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, edx
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR .LC5[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -32[rbp], 1
.L3:
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L4
	mov	DWORD PTR -32[rbp], 0
	jmp	.L5
.L8:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L6:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L7
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -32[rbp], 1
.L5:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L8
	mov	DWORD PTR -36[rbp], 0
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -44[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	mov	DWORD PTR -36[rbp], eax
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -40[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 2
	je	.L9
	lea	rdi, .LC7[rip]
	call	puts@PLT
	call	getchar@PLT
	mov	edi, 2
	call	exit@PLT
.L9:
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L10
.L13:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fwrite@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	mov	DWORD PTR -36[rbp], eax
	add	DWORD PTR -28[rbp], 1
.L11:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L12
	add	DWORD PTR -32[rbp], 1
.L10:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L13
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -36[rbp], eax
	je	.L14
	lea	rdi, .LC8[rip]
	call	puts@PLT
	call	getchar@PLT
	mov	edi, 3
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	eax, -1
	jne	.L15
	lea	rdi, .LC9[rip]
	call	puts@PLT
	call	getchar@PLT
	mov	edi, 4
	call	exit@PLT
.L15:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC5:
	.long	1120403456
	.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	"218115.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"wb\000"
	.align	2
.LC1:
	.ascii	"matr1.dat\000"
	.align	2
.LC2:
	.ascii	"\320\236\321\210\320\270\320\261\320\272\320\260 \320"
	.ascii	"\277\321\200\320\270 \320\276\321\202\320\272\321\200"
	.ascii	"\321\213\321\202\320\270\320\270 \321\204\320\260\320"
	.ascii	"\271\320\273\320\260.\000"
	.align	2
.LC3:
	.ascii	"\320\222\320\262\320\265\320\264\320\270\321\202\320"
	.ascii	"\265 \320\277\320\276\321\200\321\217\320\264\320\276"
	.ascii	"\320\272 \320\274\320\260\321\202\321\200\320\270\321"
	.ascii	"\206\321\213: \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_f2d
	.align	2
.LC5:
	.ascii	"%7.2f\000"
	.align	2
.LC6:
	.ascii	"\320\235\320\265 \320\274\320\276\320\266\320\265\320"
	.ascii	"\274 \320\267\320\260\320\277\320\270\321\201\320\260"
	.ascii	"\321\202\321\214 \320\270\320\275\321\204\320\276\321"
	.ascii	"\200\320\274\320\260\321\206\320\270\321\216 \320\276"
	.ascii	" \320\274\320\260\321\202\321\200\320\270\321\206\320"
	.ascii	"\265\000"
	.align	2
.LC7:
	.ascii	"\320\227\320\260\320\277\320\270\321\201\320\260\320"
	.ascii	"\273\320\270\321\201\321\214 \320\235\320\225 \320\222"
	.ascii	"\320\241\320\225 \321\215\320\273\320\265\320\274\320"
	.ascii	"\265\320\275\321\202\321\213 \320\274\320\260\321\202"
	.ascii	"\321\200\320\270\321\206\321\213\000"
	.align	2
.LC8:
	.ascii	"\320\236\321\210\320\270\320\261\320\272\320\260 \320"
	.ascii	"\277\321\200\320\270 \320\267\320\260\320\272\321\200"
	.ascii	"\321\213\321\202\320\270\320\270 \321\204\320\260\320"
	.ascii	"\271\320\273\320\260\000"
	.align	2
.LC9:
	.ascii	"\012\320\224\320\273\321\217 \320\262\321\213\321\205"
	.ascii	"\320\276\320\264\320\260 \320\275\320\270\320\266\320"
	.ascii	"\274\320\270\321\202\320\265 Enter\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r1, .L18+4
	ldr	r0, .L18+8
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L18+12
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, .L18+16
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L18+20
	bl	__isoc99_scanf
	bl	getchar
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	mul	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L3
.L4:
	bl	rand
	mov	r1, r0
	ldr	r3, .L18+24
	smull	r2, r3, r1, r3
	asr	r2, r3, #12
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	mov	r0, r2
	bl	__aeabi_i2f
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	ldr	r1, .L18+28
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L3:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L4
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L5
.L8:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L6
.L7:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L18+32
	bl	printf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L6:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L7
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L5:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	str	r3, [fp, #-36]
	sub	r0, fp, #44
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r2, r0
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	sub	r0, fp, #40
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r2, r0
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #2
	beq	.L9
	ldr	r0, .L18+36
	bl	puts
	bl	getchar
	mov	r0, #2
	bl	exit
.L9:
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L10
.L13:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L11
.L12:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r2, r0
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L11:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L10:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	beq	.L14
	ldr	r0, .L18+40
	bl	puts
	bl	getchar
	mov	r0, #3
	bl	exit
.L14:
	ldr	r0, [fp, #-24]
	bl	fclose
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L18+44
	bl	puts
	bl	getchar
	mov	r0, #4
	bl	exit
.L15:
	ldr	r0, .L18+48
	bl	printf
	bl	getchar
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1759218605
	.word	1120403456
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
