	.file	"98575905.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.globl	ptr
	.align 8
	.type	ptr, @object
	.size	ptr, 8
ptr:
	.zero	8
	.globl	tail
	.align 8
	.type	tail, @object
	.size	tail, 8
tail:
	.zero	8
	.globl	newNode
	.align 8
	.type	newNode, @object
	.size	newNode, 8
newNode:
	.zero	8
	.text
	.globl	create
	.type	create, @function
create:
.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	DWORD PTR -4[rbp], edi
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR newNode[rip], rax
	mov	rax, QWORD PTR newNode[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR newNode[rip]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR newNode[rip]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR newNode[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create, .-create
	.globl	swap
	.type	swap, @function
swap:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR 8[rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	swap, .-swap
	.globl	sort
	.type	sort, @function
sort:
.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 ptr[rip], rax
.L8:
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR ptr[rip], rax
	jmp	.L5
.L7:
	mov	rax, QWORD PTR ptr[rip]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	jle	.L6
	mov	rax, QWORD PTR ptr[rip]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR ptr[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	DWORD PTR -4[rbp], 1
.L6:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR ptr[rip], rax
.L5:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L7
	cmp	DWORD PTR -4[rbp], 0
	jne	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sort, .-sort
	.section	.rodata
.LC0:
	.string	"\nEnter number: "
.LC1:
	.string	"%d"
	.text
	.globl	insert
	.type	insert, @function
insert:
.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
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	create
	mov	QWORD PTR newNode[rip], rax
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR newNode[rip]
	mov	QWORD PTR head[rip], rax
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR tail[rip], rax
	jmp	.L13
.L10:
	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 tail[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR tail[rip], rax
	mov	eax, 0
	call	sort
.L13:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	insert, .-insert
	.section	.rodata
	.align 8
.LC2:
	.string	"\nCurrent Double linked list:\n "
.LC3:
	.string	"%d->"
	.text
	.globl	display
	.type	display, @function
display:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR ptr[rip], rax
	jmp	.L15
.L16:
	mov	rax, QWORD PTR ptr[rip]
	mov	eax, DWORD PTR 8[rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR ptr[rip], rax
.L15:
	mov	rax, QWORD PTR ptr[rip]
	test	rax, rax
	jne	.L16
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	display, .-display
	.section	.rodata
	.align 8
.LC4:
	.string	"\n1.Insert\n2.Display\nEnter anything else to exit: "
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L22:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	je	.L18
	cmp	eax, 2
	je	.L19
	jmp	.L24
.L18:
	mov	eax, 0
	call	insert
	jmp	.L21
.L19:
	mov	eax, 0
	call	display
	jmp	.L21
.L24:
	mov	edi, 0
	call	exit@PLT
.L21:
	jmp	.L22
	.cfi_endproc
.LFE11:
	.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	"98575905.c"
	.text
	.global	head
	.bss
	.align	2
	.type	head, %object
	.size	head, 4
head:
	.space	4
	.global	ptr
	.align	2
	.type	ptr, %object
	.size	ptr, 4
ptr:
	.space	4
	.global	tail
	.align	2
	.type	tail, %object
	.size	tail, 4
tail:
	.space	4
	.global	newNode
	.align	2
	.type	newNode, %object
	.size	newNode, 4
newNode:
	.space	4
	.text
	.align	2
	.global	create
	.syntax unified
	.arm
	.fpu softvfp
	.type	create, %function
create:
	@ 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, #12
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L3
	str	r2, [r3]
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	newNode
	.size	create, .-create
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.align	2
	.global	sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort, %function
sort:
	@ 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]
	ldr	r2, .L11+4
	str	r3, [r2]
.L10:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, .L11+4
	str	r3, [r2]
	b	.L7
.L9:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r3, .L11+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	ble	.L8
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, .L11+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r1, r3
	mov	r0, r2
	bl	swap
	mov	r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L11+4
	str	r3, [r2]
.L7:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	head
	.word	ptr
	.size	sort, .-sort
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Enter number: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ 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, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L18+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	create
	mov	r3, r0
	ldr	r2, .L18+12
	str	r3, [r2]
	ldr	r3, .L18+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L18+12
	ldr	r3, [r3]
	ldr	r2, .L18+16
	str	r3, [r2]
	ldr	r3, .L18+16
	ldr	r3, [r3]
	ldr	r2, .L18+20
	str	r3, [r2]
	b	.L17
.L14:
	ldr	r3, .L18+20
	ldr	r3, [r3]
	ldr	r2, .L18+12
	ldr	r2, [r2]
	str	r2, [r3, #8]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	ldr	r2, .L18+20
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L18+20
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L18+20
	str	r3, [r2]
	bl	sort
.L17:
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	newNode
	.word	head
	.word	tail
	.size	insert, .-insert
	.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	r0, .L23
	bl	printf
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, .L23+8
	str	r3, [r2]
	b	.L21
.L22:
	ldr	r3, .L23+8
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L23+12
	bl	printf
	ldr	r3, .L23+8
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L23+8
	str	r3, [r2]
.L21:
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	nop
	nop
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC3
	.word	head
	.word	ptr
	.word	.LC4
	.size	display, .-display
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\0121.Insert\0122.Display\012Enter anything else to"
	.ascii	" 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, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L30:
	ldr	r0, .L33+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L33+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L26
	cmp	r3, #2
	beq	.L27
	b	.L32
.L26:
	bl	insert
	b	.L29
.L27:
	bl	display
	b	.L29
.L32:
	mov	r0, #0
	bl	exit
.L29:
	b	.L30
.L34:
	.align	2
.L33:
	.word	.LC6
	.word	.LC5
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
