	.file	"727864.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"? "
.LC1:
	.string	"%s"
.LC2:
	.string	"%u"
.LC3:
	.string	"Enter a character: "
.LC4:
	.string	"\n%c"
.LC5:
	.string	"%c has been dequeued.\n"
.LC6:
	.string	"Invalid choice.\n"
.LC7:
	.string	"End of run."
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	call	instructions
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L8:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 1
	je	.L3
	cmp	eax, 2
	je	.L4
	jmp	.L11
.L3:
	lea	rsi, .LC3[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -29[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -29[rbp]
	movsx	edx, al
	lea	rcx, -16[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	enqueue
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	printQueue
	jmp	.L6
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	isEmpty
	test	eax, eax
	jne	.L7
	lea	rdx, -16[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	dequeue
	mov	BYTE PTR -29[rbp], al
	movzx	eax, BYTE PTR -29[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	printQueue
	jmp	.L6
.L11:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	call	instructions
	nop
.L6:
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L2:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 3
	jne	.L8
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC8:
	.string	"Enter your choice:\n   1 to add an item to the queue\n   2 to remove an item from the queue\n   3 to end"
	.text
	.globl	instructions
	.type	instructions, @function
instructions:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	instructions, .-instructions
	.section	.rodata
	.align 8
.LC9:
	.string	"%c not inserted. No memory available.\n"
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB8:
	.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	eax, edx
	mov	BYTE PTR -36[rbp], al
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -36[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	isEmpty
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L16:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L18
.L14:
	movsx	eax, BYTE PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L20
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], 0
.L20:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	movzx	eax, BYTE PTR -9[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dequeue, .-dequeue
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB10:
	.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
	cmp	QWORD PTR -8[rbp], 0
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	isEmpty, .-isEmpty
	.section	.rodata
.LC10:
	.string	"Queue is empty.\n"
.LC11:
	.string	"The queue is:"
.LC12:
	.string	"%c --> "
.LC13:
	.string	"NULL\n"
	.text
	.globl	printQueue
	.type	printQueue, @function
printQueue:
.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
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L25
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L29
.L25:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC12[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
.L27:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L28
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L29:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	printQueue, .-printQueue
	.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	"727864.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"? \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"%u\000"
	.align	2
.LC3:
	.ascii	"Enter a character: \000"
	.align	2
.LC4:
	.ascii	"\012%c\000"
	.align	2
.LC5:
	.ascii	"%c has been dequeued.\012\000"
	.align	2
.LC6:
	.ascii	"Invalid choice.\012\000"
	.align	2
.LC7:
	.ascii	"End of run.\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	bl	instructions
	ldr	r1, .L12+4
	ldr	r0, .L12+8
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L12+12
	bl	__isoc99_scanf
	b	.L2
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L3
	cmp	r3, #2
	beq	.L4
	b	.L11
.L3:
	ldr	r1, .L12+16
	ldr	r0, .L12+8
	bl	printf
	sub	r3, fp, #21
	mov	r1, r3
	ldr	r0, .L12+20
	bl	__isoc99_scanf
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	sub	r1, fp, #16
	sub	r3, fp, #20
	mov	r0, r3
	bl	enqueue
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	printQueue
	b	.L6
.L4:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	sub	r2, fp, #16
	sub	r3, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	dequeue
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L12+24
	bl	printf
.L7:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	printQueue
	b	.L6
.L11:
	ldr	r0, .L12+28
	bl	puts
	bl	instructions
	nop
.L6:
	ldr	r1, .L12+4
	ldr	r0, .L12+8
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L12+12
	bl	__isoc99_scanf
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bne	.L8
	ldr	r0, .L12+32
	bl	puts
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Enter your choice:\012   1 to add an item to the qu"
	.ascii	"eue\012   2 to remove an item from the queue\012   "
	.ascii	"3 to end\000"
	.text
	.align	2
	.global	instructions
	.syntax unified
	.arm
	.fpu softvfp
	.type	instructions, %function
instructions:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L15
	bl	puts
	nop
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC9
	.size	instructions, .-instructions
	.section	.rodata
	.align	2
.LC10:
	.ascii	"%c not inserted. No memory available.\012\000"
	.text
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ 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]
	mov	r3, r2
	strb	r3, [fp, #-21]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-21]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L20
.L19:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
.L20:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L22
.L18:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L23
	bl	printf
.L22:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC10
	.size	enqueue, .-enqueue
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3]
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3]
.L26:
	ldr	r0, [fp, #-8]
	bl	free
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	dequeue, .-dequeue
	.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
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isEmpty, .-isEmpty
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Queue is empty.\012\000"
	.align	2
.LC12:
	.ascii	"The queue is:\000"
	.align	2
.LC13:
	.ascii	"%c --> \000"
	.align	2
.LC14:
	.ascii	"NULL\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
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L31
	ldr	r0, .L36
	bl	puts
	b	.L35
.L31:
	ldr	r0, .L36+4
	bl	puts
	b	.L33
.L34:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L36+8
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L33:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L34
	ldr	r0, .L36+12
	bl	puts
.L35:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	printQueue, .-printQueue
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
