	.file	"772986.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.globl	tail
	.align 8
	.type	tail, @object
	.size	tail, 8
tail:
	.zero	8
	.globl	curr
	.align 8
	.type	curr, @object
	.size	curr, 8
curr:
	.zero	8
	.globl	prev
	.align 8
	.type	prev, @object
	.size	prev, 8
prev:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"\nEnter the value you want to insert : "
.LC1:
	.string	"%i"
	.align 8
.LC2:
	.string	"\nDisplaying list in straight order : "
	.align 8
.LC3:
	.string	"\nDisplaying list in reverse order : "
	.align 8
.LC4:
	.string	"\nEnter 1 to continue else 0 to exit :"
	.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
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	jmp	.L2
.L5:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L3
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	create_node
	mov	QWORD PTR head[rip], rax
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR curr[rip], rax
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR prev[rip], rax
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR tail[rip], rax
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -32[rbp]
	mov	rbx, QWORD PTR curr[rip]
	mov	edi, eax
	call	create_node
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR curr[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR curr[rip], rax
	mov	rax, QWORD PTR curr[rip]
	mov	rdx, QWORD PTR prev[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR curr[rip]
	mov	QWORD PTR prev[rip], rax
	mov	rax, QWORD PTR curr[rip]
	mov	QWORD PTR tail[rip], rax
.L4:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	call	display_list_straight
	lea	rdi, .LC3[rip]
	call	puts@PLT
	call	display_list_reverse
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L2:
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jne	.L5
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	create_node
	.type	create_node, @function
create_node:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	edi, 24
	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 -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_node, .-create_node
	.section	.rodata
.LC5:
	.string	"%i "
	.text
	.globl	display_list_straight
	.type	display_list_straight, @function
display_list_straight:
.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 head[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[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
.L11:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display_list_straight, .-display_list_straight
	.globl	display_list_reverse
	.type	display_list_reverse, @function
display_list_reverse:
.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 tail[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L14:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	display_list_reverse, .-display_list_reverse
	.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	"772986.c"
	.text
	.global	head
	.bss
	.align	2
	.type	head, %object
	.size	head, 4
head:
	.space	4
	.global	tail
	.align	2
	.type	tail, %object
	.size	tail, 4
tail:
	.space	4
	.global	curr
	.align	2
	.type	curr, %object
	.size	curr, 4
curr:
	.space	4
	.global	prev
	.align	2
	.type	prev, %object
	.size	prev, 4
prev:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Enter the value you want to insert : \000"
	.align	2
.LC1:
	.ascii	"%i\000"
	.align	2
.LC2:
	.ascii	"\012Displaying list in straight order : \000"
	.align	2
.LC3:
	.ascii	"\012Displaying list in reverse order : \000"
	.align	2
.LC4:
	.ascii	"\012Enter 1 to continue else 0 to exit :\000"
	.align	2
.LC5:
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	b	.L2
.L5:
	ldr	r0, .L8+4
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L8+8
	bl	__isoc99_scanf
	ldr	r3, .L8+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	create_node
	mov	r3, r0
	ldr	r2, .L8+12
	str	r3, [r2]
	ldr	r3, .L8+12
	ldr	r3, [r3]
	ldr	r2, .L8+16
	str	r3, [r2]
	ldr	r3, .L8+12
	ldr	r3, [r3]
	ldr	r2, .L8+20
	str	r3, [r2]
	ldr	r3, .L8+12
	ldr	r3, [r3]
	ldr	r2, .L8+24
	str	r3, [r2]
	b	.L4
.L3:
	ldr	r3, [fp, #-24]
	ldr	r2, .L8+16
	ldr	r4, [r2]
	mov	r0, r3
	bl	create_node
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, .L8+16
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L8+16
	str	r3, [r2]
	ldr	r3, .L8+16
	ldr	r3, [r3]
	ldr	r2, .L8+20
	ldr	r2, [r2]
	str	r2, [r3, #8]
	ldr	r3, .L8+16
	ldr	r3, [r3]
	ldr	r2, .L8+20
	str	r3, [r2]
	ldr	r3, .L8+16
	ldr	r3, [r3]
	ldr	r2, .L8+24
	str	r3, [r2]
.L4:
	ldr	r0, .L8+28
	bl	puts
	bl	display_list_straight
	ldr	r0, .L8+32
	bl	puts
	bl	display_list_reverse
	ldr	r0, .L8+36
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L8+8
	bl	__isoc99_scanf
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	head
	.word	curr
	.word	prev
	.word	tail
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.align	2
	.global	create_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_node, %function
create_node:
	@ 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, #12
	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, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	create_node, .-create_node
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%i \000"
	.text
	.align	2
	.global	display_list_straight
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_list_straight, %function
display_list_straight:
	@ 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, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L13
.L14:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+4
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L14
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	head
	.word	.LC6
	.size	display_list_straight, .-display_list_straight
	.align	2
	.global	display_list_reverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_list_reverse, %function
display_list_reverse:
	@ 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, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L18
.L19:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L20+4
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L19
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	tail
	.word	.LC6
	.size	display_list_reverse, .-display_list_reverse
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
