	.file	"795685.c"
	.intel_syntax noprefix
	.text
	.globl	rear
	.bss
	.align 8
	.type	rear, @object
	.size	rear, 8
rear:
	.zero	8
	.globl	front
	.align 8
	.type	front, @object
	.size	front, 8
front:
	.zero	8
	.text
	.globl	insert
	.type	insert, @function
insert:
.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	edi, 16
	call	malloc@PLT
	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 rear[rip]
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR rear[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR front[rip], rax
	jmp	.L4
.L2:
	mov	rax, QWORD PTR rear[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR rear[rip], rax
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	insert, .-insert
	.section	.rodata
.LC0:
	.string	"\nQueue is Empty"
	.text
	.globl	delete
	.type	delete, @function
delete:
.LFB7:
	.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 front[rip]
	test	rax, rax
	jne	.L6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L8
.L6:
	mov	rax, QWORD PTR front[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR front[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR front[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	delete, .-delete
	.section	.rodata
.LC1:
	.string	"Elements are"
.LC2:
	.string	"%d\n"
	.text
	.globl	display
	.type	display, @function
display:
.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, 16
	mov	rax, QWORD PTR front[rip]
	test	rax, rax
	jne	.L10
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L14
.L10:
	mov	rax, QWORD PTR front[rip]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[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	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display, .-display
	.section	.rodata
.LC3:
	.string	"\nEnter your choice"
	.align 8
.LC4:
	.string	"\n1.push\n2.pop\n3.display\n4.exit"
.LC5:
	.string	"%d"
	.align 8
.LC6:
	.string	"\nenter the element to be added"
.LC7:
	.string	"\ninvalid choice"
	.text
	.globl	main
	.type	main, @function
main:
.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 fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L22:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[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]
	cmp	eax, 4
	je	.L24
	cmp	eax, 4
	jg	.L17
	cmp	eax, 3
	je	.L18
	cmp	eax, 3
	jg	.L17
	cmp	eax, 1
	je	.L19
	cmp	eax, 2
	je	.L20
	jmp	.L17
.L19:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	insert
	jmp	.L21
.L20:
	mov	eax, 0
	call	delete
	jmp	.L21
.L18:
	mov	eax, 0
	call	display
	jmp	.L21
.L17:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L21
.L24:
	nop
.L21:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 4
	jne	.L22
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"795685.c"
	.text
	.comm	rear,4,4
	.comm	front,4,4
	.align	2
	.global	insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ 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	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [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, .L5
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r2, .L5
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r2, .L5+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L4
.L2:
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r2, .L5
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	rear
	.word	front
	.size	insert, .-insert
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Queue is Empty\000"
	.text
	.align	2
	.global	delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete, %function
delete:
	@ 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, .L11
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L11+4
	bl	puts
	b	.L10
.L8:
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L11
	str	r3, [r2]
	ldr	r0, [fp, #-8]
	bl	free
.L10:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	front
	.word	.LC0
	.size	delete, .-delete
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Elements are\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ 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, .L19
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L19+4
	bl	puts
	b	.L18
.L14:
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, .L19+8
	bl	puts
	b	.L16
.L17:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+12
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L16:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+12
	bl	printf
.L18:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	front
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	display, .-display
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012Enter your choice\000"
	.align	2
.LC4:
	.ascii	"\0121.push\0122.pop\0123.display\0124.exit\000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"\012enter the element to be added\000"
	.align	2
.LC7:
	.ascii	"\012invalid choice\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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L29:
	ldr	r0, .L32+4
	bl	puts
	ldr	r0, .L32+8
	bl	puts
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L32+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L22
.L24:
	.word	.L27
	.word	.L26
	.word	.L25
	.word	.L31
.L27:
	ldr	r0, .L32+16
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L32+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	insert
	b	.L28
.L26:
	bl	delete
	b	.L28
.L25:
	bl	display
	b	.L28
.L22:
	ldr	r0, .L32+20
	bl	puts
	b	.L28
.L31:
	nop
.L28:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	bne	.L29
	nop
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC8
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
