	.file	"97547.c"
	.intel_syntax noprefix
	.text
	.globl	c
	.bss
	.type	c, @object
	.size	c, 1
c:
	.zero	1
	.text
	.globl	Createqueue
	.type	Createqueue, @function
Createqueue:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	edi, 16
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Createqueue, .-Createqueue
	.globl	Emptyqueue
	.type	Emptyqueue, @function
Emptyqueue:
.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	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jne	.L3
	mov	eax, 1
	jmp	.L4
.L3:
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Emptyqueue, .-Emptyqueue
	.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -28[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 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	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	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	Emptyqueue
	test	eax, eax
	je	.L7
	mov	eax, 0
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Dequeue, .-Dequeue
	.section	.rodata
.LC0:
	.string	"Empty queue!"
.LC1:
	.string	"The char deQueued is : %c\n"
.LC2:
	.string	"The Queue is :"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	Createqueue
	jmp	.L10
.L18:
	movzx	eax, BYTE PTR c[rip]
	movsx	eax, al
	cmp	eax, 64
	je	.L11
	cmp	eax, 64
	jg	.L12
	cmp	eax, 10
	je	.L10
	cmp	eax, 48
	jne	.L12
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	Emptyqueue
	test	eax, eax
	je	.L14
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L10
.L14:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	Dequeue
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L11:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	Emptyqueue
	test	eax, eax
	je	.L15
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L10
.L15:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L17:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	Dequeue
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L16:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	Emptyqueue
	test	eax, eax
	je	.L17
	mov	edi, 10
	call	putchar@PLT
	jmp	.L10
.L12:
	movzx	eax, BYTE PTR c[rip]
	movsx	edx, al
	lea	rax, -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	Enqueue
.L10:
	call	getchar@PLT
	mov	BYTE PTR c[rip], al
	movzx	eax, BYTE PTR c[rip]
	cmp	al, 35
	jne	.L18
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"97547.c"
	.text
	.comm	c,1,1
	.align	2
	.global	Createqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	Createqueue, %function
Createqueue:
	@ 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]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Createqueue, .-Createqueue
	.align	2
	.global	Emptyqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	Emptyqueue, %function
Emptyqueue:
	@ 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]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L3
	mov	r3, #1
	b	.L4
.L3:
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	Emptyqueue, .-Emptyqueue
	.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]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-17]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.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]
	ldr	r0, [fp, #-16]
	bl	Emptyqueue
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	mov	r3, #0
	b	.L8
.L7:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Dequeue, .-Dequeue
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Empty queue!\000"
	.align	2
.LC1:
	.ascii	"The char deQueued is : %c\012\000"
	.align	2
.LC2:
	.ascii	"The Queue is :\000"
	.align	2
.LC3:
	.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, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r0, r3
	bl	Createqueue
	b	.L10
.L18:
	ldr	r3, .L21+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	beq	.L11
	cmp	r3, #64
	bgt	.L12
	cmp	r3, #10
	beq	.L10
	cmp	r3, #48
	bne	.L12
	sub	r3, fp, #16
	mov	r0, r3
	bl	Emptyqueue
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r0, .L21+8
	bl	puts
	b	.L10
.L14:
	sub	r3, fp, #16
	mov	r0, r3
	bl	Dequeue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L21+12
	bl	printf
	b	.L10
.L11:
	sub	r3, fp, #16
	mov	r0, r3
	bl	Emptyqueue
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, .L21+8
	bl	puts
	b	.L10
.L15:
	ldr	r0, .L21+16
	bl	printf
	b	.L16
.L17:
	sub	r3, fp, #16
	mov	r0, r3
	bl	Dequeue
	mov	r3, r0
	mov	r0, r3
	bl	putchar
.L16:
	sub	r3, fp, #16
	mov	r0, r3
	bl	Emptyqueue
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	mov	r0, #10
	bl	putchar
	b	.L10
.L12:
	ldr	r3, .L21+4
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	Enqueue
.L10:
	bl	getchar
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, .L21+4
	strb	r2, [r3]
	ldr	r3, .L21+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L18
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC3
	.word	c
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
