	.file	"86075373.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"Eden.doc.txt"
	.align 8
.LC2:
	.string	"You want to code(1) or decode(0): "
.LC3:
	.string	"%d"
.LC4:
	.string	"Tekst.txt"
.LC5:
	.string	"Coding has begun"
.LC6:
	.string	"wb"
.LC7:
	.string	"Kod.txt"
.LC8:
	.string	"."
.LC9:
	.string	"%d "
.LC10:
	.string	"r"
.LC11:
	.string	"w"
.LC12:
	.string	"%ld"
.LC13:
	.string	"Ooops"
	.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
	lea	r11, -774144[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2512
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 700[rdx]
	mov	DWORD PTR -776652[rbp], eax
	mov	edi, 0
	call	time@PLT
	mov	rdi, rax
	mov	eax, 0
	call	srand@PLT
	mov	eax, 0
	call	rand@PLT
	mov	DWORD PTR -776652[rbp], eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -776632[rbp], rax
	mov	eax, DWORD PTR -776652[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -776632[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	cmp	QWORD PTR -776632[rbp], 0
	je	.L2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -776656[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -776656[rbp]
	cmp	eax, 1
	jne	.L3
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -776616[rbp], rax
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR -776616[rbp]
	lea	rax, -776592[rbp]
	mov	rcx, rdx
	mov	edx, 100
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -776648[rbp], eax
	lea	rsi, .LC6[rip]
	lea	rdi, .LC7[rip]
	call	fopen@PLT
	mov	QWORD PTR -776624[rbp], rax
	mov	DWORD PTR -776656[rbp], 0
	jmp	.L4
.L7:
	mov	rdx, QWORD PTR -776632[rbp]
	lea	rax, -776480[rbp]
	mov	rcx, rdx
	mov	edx, 776462
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -776644[rbp], eax
	mov	eax, DWORD PTR -776656[rbp]
	cdqe
	movzx	eax, BYTE PTR -776592[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	edx, eax
	lea	rax, -776480[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -776600[rbp], rax
	cmp	QWORD PTR -776600[rbp], 0
	jne	.L5
	lea	rax, .LC8[rip]
	mov	edx, eax
	lea	rax, -776480[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -776600[rbp], rax
	lea	rdx, -776480[rbp]
	mov	rax, QWORD PTR -776600[rbp]
	sub	rax, rdx
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -776652[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -776624[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdx, -776480[rbp]
	mov	rax, QWORD PTR -776600[rbp]
	sub	rax, rdx
	mov	edx, eax
	mov	eax, DWORD PTR -776652[rbp]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR -776652[rbp], eax
	mov	eax, DWORD PTR -776652[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -776632[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L6
.L5:
	lea	rdx, -776480[rbp]
	mov	rax, QWORD PTR -776600[rbp]
	sub	rax, rdx
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -776652[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -776624[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdx, -776480[rbp]
	mov	rax, QWORD PTR -776600[rbp]
	sub	rax, rdx
	mov	edx, eax
	mov	eax, DWORD PTR -776652[rbp]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR -776652[rbp], eax
	mov	eax, DWORD PTR -776652[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -776632[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
.L6:
	mov	eax, DWORD PTR -776656[rbp]
	add	eax, 1
	mov	DWORD PTR -776656[rbp], eax
.L4:
	mov	eax, DWORD PTR -776656[rbp]
	cmp	DWORD PTR -776648[rbp], eax
	jg	.L7
	mov	rax, QWORD PTR -776632[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -776616[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -776624[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L8
.L3:
	lea	rsi, .LC10[rip]
	lea	rdi, .LC7[rip]
	call	fopen@PLT
	mov	QWORD PTR -776624[rbp], rax
	lea	rsi, .LC11[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -776616[rbp], rax
	mov	rax, QWORD PTR -776632[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -776632[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -776608[rbp], rax
	jmp	.L9
.L12:
	mov	rax, QWORD PTR -776640[rbp]
	sub	rax, 1
	mov	QWORD PTR -776640[rbp], rax
	mov	rax, QWORD PTR -776640[rbp]
	cmp	QWORD PTR -776608[rbp], rax
	jl	.L10
	mov	rcx, QWORD PTR -776640[rbp]
	mov	rax, QWORD PTR -776632[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -776632[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -776616[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	putc@PLT
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -776616[rbp]
	mov	rsi, rax
	mov	edi, 46
	call	fputc@PLT
.L11:
	mov	rax, QWORD PTR -776632[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -776616[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -776624[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L9:
	lea	rdx, -776640[rbp]
	mov	rax, QWORD PTR -776624[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, -1
	jne	.L12
	jmp	.L8
.L2:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"86075373.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"Eden.doc.txt\000"
	.align	2
.LC2:
	.ascii	"You want to code(1) or decode(0): \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Tekst.txt\000"
	.align	2
.LC5:
	.ascii	"Coding has begun\000"
	.align	2
.LC6:
	.ascii	"wb\000"
	.align	2
.LC7:
	.ascii	"Kod.txt\000"
	.align	2
.LC8:
	.ascii	".\000"
	.align	2
.LC9:
	.ascii	"%d \000"
	.align	2
.LC10:
	.ascii	"r\000"
	.align	2
.LC11:
	.ascii	"w\000"
	.align	2
.LC12:
	.ascii	"%ld\000"
	.align	2
.LC13:
	.ascii	"Ooops\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 776608
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #774144
	sub	sp, sp, #2464
	sub	sp, sp, #4
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	rand
	mov	r1, r0
	ldr	r3, .L15+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	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, #2
	sub	r2, r1, r3
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r1, r3
	add	r3, r2, #700
	str	r3, [r1, #-2456]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r4, r3
	bl	rand
	str	r0, [r4, #-2456]
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L15+8
	ldr	r0, .L15+12
	bl	fopen
	str	r0, [r4, #-2452]
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, [r1, #-2456]
	ldr	r0, [r3, #-2452]
	bl	fseek
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r3, [r3, #-2452]
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L15+16
	bl	printf
	sub	r3, fp, #774144
	sub	r3, r3, #12
	sub	r3, r3, #2464
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r3, [r3, #-2464]
	cmp	r3, #1
	bne	.L3
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L15+8
	ldr	r0, .L15+24
	bl	fopen
	str	r0, [r4, #-2444]
	ldr	r0, .L15+28
	bl	puts
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r0, .L15+32
	sub	r2, fp, #12
	add	r0, r2, r0
	ldr	r3, [r3, #-2444]
	mov	r2, #100
	mov	r1, #1
	bl	fread
	mov	r3, r0
	sub	r2, fp, #774144
	sub	r2, r2, #12
	str	r3, [r2, #-2436]
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L15+36
	ldr	r0, .L15+40
	bl	fopen
	str	r0, [r4, #-2448]
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2464]
	b	.L4
.L7:
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r0, .L15+44
	sub	r2, fp, #12
	add	r0, r2, r0
	ldr	r3, [r3, #-2452]
	ldr	r2, .L15+48
	mov	r1, #1
	bl	fread
	mov	r3, r0
	sub	r2, fp, #774144
	sub	r2, r2, #12
	str	r3, [r2, #-2432]
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r3, [r3, #-2464]
	sub	r2, fp, #774144
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-2424]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r2, r0
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r3, .L15+44
	sub	r1, fp, #12
	add	r3, r1, r3
	mov	r1, r2
	mov	r0, r3
	bl	strchr
	str	r0, [r4, #-2428]
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r3, [r3, #-2428]
	cmp	r3, #0
	bne	.L5
	ldr	r2, .L15+52
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r3, .L15+44
	sub	r1, fp, #12
	add	r3, r1, r3
	mov	r1, r2
	mov	r0, r3
	bl	strchr
	str	r0, [r4, #-2428]
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L15+44
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r2, [r2, #-2428]
	sub	r3, r2, r3
	add	r2, r3, #1
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r3, [r3, #-2456]
	add	r3, r2, r3
	sub	r2, fp, #774144
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L15+56
	ldr	r0, [r0, #-2448]
	bl	fprintf
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L15+44
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r2, [r2, #-2428]
	sub	r3, r2, r3
	add	r3, r3, #1
	sub	r2, fp, #774144
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #774144
	sub	r2, r2, #12
	ldr	r2, [r2, #-2456]
	add	r3, r2, r3
	str	r3, [r1, #-2456]
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, [r1, #-2456]
	ldr	r0, [r3, #-2452]
	bl	fseek
	b	.L6
.L5:
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L15+44
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r2, [r2, #-2428]
	sub	r3, r2, r3
	add	r2, r3, #1
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r3, [r3, #-2456]
	add	r3, r2, r3
	sub	r2, fp, #774144
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L15+56
	ldr	r0, [r0, #-2448]
	bl	fprintf
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L15+44
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r2, [r2, #-2428]
	sub	r3, r2, r3
	add	r3, r3, #1
	sub	r2, fp, #774144
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #774144
	sub	r2, r2, #12
	ldr	r2, [r2, #-2456]
	add	r3, r2, r3
	str	r3, [r1, #-2456]
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, [r1, #-2456]
	ldr	r0, [r3, #-2452]
	bl	fseek
.L6:
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r3, [r3, #-2464]
	add	r3, r3, #1
	sub	r2, fp, #774144
	sub	r2, r2, #12
	str	r3, [r2, #-2464]
.L4:
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r3, [r3, #-2464]
	sub	r2, fp, #774144
	sub	r2, r2, #12
	ldr	r2, [r2, #-2436]
	cmp	r2, r3
	bgt	.L7
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r0, [r3, #-2452]
	bl	fclose
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r0, [r3, #-2444]
	bl	fclose
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r0, [r3, #-2448]
	bl	fclose
	b	.L8
.L3:
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L15+60
	ldr	r0, .L15+40
	bl	fopen
	str	r0, [r4, #-2448]
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L15+64
	ldr	r0, .L15+24
	bl	fopen
	str	r0, [r4, #-2444]
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [r3, #-2452]
	bl	fseek
	sub	r3, fp, #774144
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r0, [r3, #-2452]
	bl	ftell
	str	r0, [r4, #-2440]
	b	.L9
.L12:
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r3, [r3, #-2460]
	sub	r3, r3, #1
	sub	r2, fp, #774144
	sub	r2, r2, #12
	str	r3, [r2, #-2460]
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r3, [r3, #-2460]
	sub	r2, fp, #774144
	sub	r2, r2, #12
	ldr	r2, [r2, #-2440]
	cmp	r2, r3
	blt	.L10
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r3, [r3, #-2460]
	sub	r2, fp, #774144
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [r0, #-2452]
	bl	fseek
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r0, [r3, #-2452]
	bl	getc
	mov	r3, r0
	sub	r2, fp, #774144
	sub	r2, r2, #12
	ldr	r1, [r2, #-2444]
	mov	r0, r3
	bl	putc
	b	.L11
.L10:
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r1, [r3, #-2444]
	mov	r0, #46
	bl	fputc
.L11:
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r0, [r3, #-2452]
	bl	fclose
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r0, [r3, #-2444]
	bl	fclose
	sub	r3, fp, #774144
	sub	r3, r3, #12
	ldr	r0, [r3, #-2448]
	bl	fclose
.L9:
	ldr	r3, .L15+68
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r2, fp, #774144
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L15+72
	ldr	r0, [r0, #-2448]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	b	.L8
.L2:
	ldr	r0, .L15+76
	bl	printf
.L8:
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC14
	.word	1374389535
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	-776568
	.word	.LC6
	.word	.LC7
	.word	-776468
	.word	776462
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	-776604
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
