	.file	"782661.c"
	.intel_syntax noprefix
	.text
	.globl	help
	.data
	.align 32
	.type	help, @object
	.size	help, 382
help:
	.ascii	"Witaj w programie do kodowania oraz dekodowania szyfru Aidem"
	.ascii	" Media!\n\nUzycie: AMkd [operacja] [pliki]\n\nDostepne opera"
	.ascii	"cje:\n-d\td"
	.string	"ekoduje ciag tekstowy; opcja domyslna\n-e, -k\tkoduje ciag tekstowy\n\nProgram uruchomiony bez argumentow oczekuje na ciag znakow zakonczony EOF (^D)\n\nWynik operacji na pliku zapisywany jest w nowym pliku z dodatkowym\n\trozszerzeniem, odpowiednio .dek lub .kod."
	.text
	.globl	print_help
	.type	print_help, @function
print_help:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, help[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_help, .-print_help
	.globl	calc_shift
	.type	calc_shift, @function
calc_shift:
.LFB7:
	.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	QWORD PTR -16[rbp], rsi
	mov	eax, edx
	mov	WORD PTR -20[rbp], ax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	WORD PTR -20[rbp], ax
	jnb	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR [rax], 1
.L3:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	shr	ax
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	and	eax, 1
	add	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	and	eax, 1
	test	ax, ax
	je	.L4
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, WORD PTR [rax]
	neg	eax
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR [rax], dx
.L4:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, WORD PTR [rax]
	cwde
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	calc_shift, .-calc_shift
	.section	.rodata
.LC0:
	.string	"{<%c:%hu>}\n"
.LC1:
	.string	"<E>"
	.text
	.globl	cod
	.type	cod, @function
cod:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	eax, edx
	mov	edx, ecx
	mov	WORD PTR -84[rbp], ax
	mov	eax, edx
	mov	BYTE PTR -88[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	WORD PTR -56[rbp], 0
	mov	WORD PTR -52[rbp], 0
	mov	WORD PTR -54[rbp], 0
	mov	WORD PTR -50[rbp], 1
	mov	BYTE PTR -57[rbp], 67
	cmp	BYTE PTR -88[rbp], 0
	je	.L7
	movzx	eax, WORD PTR -50[rbp]
	neg	eax
	mov	WORD PTR -50[rbp], ax
	mov	BYTE PTR -57[rbp], 68
.L7:
	movzx	ecx, WORD PTR -84[rbp]
	movsx	edx, BYTE PTR -57[rbp]
	mov	rax, QWORD PTR -80[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L8
.L13:
	movzx	eax, BYTE PTR -58[rbp]
	cmp	al, 13
	jne	.L9
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fgetpos@PLT
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -58[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	movzx	eax, BYTE PTR -58[rbp]
	cmp	al, 10
	je	.L10
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fsetpos@PLT
.L10:
	mov	rax, QWORD PTR -80[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	movzx	eax, WORD PTR -52[rbp]
	add	eax, 1
	mov	WORD PTR -52[rbp], ax
	jmp	.L11
.L9:
	movzx	eax, BYTE PTR -58[rbp]
	cmp	al, 10
	jne	.L12
	mov	rax, QWORD PTR -80[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	movzx	eax, WORD PTR -52[rbp]
	add	eax, 1
	mov	WORD PTR -52[rbp], ax
	jmp	.L11
.L12:
	movzx	eax, BYTE PTR -58[rbp]
	movsx	ebx, al
	movzx	edx, WORD PTR -84[rbp]
	lea	rcx, -54[rbp]
	lea	rax, -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	calc_shift
	movsx	edx, WORD PTR -50[rbp]
	imul	eax, edx
	sub	ebx, eax
	mov	edx, ebx
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	fputc@PLT
.L11:
	cmp	WORD PTR -52[rbp], 5
	jbe	.L8
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	WORD PTR -52[rbp], 0
.L8:
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -58[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cod, .-cod
	.section	.rodata
.LC2:
	.string	"{<%c:%hu>}"
	.text
	.globl	dec
	.type	dec, @function
dec:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	WORD PTR -54[rbp], 0
	mov	WORD PTR -52[rbp], 0
	mov	WORD PTR -50[rbp], 1
	lea	rcx, -56[rbp]
	lea	rdx, -58[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 2
	je	.L16
	mov	eax, -1
	jmp	.L27
.L16:
	movzx	eax, BYTE PTR -58[rbp]
	movsx	eax, al
	cmp	eax, 100
	je	.L18
	cmp	eax, 100
	jg	.L19
	cmp	eax, 99
	je	.L29
	cmp	eax, 99
	jg	.L19
	cmp	eax, 67
	je	.L29
	cmp	eax, 68
	jne	.L19
.L18:
	movzx	eax, WORD PTR -50[rbp]
	neg	eax
	mov	WORD PTR -50[rbp], ax
	jmp	.L21
.L19:
	mov	eax, -2
	jmp	.L27
.L29:
	nop
.L21:
	jmp	.L22
.L26:
	movzx	eax, BYTE PTR -57[rbp]
	cmp	al, 60
	jne	.L23
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fgetpos@PLT
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -26[rbp]
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	movzx	eax, BYTE PTR -26[rbp]
	cmp	al, 69
	jne	.L24
	movzx	eax, BYTE PTR -25[rbp]
	cmp	al, 62
	jne	.L24
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	jmp	.L22
.L24:
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fsetpos@PLT
	movzx	eax, BYTE PTR -57[rbp]
	movsx	ebx, al
	movzx	eax, WORD PTR -56[rbp]
	movzx	edx, ax
	lea	rcx, -52[rbp]
	lea	rax, -54[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	calc_shift
	movsx	edx, WORD PTR -50[rbp]
	imul	eax, edx
	lea	edx, [rbx+rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	fputc@PLT
	jmp	.L22
.L23:
	movzx	eax, BYTE PTR -57[rbp]
	cmp	al, 13
	je	.L22
	movzx	eax, BYTE PTR -57[rbp]
	cmp	al, 10
	je	.L22
	movzx	eax, BYTE PTR -57[rbp]
	movsx	ebx, al
	movzx	eax, WORD PTR -56[rbp]
	movzx	edx, ax
	lea	rcx, -52[rbp]
	lea	rax, -54[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	calc_shift
	movsx	edx, WORD PTR -50[rbp]
	imul	eax, edx
	lea	edx, [rbx+rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	fputc@PLT
.L22:
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -57[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L26
	mov	eax, 0
.L27:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dec, .-dec
	.section	.rodata
.LC3:
	.string	"Blad czytania wejscia: %s\n"
.LC4:
	.string	"Nieznany format pliku: %s\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB10:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, ecx
	mov	BYTE PTR -44[rbp], al
	cmp	BYTE PTR -44[rbp], 0
	je	.L31
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	dec
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -2
	je	.L32
	cmp	DWORD PTR -4[rbp], -1
	jne	.L35
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L34
.L32:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L34
.L31:
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, 0
	mov	edx, 6
	mov	rdi, rax
	call	cod
	jmp	.L35
.L34:
.L35:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	run, .-run
	.section	.rodata
.LC5:
	.string	"Dlaczego?\n\n"
.LC6:
	.string	"r"
	.align 8
.LC7:
	.string	"Nieprawidlowa nazwa pliku: %s\n"
.LC8:
	.string	".dek"
.LC9:
	.string	".kod"
.LC10:
	.string	"w"
	.align 8
.LC11:
	.string	"Cos poszlo nie tak przy tworzeniu pliku: %s\n"
.LC12:
	.string	"STDIN"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	WORD PTR -92[rbp], 0
	mov	BYTE PTR -90[rbp], 1
	mov	WORD PTR -94[rbp], 1
	jmp	.L37
.L54:
	movsx	rax, WORD PTR -94[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L38
	cmp	WORD PTR -94[rbp], 1
	jne	.L39
	movsx	rax, WORD PTR -94[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 107
	je	.L40
	cmp	eax, 107
	jg	.L45
	cmp	eax, 104
	je	.L42
	cmp	eax, 104
	jg	.L45
	cmp	eax, 100
	je	.L58
	cmp	eax, 101
	jne	.L45
.L40:
	mov	BYTE PTR -90[rbp], 0
	jmp	.L45
.L42:
	call	print_help
	mov	eax, 0
	jmp	.L56
.L39:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	call	print_help
	mov	eax, 0
	jmp	.L56
.L38:
	mov	rax, rsp
	mov	rbx, rax
	movzx	eax, WORD PTR -92[rbp]
	add	eax, 1
	mov	WORD PTR -92[rbp], ax
	movsx	rax, WORD PTR -94[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L46
	movsx	rax, WORD PTR -94[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L47
.L46:
	movsx	rax, WORD PTR -94[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 5
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -80[rbp], rdx
	mov	r12, rax
	mov	r13d, 0
	mov	r14, rax
	mov	r15d, 0
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L48:
	cmp	rsp, rdx
	je	.L49
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L48
.L49:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L50
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L50:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -72[rbp], rax
	movsx	rax, WORD PTR -94[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	movzx	eax, BYTE PTR -90[rbp]
	test	al, al
	je	.L51
	lea	rax, .LC8[rip]
	jmp	.L52
.L51:
	lea	rax, .LC9[rip]
.L52:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcat@PLT
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L53
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L47
.L53:
	movzx	eax, BYTE PTR -90[rbp]
	movzx	ecx, al
	movsx	rax, WORD PTR -94[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	run
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rsp, rbx
	jmp	.L45
.L47:
	mov	rsp, rbx
	jmp	.L56
.L58:
	nop
.L45:
	movzx	eax, WORD PTR -94[rbp]
	add	eax, 1
	mov	WORD PTR -94[rbp], ax
.L37:
	movsx	eax, WORD PTR -94[rbp]
	cmp	DWORD PTR -100[rbp], eax
	jg	.L54
	movzx	eax, WORD PTR -92[rbp]
	test	ax, ax
	jne	.L55
	movzx	eax, BYTE PTR -90[rbp]
	movzx	edx, al
	mov	rsi, QWORD PTR stdout[rip]
	mov	rax, QWORD PTR stdin[rip]
	mov	ecx, edx
	lea	rdx, .LC12[rip]
	mov	rdi, rax
	call	run
.L55:
	mov	eax, 0
.L56:
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"782661.c"
	.text
	.global	help
	.data
	.align	2
	.type	help, %object
	.size	help, 382
help:
	.ascii	"Witaj w programie do kodowania oraz dekodowania szy"
	.ascii	"fru Aidem Media!\012\012Uzycie: AMkd [operacja] [pl"
	.ascii	"iki]\012\012Dostepne operacje:\012-d\011dekoduje ci"
	.ascii	"ag tekstowy; opcja domyslna\012-e, -k\011koduje cia"
	.ascii	"g tekstowy\012\012Program uruchomiony bez argumento"
	.ascii	"w oczekuje na ciag znakow zakonczony EOF (^D)\012\012"
	.ascii	"Wynik operacji na pliku zapisywany jest w nowym pli"
	.ascii	"ku z dodatkowym\012\011rozszerzeniem, odpowiednio ."
	.ascii	"dek lub .kod.\000"
	.text
	.align	2
	.global	print_help
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_help, %function
print_help:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	help
	.size	print_help, .-print_help
	.align	2
	.global	calc_shift
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_shift, %function
calc_shift:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r3, r2
	strh	r3, [fp, #-14]	@ movhi
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-8]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	ldrh	r2, [fp, #-14]
	cmp	r2, r3
	bcs	.L5
	ldr	r3, [fp, #-8]
	mov	r2, #1
	strh	r2, [r3]	@ movhi
.L5:
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	lsr	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	and	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-12]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	and	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-12]
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-12]
	strh	r2, [r3]	@ movhi
.L6:
	ldr	r3, [fp, #-12]
	ldrsh	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	calc_shift, .-calc_shift
	.section	.rodata
	.align	2
.LC0:
	.ascii	"{<%c:%hu>}\012\000"
	.align	2
.LC1:
	.ascii	"<E>\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cod
	.syntax unified
	.arm
	.fpu softvfp
	.type	cod, %function
cod:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	mov	r1, r2
	mov	r2, r3
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-54]	@ movhi
	mov	r3, r2
	strb	r3, [fp, #-55]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	strh	r3, [fp, #-36]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-32]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-34]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-30]	@ movhi
	mov	r3, #67
	strb	r3, [fp, #-37]
	ldrb	r3, [fp, #-55]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
	ldrh	r3, [fp, #-30]
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-30]	@ movhi
	mov	r3, #68
	strb	r3, [fp, #-37]
.L9:
	ldrb	r2, [fp, #-37]	@ zero_extendqisi2
	ldrh	r3, [fp, #-54]
	ldr	r1, .L17+4
	ldr	r0, [fp, #-52]
	bl	fprintf
	b	.L10
.L15:
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L11
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	fgetpos
	sub	r0, fp, #38
	ldr	r3, [fp, #-48]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L12
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	fsetpos
.L12:
	ldr	r3, [fp, #-52]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L17+8
	bl	fwrite
	ldrh	r3, [fp, #-32]
	add	r3, r3, #1
	strh	r3, [fp, #-32]	@ movhi
	b	.L13
.L11:
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L14
	ldr	r3, [fp, #-52]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L17+8
	bl	fwrite
	ldrh	r3, [fp, #-32]
	add	r3, r3, #1
	strh	r3, [fp, #-32]	@ movhi
	b	.L13
.L14:
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	mov	r4, r3
	ldrh	r2, [fp, #-54]
	sub	r1, fp, #34
	sub	r3, fp, #36
	mov	r0, r3
	bl	calc_shift
	mov	r2, r0
	ldrsh	r3, [fp, #-30]
	mul	r3, r2, r3
	sub	r3, r4, r3
	ldr	r1, [fp, #-52]
	mov	r0, r3
	bl	fputc
.L13:
	ldrh	r3, [fp, #-32]
	cmp	r3, #5
	bls	.L10
	ldr	r1, [fp, #-52]
	mov	r0, #10
	bl	fputc
	mov	r3, #0
	strh	r3, [fp, #-32]	@ movhi
.L10:
	sub	r0, fp, #38
	ldr	r3, [fp, #-48]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r1, [fp, #-52]
	mov	r0, #10
	bl	fputc
	nop
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	cod, .-cod
	.section	.rodata
	.align	2
.LC3:
	.ascii	"{<%c:%hu>}\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dec
	.syntax unified
	.arm
	.fpu softvfp
	.type	dec, %function
dec:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	strh	r3, [fp, #-38]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-36]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-34]	@ movhi
	sub	r3, fp, #40
	sub	r2, fp, #42
	ldr	r1, .L34+4
	ldr	r0, [fp, #-48]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L20
	mvn	r3, #0
	b	.L31
.L20:
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	cmp	r3, #100
	beq	.L22
	cmp	r3, #100
	bgt	.L23
	cmp	r3, #99
	beq	.L33
	cmp	r3, #99
	bgt	.L23
	cmp	r3, #67
	beq	.L33
	cmp	r3, #68
	bne	.L23
.L22:
	ldrh	r3, [fp, #-34]
	rsb	r3, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-34]	@ movhi
	b	.L25
.L23:
	mvn	r3, #1
	b	.L31
.L33:
	nop
.L25:
	b	.L26
.L30:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #60
	bne	.L27
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	fgetpos
	sub	r0, fp, #20
	ldr	r3, [fp, #-48]
	mov	r2, #2
	mov	r1, #1
	bl	fread
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #69
	bne	.L28
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L28
	ldr	r1, [fp, #-52]
	mov	r0, #10
	bl	fputc
	b	.L26
.L28:
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	fsetpos
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	mov	r4, r3
	ldrh	r2, [fp, #-40]
	sub	r1, fp, #36
	sub	r3, fp, #38
	mov	r0, r3
	bl	calc_shift
	mov	r2, r0
	ldrsh	r3, [fp, #-34]
	mul	r3, r2, r3
	add	r3, r4, r3
	ldr	r1, [fp, #-52]
	mov	r0, r3
	bl	fputc
	b	.L26
.L27:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L26
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L26
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	mov	r4, r3
	ldrh	r2, [fp, #-40]
	sub	r1, fp, #36
	sub	r3, fp, #38
	mov	r0, r3
	bl	calc_shift
	mov	r2, r0
	ldrsh	r3, [fp, #-34]
	mul	r3, r2, r3
	add	r3, r4, r3
	ldr	r1, [fp, #-52]
	mov	r0, r3
	bl	fputc
.L26:
	sub	r0, fp, #41
	ldr	r3, [fp, #-48]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	mov	r3, #0
.L31:
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC4
	.word	.LC3
	.size	dec, .-dec
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Blad czytania wejscia: %s\012\000"
	.align	2
.LC6:
	.ascii	"Nieznany format pliku: %s\012\000"
	.text
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L37
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	dec
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #2
	beq	.L38
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L41
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L42+4
	mov	r0, r3
	bl	fprintf
	b	.L40
.L38:
	ldr	r3, .L42
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L42+8
	mov	r0, r3
	bl	fprintf
	b	.L40
.L37:
	mov	r3, #0
	mov	r2, #6
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	cod
	b	.L41
.L40:
.L41:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	stderr
	.word	.LC5
	.word	.LC6
	.size	run, .-run
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Dlaczego?\012\012\000"
	.align	2
.LC8:
	.ascii	"r\000"
	.align	2
.LC9:
	.ascii	"Nieprawidlowa nazwa pliku: %s\012\000"
	.align	2
.LC10:
	.ascii	".dek\000"
	.align	2
.LC11:
	.ascii	".kod\000"
	.align	2
.LC12:
	.ascii	"w\000"
	.align	2
.LC13:
	.ascii	"Cos poszlo nie tak przy tworzeniu pliku: %s\012\000"
	.align	2
.LC14:
	.ascii	"STDIN\000"
	.align	2
.LC15:
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	strh	r3, [fp, #-36]	@ movhi
	mov	r3, #1
	strb	r3, [fp, #-34]
	mov	r3, #1
	strh	r3, [fp, #-38]	@ movhi
	b	.L45
.L60:
	ldrsh	r3, [fp, #-38]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L46
	ldrsh	r3, [fp, #-38]
	cmp	r3, #1
	bne	.L47
	ldrsh	r3, [fp, #-38]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #100
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L54
.L50:
	.word	.L54
	.word	.L49
	.word	.L54
	.word	.L54
	.word	.L51
	.word	.L54
	.word	.L54
	.word	.L49
.L49:
	mov	r3, #0
	strb	r3, [fp, #-34]
	b	.L54
.L51:
	bl	print_help
	mov	r3, #0
	b	.L62
.L47:
	ldr	r3, .L64+4
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L64+8
	bl	fwrite
	bl	print_help
	mov	r3, #0
	b	.L62
.L46:
	mov	r3, sp
	mov	r4, r3
	ldrsh	r3, [fp, #-36]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-36]	@ movhi
	ldrsh	r3, [fp, #-38]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L64+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L55
	ldr	r3, .L64+4
	ldr	r0, [r3]
	ldrsh	r3, [fp, #-38]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L64+16
	bl	fprintf
	mov	r3, #0
	b	.L56
.L55:
	ldrsh	r3, [fp, #-38]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	ip, r3, #5
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, ip, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-24]
	ldrsh	r3, [fp, #-38]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strcpy
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L57
	ldr	r3, .L64+20
	b	.L58
.L57:
	ldr	r3, .L64+24
.L58:
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strcat
	ldr	r1, .L64+28
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L59
	ldr	r3, .L64+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L64+32
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L56
.L59:
	ldrsh	r3, [fp, #-38]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	run
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-32]
	bl	fclose
	mov	sp, r4
	b	.L54
.L56:
	mov	sp, r4
	b	.L62
.L54:
	ldrsh	r3, [fp, #-38]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-38]	@ movhi
.L45:
	ldrsh	r3, [fp, #-38]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bgt	.L60
	ldrsh	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L61
	ldr	r3, .L64+36
	ldr	r0, [r3]
	ldr	r3, .L64+40
	ldr	r1, [r3]
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	ldr	r2, .L64+44
	bl	run
.L61:
	mov	r3, #0
.L62:
	ldr	r2, .L64
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC15
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	stdin
	.word	stdout
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
