	.file	"362613.c"
	.intel_syntax noprefix
	.text
	.globl	warten
	.bss
	.align 8
	.type	warten, @object
	.size	warten, 8
warten:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Kein freier Speicher!"
	.text
	.globl	alloc
	.type	alloc, @function
alloc:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	alloc, .-alloc
	.section	.rodata
	.align 8
.LC1:
	.string	"Die Warteschlange wurde erzeugt"
	.text
	.globl	qinit
	.type	qinit, @function
qinit:
.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 warten[rip], 0
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	qinit, .-qinit
	.globl	isempty
	.type	isempty, @function
isempty:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR warten[rip]
	test	rax, rax
	jne	.L7
	mov	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	isempty, .-isempty
	.section	.rodata
.LC2:
	.string	"Liste ist leer"
.LC3:
	.string	"%d\n"
	.text
	.globl	printQueue
	.type	printQueue, @function
printQueue:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR warten[rip]
	mov	QWORD PTR -8[rbp], rax
	call	isempty
	test	eax, eax
	je	.L12
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L9
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L12:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L15
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	nop
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printQueue, .-printQueue
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	lea	rax, warten[rip]
	mov	QWORD PTR -16[rbp], rax
	call	isempty
	test	eax, eax
	je	.L19
	mov	edi, 16
	call	alloc
	mov	QWORD PTR warten[rip], rax
	mov	rax, QWORD PTR warten[rip]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR warten[rip]
	mov	QWORD PTR 8[rax], 0
	jmp	.L16
.L20:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 8
	mov	QWORD PTR -16[rbp], rax
.L19:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L20
	mov	edi, 16
	call	alloc
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	nop
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	call	isempty
	test	eax, eax
	je	.L22
	mov	eax, -1
	jmp	.L23
