	.file	"6519.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Wie viele Orte moechten Sie eingeben (1-x)"
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"/!\\ Die Anzahl darf nicht kleiner als 2 sein.\n"
	.align 8
.LC3:
	.string	"Bitte geben Sie die %d. Ortsnummer (1-5) an: "
	.align 8
.LC4:
	.string	"/!\\ Ihre Eingabe (%d) liegt ausserhalb des gueltigen Bereichs (1-5)\n\n"
	.align 8
.LC5:
	.string	"Die Entfernung zwischen den %d eingegebenen Orten betraegt %d\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
	sub	rsp, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 2
	mov	DWORD PTR -104[rbp], 5
	mov	DWORD PTR -100[rbp], 9
	mov	DWORD PTR -96[rbp], 14
	mov	DWORD PTR -92[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -84[rbp], 7
	mov	DWORD PTR -80[rbp], 15
	mov	DWORD PTR -76[rbp], 27
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -60[rbp], 9
	mov	DWORD PTR -56[rbp], 23
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 12
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -120[rbp], 0
.L3:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -128[rbp]
	test	eax, eax
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L2:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 1
	jle	.L3
	mov	DWORD PTR -116[rbp], 0
	jmp	.L4
.L8:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -132[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -132[rbp]
	test	eax, eax
	jle	.L5
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, 5
	jle	.L6
.L5:
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	eax, DWORD PTR -132[rbp]
	test	eax, eax
	jg	.L7
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, 5
	jg	.L8
.L7:
	cmp	DWORD PTR -116[rbp], 0
	je	.L9
	mov	eax, DWORD PTR -132[rbp]
	cmp	DWORD PTR -124[rbp], eax
	jle	.L10
	mov	eax, DWORD PTR -132[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -112[rbp+rax*4]
	add	DWORD PTR -120[rbp], eax
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -124[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -112[rbp+rax*4]
	add	DWORD PTR -120[rbp], eax
.L9:
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -124[rbp], eax
	add	DWORD PTR -116[rbp], 1
.L4:
	mov	eax, DWORD PTR -128[rbp]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L8
	mov	eax, DWORD PTR -128[rbp]
	mov	edx, DWORD PTR -120[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	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	"6519.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Wie viele Orte moechten Sie eingeben (1-x)\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"/!\\ Die Anzahl darf nicht kleiner als 2 sein.\012\000"
	.align	2
.LC4:
	.ascii	"Bitte geben Sie die %d. Ortsnummer (1-5) an: \000"
	.align	2
.LC5:
	.ascii	"/!\\ Ihre Eingabe (%d) liegt ausserhalb des gueltig"
	.ascii	"en Bereichs (1-5)\012\012\000"
	.align	2
.LC6:
	.ascii	"Die Entfernung zwischen den %d eingegebenen Orten b"
	.ascii	"etraegt %d\012\000"
	.align	2
.LC0:
	.word	0
	.word	2
	.word	5
	.word	9
	.word	14
	.word	0
	.word	0
	.word	7
	.word	15
	.word	27
	.word	0
	.word	0
	.word	0
	.word	9
	.word	23
	.word	0
	.word	0
	.word	0
	.word	0
	.word	12
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.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 = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L13+4
	sub	r3, fp, #108
	mov	r1, r2
	mov	r2, #100
	mov	r0, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-116]
.L3:
	ldr	r0, .L13+8
	bl	printf
	sub	r3, fp, #124
	mov	r1, r3
	ldr	r0, .L13+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L13+16
	bl	puts
.L2:
	ldr	r3, [fp, #-124]
	cmp	r3, #1
	ble	.L3
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L4
.L8:
	ldr	r0, .L13+20
	bl	printf
	sub	r3, fp, #128
	mov	r1, r3
	ldr	r0, .L13+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-128]
	cmp	r3, #5
	ble	.L6
.L5:
	ldr	r3, [fp, #-128]
	mov	r1, r3
	ldr	r0, .L13+24
	bl	printf
.L6:
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bgt	.L7
	ldr	r3, [fp, #-128]
	cmp	r3, #5
	bgt	.L8
.L7:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-120]
	cmp	r2, r3
	ble	.L10
	ldr	r3, [fp, #-128]
	sub	r2, r3, #1
	ldr	r3, [fp, #-120]
	sub	r1, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-104]
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	str	r3, [fp, #-116]
	b	.L9
.L10:
	ldr	r3, [fp, #-120]
	sub	r2, r3, #1
	ldr	r3, [fp, #-128]
	sub	r1, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-104]
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	str	r3, [fp, #-116]
.L9:
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L4:
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-116]
	mov	r1, r3
	ldr	r0, .L13+28
	bl	printf
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
