	.file	"989470.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.globl	newNode
	.align 8
	.type	newNode, @object
	.size	newNode, 8
newNode:
	.zero	8
	.globl	tail
	.align 8
	.type	tail, @object
	.size	tail, 8
tail:
	.zero	8
	.globl	ptr
	.align 8
	.type	ptr, @object
	.size	ptr, 8
ptr:
	.zero	8
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.globl	temp
	.align 8
	.type	temp, @object
	.size	temp, 8
temp:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Heap Memory full!"
.LC1:
	.string	"\nEnter the data : "
.LC2:
	.string	"%d"
	.text
	.globl	createNewNode
	.type	createNewNode, @function
createNewNode:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR newNode[rip], rax
	mov	rax, QWORD PTR newNode[rip]
	test	rax, rax
	jne	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR newNode[rip]
	mov	QWORD PTR 16[rax], 0
	mov	rdx, QWORD PTR newNode[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR [rdx], rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR newNode[rip]
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR newNode[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	createNewNode, .-createNewNode
	.globl	InsertEnd
	.type	InsertEnd, @function
InsertEnd:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	createNewNode
	mov	QWORD PTR newNode[rip], rax
	mov	rax, QWORD PTR tail[rip]
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR newNode[rip]
	mov	QWORD PTR tail[rip], rax
	mov	rax, QWORD PTR tail[rip]
	mov	QWORD PTR head[rip], rax
.L5:
	mov	rax, QWORD PTR tail[rip]
	mov	rdx, QWORD PTR newNode[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR newNode[rip]
	mov	rdx, QWORD PTR tail[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR newNode[rip]
	mov	QWORD PTR tail[rip], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	InsertEnd, .-InsertEnd
	.globl	reverseDLL
	.type	reverseDLL, @function
reverseDLL:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR p[rip], rax
	jmp	.L7
.L8:
	mov	rax, QWORD PTR p[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR temp[rip], rax
	mov	rdx, QWORD PTR p[rip]
	mov	rax, QWORD PTR p[rip]
	mov	rdx, QWORD PTR 16[rdx]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR p[rip]
	mov	rdx, QWORD PTR temp[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR p[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR p[rip], rax
.L7:
	mov	rax, QWORD PTR p[rip]
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR temp[rip]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR temp[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR head[rip], rax
.L10:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	reverseDLL, .-reverseDLL
	.section	.rodata
	.align 8
.LC3:
	.string	"\nCurrent Double linked list:\n "
.LC4:
	.string	"%d->"
	.text
	.globl	display
	.type	display, @function
display:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR p[rip], rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR p[rip], rax
	jmp	.L12
.L13:
	mov	rax, QWORD PTR p[rip]
	mov	eax, DWORD PTR 8[rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR p[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR p[rip], rax
.L12:
	mov	rax, QWORD PTR p[rip]
	test	rax, rax
	jne	.L13
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	display, .-display
	.section	.rodata
	.align 8
.LC5:
	.string	"\n1.Add data\n2.Reverse DLL\n3.Display\nEnter anyything else to exit"
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L19:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 3
	je	.L15
	cmp	eax, 3
	jg	.L19
	cmp	eax, 1
	je	.L17
	cmp	eax, 2
	je	.L18
	jmp	.L16
.L17:
	mov	eax, 0
	call	InsertEnd
	jmp	.L16
.L18:
	mov	eax, 0
	call	reverseDLL
	jmp	.L16
.L15:
	mov	eax, 0
	call	display
	nop
.L16:
	jmp	.L19
	.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	"989470.c"
	.text
	.global	head
	.bss
	.align	2
	.type	head, %object
	.size	head, 4
head:
	.space	4
	.global	newNode
	.align	2
	.type	newNode, %object
	.size	newNode, 4
newNode:
	.space	4
	.global	tail
	.align	2
	.type	tail, %object
	.size	tail, 4
tail:
	.space	4
	.global	ptr
	.align	2
	.type	ptr, %object
	.size	ptr, 4
ptr:
	.space	4
	.global	p
	.align	2
	.type	p, %object
	.size	p, 4
p:
	.space	4
	.global	temp
	.align	2
	.type	temp, %object
	.size	temp, 4
temp:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Heap Memory full!\000"
	.align	2
.LC1:
	.ascii	"\012Enter the data : \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.text
	.align	2
	.global	createNewNode
	.syntax unified
	.arm
	.fpu softvfp
	.type	createNewNode, %function
createNewNode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L4
	str	r2, [r3]
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L4+4
	bl	printf
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r2, .L4
	ldr	r2, [r2]
	ldr	r3, [r3, #8]
	str	r3, [r2]
	ldr	r0, .L4+8
	bl	printf
	ldr	r3, .L4
	ldr	r3, [r3]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L4+12
	bl	__isoc99_scanf
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r0, r3
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	newNode
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	createNewNode, .-createNewNode
	.align	2
	.global	InsertEnd
	.syntax unified
	.arm
	.fpu softvfp
	.type	InsertEnd, %function
InsertEnd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	createNewNode
	mov	r3, r0
	ldr	r2, .L8
	str	r3, [r2]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, .L8+4
	str	r3, [r2]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r2, .L8+8
	str	r3, [r2]
.L7:
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r2, .L8
	ldr	r2, [r2]
	str	r2, [r3, #8]
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, .L8+4
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, .L8+4
	str	r3, [r2]
	nop
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	newNode
	.word	tail
	.word	head
	.size	InsertEnd, .-InsertEnd
	.align	2
	.global	reverseDLL
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverseDLL, %function
reverseDLL:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, .L15+4
	str	r3, [r2]
	b	.L11
.L12:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, .L15+8
	str	r3, [r2]
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, .L15+4
	ldr	r3, [r3]
	ldr	r2, [r2, #8]
	str	r2, [r3]
	ldr	r3, .L15+4
	ldr	r3, [r3]
	ldr	r2, .L15+8
	ldr	r2, [r2]
	str	r2, [r3, #8]
	ldr	r3, .L15+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, .L15+4
	str	r3, [r2]
.L11:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, .L15
	str	r3, [r2]
.L14:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L16:
	.align	2
.L15:
	.word	head
	.word	p
	.word	temp
	.size	reverseDLL, .-reverseDLL
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012Current Double linked list:\012 \000"
	.align	2
.LC4:
	.ascii	"%d->\000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L20
	ldr	r3, [r3]
	ldr	r2, .L20+4
	str	r3, [r2]
	ldr	r0, .L20+8
	bl	printf
	ldr	r3, .L20
	ldr	r3, [r3]
	ldr	r2, .L20+4
	str	r3, [r2]
	b	.L18
.L19:
	ldr	r3, .L20+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L20+12
	bl	printf
	ldr	r3, .L20+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L20+4
	str	r3, [r2]
.L18:
	ldr	r3, .L20+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	nop
	nop
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	head
	.word	p
	.word	.LC3
	.word	.LC4
	.size	display, .-display
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\0121.Add data\0122.Reverse DLL\0123.Display\012Ent"
	.ascii	"er anyything else to exit\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L27:
	ldr	r0, .L29+4
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L29+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	beq	.L23
	cmp	r3, #3
	bgt	.L27
	cmp	r3, #1
	beq	.L25
	cmp	r3, #2
	beq	.L26
	b	.L24
.L25:
	bl	InsertEnd
	b	.L24
.L26:
	bl	reverseDLL
	b	.L24
.L23:
	bl	display
	nop
.L24:
	b	.L27
.L30:
	.align	2
.L29:
	.word	.LC6
	.word	.LC5
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