.L22:
	mov	rax, QWORD PTR warten[rip]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L24
	mov	rax, QWORD PTR warten[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR warten[rip], 0
	mov	eax, 1
	jmp	.L23
.L24:
	mov	rax, QWORD PTR warten[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR warten[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR warten[rip], rax
	mov	eax, 1
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	dequeue, .-dequeue
	.section	.rodata
	.align 8
.LC4:
	.string	"\nHauptmenue:\n1. Anfuegen eines Elementes\n2. Loeschen und Ausgeben des ersten Elementes \n3. Ausgeben der Warteschlange\n4. Beenden des Programmes\n\nBitte geben Sie die Ziffer der gewuenschten Funktion ein:"
.LC5:
	.string	"%d"
.LC6:
	.string	"Bitte Key eingeben:"
	.align 8
.LC7:
	.string	"Das Element wurde der Warteschlange angehangen\n"
.LC8:
	.string	"Die Liste war bereits Leer\n"
.LC9:
	.string	"Die Liste ist jetzt Leer\n"
	.align 8
.LC10:
	.string	"Das erste Element ist nun: %d\n\n"
.LC11:
	.string	"Liste der Elemente"
.LC12:
	.string	"Programm wird beendet"
	.align 8
.LC13:
	.string	"Bitte eine valide Nummer eingeben\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	qinit
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
.L35:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 4
	je	.L26
	cmp	eax, 4
	jg	.L27
	cmp	eax, 3
	je	.L28
	cmp	eax, 3
	jg	.L27
	cmp	eax, 1
	je	.L29
	cmp	eax, 2
	je	.L30
	jmp	.L27
.L29:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	enqueue
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L31
.L30:
	call	dequeue
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L32
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L31
.L32:
	call	isempty
	test	eax, eax
	je	.L34
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L31
.L34:
	mov	rax, QWORD PTR warten[rip]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L31
.L28:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	call	printQueue
	jmp	.L31
.L26:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L31:
	jmp	.L35
	.cfi_endproc
.LFE12:
	.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	"362613.c"
	.text
	.comm	warten,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Kein freier Speicher!\000"
	.text
	.align	2
	.global	alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc, %function
alloc:
	@ 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	r3, [fp, #-16]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	alloc, .-alloc
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Die Warteschlange wurde erzeugt\000"
	.text
	.align	2
	.global	qinit
	.syntax unified
	.arm
	.fpu softvfp
	.type	qinit, %function
qinit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L8
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L8+4
	bl	puts
	nop
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	warten
	.word	.LC1
	.size	qinit, .-qinit
	.align	2
	.global	isempty
	.syntax unified
	.arm
	.fpu softvfp
	.type	isempty, %function
isempty:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
	mov	r3, #1
	str	r3, [fp, #-8]
.L11:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L14:
	.align	2
.L13:
	.word	warten
	.size	isempty, .-isempty
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Liste ist leer\000"
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	printQueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	printQueue, %function
printQueue:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	bl	isempty
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L22+4
	bl	puts
	b	.L15
.L19:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L22+8
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L22+8
	bl	printf
.L21:
	nop
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	warten
	.word	.LC2
	.word	.LC3
	.size	printQueue, .-printQueue
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ 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	r3, .L29
	str	r3, [fp, #-12]
	bl	isempty
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	mov	r0, #8
	bl	alloc
	mov	r3, r0
	ldr	r2, .L29
	str	r3, [r2]
	ldr	r3, .L29
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L29
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	b	.L24
.L28:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r3, r3, #4
	str	r3, [fp, #-12]
.L27:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L28
	mov	r0, #8
	bl	alloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	warten
	.size	enqueue, .-enqueue
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	isempty
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	mvn	r3, #0
	b	.L33
.L32:
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L34
	ldr	r3, .L35
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L35
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #1
	b	.L33
.L34:
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, .L35
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r2, .L35
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	mov	r3, #1
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	warten
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012Hauptmenue:\0121. Anfuegen eines Elementes\0122"
	.ascii	". Loeschen und Ausgeben des ersten Elementes \0123."
	.ascii	" Ausgeben der Warteschlange\0124. Beenden des Progr"
	.ascii	"ammes\012\012Bitte geben Sie die Ziffer der gewuens"
	.ascii	"chten Funktion ein:\000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"Bitte Key eingeben:\000"
	.align	2
.LC7:
	.ascii	"Das Element wurde der Warteschlange angehangen\012\000"
	.align	2
.LC8:
	.ascii	"Die Liste war bereits Leer\012\000"
	.align	2
.LC9:
	.ascii	"Die Liste ist jetzt Leer\012\000"
	.align	2
.LC10:
	.ascii	"Das erste Element ist nun: %d\012\012\000"
	.align	2
.LC11:
	.ascii	"Liste der Elemente\000"
	.align	2
.LC12:
	.ascii	"Programm wird beendet\000"
	.align	2
.LC13:
	.ascii	"Bitte eine valide Nummer eingeben\012\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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	qinit
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
.L48:
	ldr	r0, .L50+4
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L50+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L38
.L40:
	.word	.L43
	.word	.L42
	.word	.L41
	.word	.L39
.L43:
	ldr	r0, .L50+12
	bl	puts
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L50+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	enqueue
	ldr	r0, .L50+16
	bl	puts
	b	.L44
.L42:
	bl	dequeue
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L45
	ldr	r0, .L50+20
	bl	puts
	b	.L44
.L45:
	bl	isempty
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	ldr	r0, .L50+24
	bl	puts
	b	.L44
.L47:
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L50+32
	bl	printf
	b	.L44
.L41:
	ldr	r0, .L50+36
	bl	puts
	bl	printQueue
	b	.L44
.L39:
	ldr	r0, .L50+40
	bl	puts
	mov	r0, #1
	bl	exit
.L38:
	ldr	r0, .L50+44
	bl	puts
.L44:
	b	.L48
.L51:
	.align	2
.L50:
	.word	.LC14
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	warten
	.word	.LC10
	.word	.LC11
	.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
