	.file	"884340.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	".rev"
	.align 8
.LC1:
	.string	"Fehler beim Schlie\303\237en der Ausgabedatei"
	.align 8
.LC2:
	.string	"Fehler beim Schlie\303\237en der Eingabedatei"
.LC3:
	.string	"Time needed: %.2f\n"
	.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
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rdx, -56[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getparams
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -56[rbp]
	lea	rcx, -60[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	getfilehandles
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, edx
	mov	edi, eax
	call	reverse
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	edi, 0
	call	time@PLT
	sub	rax, QWORD PTR -48[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.string	"Benutzung:\n\n  %s [-b n] <Eingabedatei> <Ausgabedatei>\n"
	.text
	.globl	getparams
	.type	getparams, @function
getparams:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L7
	mov	eax, DWORD PTR optind[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR optind[rip], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L8
.L7:
	mov	DWORD PTR -4[rbp], 1
.L8:
	cmp	DWORD PTR -4[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	getparams, .-getparams
	.section	.rodata
.LC5:
	.string	" inname: %s\n outname : %s\n"
	.align 8
.LC6:
	.string	"Ein- und Ausgabepfad sind gleich"
	.align 8
.LC7:
	.string	"Fehler beim \303\226ffnen der Eingabedatei"
.LC8:
	.string	"Eingabedatei nicht gefunden"
.LC9:
	.string	"Error reading permissions"
	.align 8
.LC10:
	.string	"M\303\266chten Sie die bestehende Datei ersetzen?\n"
	.align 8
.LC11:
	.string	"Thank you for using this incredible application. We look       forward to serve you again."
	.align 8
.LC12:
	.string	"Fehler beim \303\226ffnen der Ausgabedatei"
	.text
	.globl	getfilehandles
	.type	getfilehandles, @function
getfilehandles:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	QWORD PTR -200[rbp], rdx
	mov	QWORD PTR -208[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	cmp	eax, -1
	je	.L13
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	rdx, QWORD PTR -200[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L14
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L15
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -192[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	cmp	eax, -1
	je	.L16
	lea	rdi, .LC10[rip]
	call	askUsr
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 1
	jne	.L17
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	remove@PLT
	mov	edx, DWORD PTR -136[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	esi, 65
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	rdx, QWORD PTR -208[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L18
.L17:
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L16:
	mov	edx, DWORD PTR -136[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	esi, 65
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	rdx, QWORD PTR -208[rbp]
	mov	DWORD PTR [rdx], eax
.L18:
	mov	rax, QWORD PTR -208[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L21
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	getfilehandles, .-getfilehandles
	.section	.rodata
	.align 8
.LC13:
	.string	"Error seeking end of Inputfile"
.LC14:
	.string	"Error reading inputfile."
.LC15:
	.string	"Error writing outpfile"
.LC16:
	.string	"Programm made mess"
	.text
	.globl	reverse
	.type	reverse, @function
reverse:
.LFB3:
	.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	DWORD PTR -104[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -88[rbp], 0
	mov	eax, DWORD PTR -88[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -100[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	jns	.L23
	lea	rdi, .LC13[rip]
	call	perror@PLT
.L23:
	mov	DWORD PTR -84[rbp], 1
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L24:
	cmp	rsp, rdx
	je	.L25
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L24
.L25:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L26
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L26:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	jmp	.L27
.L31:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], -1
	jne	.L28
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], -1
	jne	.L29
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	je	.L30
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	sub	DWORD PTR -88[rbp], 1
	mov	eax, DWORD PTR -88[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -100[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR -92[rbp], eax
.L27:
	cmp	DWORD PTR -92[rbp], 0
	jns	.L31
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	reverse, .-reverse
	.section	.rodata
.LC17:
	.string	"%s"
.LC18:
	.string	"Please enter [y]es or [n]o: "
.LC19:
	.string	"Please enter only 'y' or 'n'!"
	.text
	.globl	askUsr
	.type	askUsr, @function
askUsr:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
.L35:
	call	getchar@PLT
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	cmp	BYTE PTR -1[rbp], 121
	je	.L34
	cmp	BYTE PTR -1[rbp], 110
	je	.L34
	cmp	BYTE PTR -1[rbp], 106
	je	.L34
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L35
.L34:
	movsx	eax, BYTE PTR -1[rbp]
	cmp	eax, 121
	je	.L36
	cmp	eax, 121
	jg	.L37
	cmp	eax, 106
	je	.L38
	cmp	eax, 110
	je	.L39
	jmp	.L37
.L38:
	mov	eax, 1
	jmp	.L40
.L36:
	mov	eax, 1
	jmp	.L40
.L39:
	mov	eax, 0
	jmp	.L40
.L37:
	mov	eax, -1
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	askUsr, .-askUsr
	.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	"884340.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	".rev\000"
	.align	2
.LC1:
	.ascii	"Fehler beim Schlie\303\237en der Ausgabedatei\000"
	.align	2
.LC2:
	.ascii	"Fehler beim Schlie\303\237en der Eingabedatei\000"
	.global	__aeabi_i2d
	.align	2
.LC3:
	.ascii	"Time needed: %.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 = 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, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #0
	bl	time
	str	r0, [fp, #-28]
	ldr	r3, .L6+4
	str	r3, [fp, #-24]
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	getparams
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	strcpy
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	strcat
	ldr	r0, [fp, #-40]
	sub	r3, fp, #32
	sub	r2, fp, #36
	ldr	r1, [fp, #-20]
	bl	getfilehandles
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r1, r2
	mov	r0, r3
	bl	reverse
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L6+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L6+12
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r0, #0
	bl	time
	mov	r2, r0
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L6+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Benutzung:\012\012  %s [-b n] <Eingabedatei> <Ausga"
	.ascii	"bedatei>\012\000"
	.text
	.align	2
	.global	getparams
	.syntax unified
	.arm
	.fpu softvfp
	.type	getparams, %function
getparams:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L9
	ldr	r3, .L13
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L13
	str	r2, [r1]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	b	.L10
.L9:
	mov	r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L13+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L13+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	optind
	.word	stderr
	.word	.LC5
	.size	getparams, .-getparams
	.section	.rodata
	.align	2
.LC6:
	.ascii	" inname: %s\012 outname : %s\012\000"
	.align	2
.LC7:
	.ascii	"Ein- und Ausgabepfad sind gleich\000"
	.align	2
.LC8:
	.ascii	"Fehler beim \303\226ffnen der Eingabedatei\000"
	.align	2
.LC9:
	.ascii	"Eingabedatei nicht gefunden\000"
	.align	2
.LC10:
	.ascii	"Error reading permissions\000"
	.align	2
.LC11:
	.ascii	"M\303\266chten Sie die bestehende Datei ersetzen?\012"
	.ascii	"\000"
	.align	2
.LC12:
	.ascii	"Thank you for using this incredible application. We"
	.ascii	" look       forward to serve you again.\000"
	.align	2
.LC13:
	.ascii	"Fehler beim \303\226ffnen der Ausgabedatei\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getfilehandles
	.syntax unified
	.arm
	.fpu softvfp
	.type	getfilehandles, %function
getfilehandles:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	str	r2, [fp, #-120]
	str	r3, [fp, #-124]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, [fp, #-116]
	ldr	r1, [fp, #-112]
	ldr	r0, .L26+4
	bl	printf
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-112]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L26+8
	bl	perror
	mov	r0, #0
	bl	exit
.L16:
	mov	r1, #0
	ldr	r0, [fp, #-112]
	bl	access
	mov	r3, r0
	cmn	r3, #1
	beq	.L17
	mov	r1, #0
	ldr	r0, [fp, #-112]
	bl	open
	mov	r2, r0
	ldr	r3, [fp, #-120]
	str	r2, [r3]
	ldr	r3, [fp, #-120]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L26+12
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	ldr	r0, .L26+16
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L26+20
	bl	perror
	ldr	r3, [fp, #-120]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r0, #1
	bl	exit
.L19:
	mov	r1, #0
	ldr	r0, [fp, #-116]
	bl	access
	mov	r3, r0
	cmn	r3, #1
	beq	.L20
	ldr	r0, .L26+24
	bl	askUsr
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #1
	bne	.L21
	ldr	r0, [fp, #-116]
	bl	remove
	ldr	r3, [fp, #-84]
	mov	r2, r3
	mov	r1, #65
	ldr	r0, [fp, #-116]
	bl	open
	mov	r2, r0
	ldr	r3, [fp, #-124]
	str	r2, [r3]
	b	.L22
.L21:
	ldr	r0, .L26+28
	bl	perror
	ldr	r3, [fp, #-120]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	exit
.L20:
	ldr	r3, [fp, #-84]
	mov	r2, r3
	mov	r1, #65
	ldr	r0, [fp, #-116]
	bl	open
	mov	r2, r0
	ldr	r3, [fp, #-124]
	str	r2, [r3]
.L22:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L25
	ldr	r0, .L26+32
	bl	perror
	ldr	r3, [fp, #-120]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r0, #1
	bl	exit
.L25:
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC14
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	getfilehandles, .-getfilehandles
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Error seeking end of Inputfile\000"
	.align	2
.LC16:
	.ascii	"Error reading inputfile.\000"
	.align	2
.LC17:
	.ascii	"Error writing outpfile\000"
	.align	2
.LC18:
	.ascii	"Programm made mess\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	reverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverse, %function
reverse:
	@ 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, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r2, #2
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-48]
	bl	lseek
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L29
	ldr	r0, .L36+4
	bl	perror
.L29:
	mov	r3, #1
	str	r3, [fp, #-36]
	ldr	ip, [fp, #-36]
	sub	r3, ip, #1
	str	r3, [fp, #-32]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-28]
	b	.L30
.L34:
	ldr	r3, [fp, #-36]
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-48]
	bl	read
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L31
	ldr	r0, .L36+8
	bl	perror
	ldr	r0, [fp, #-48]
	bl	close
	ldr	r0, [fp, #-52]
	bl	close
	mov	r0, #1
	bl	exit
.L31:
	ldr	r3, [fp, #-24]
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-52]
	bl	write
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L32
	ldr	r0, .L36+12
	bl	perror
	ldr	r0, [fp, #-48]
	bl	close
	ldr	r0, [fp, #-52]
	bl	close
	mov	r0, #1
	bl	exit
.L32:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L33
	ldr	r0, .L36+16
	bl	perror
	ldr	r0, [fp, #-48]
	bl	close
	ldr	r0, [fp, #-52]
	bl	close
	mov	r0, #1
	bl	exit
.L33:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
	mov	r2, #2
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-48]
	bl	lseek
	str	r0, [fp, #-44]
.L30:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L34
	mov	sp, r4
	nop
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC19
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	reverse, .-reverse
	.section	.rodata
	.align	2
.LC20:
	.ascii	"%s\000"
	.align	2
.LC21:
	.ascii	"Please enter [y]es or [n]o: \000"
	.align	2
.LC22:
	.ascii	"Please enter only 'y' or 'n'!\000"
	.text
	.align	2
	.global	askUsr
	.syntax unified
	.arm
	.fpu softvfp
	.type	askUsr, %function
askUsr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, .L46
	bl	printf
	ldr	r0, .L46+4
	bl	printf
.L40:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L39
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L39
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #106
	beq	.L39
	ldr	r0, .L46+12
	bl	puts
	b	.L40
.L39:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L41
	cmp	r3, #121
	bgt	.L42
	cmp	r3, #106
	beq	.L43
	cmp	r3, #110
	beq	.L44
	b	.L42
.L43:
	mov	r3, #1
	b	.L45
.L41:
	mov	r3, #1
	b	.L45
.L44:
	mov	r3, #0
	b	.L45
.L42:
	mvn	r3, #0
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC20
	.word	.LC21
	.word	stdin
	.word	.LC22
	.size	askUsr, .-askUsr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
