	.file	"151704386.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter the number of nodes you want to create-> "
.LC1:
	.string	"%d"
.LC2:
	.string	"Memory is not allocated"
.LC3:
	.string	"Enter data for node 1: "
.LC4:
	.string	"Memory not allocated"
.LC5:
	.string	"Enter data node for %d: "
	.text
	.globl	createList
	.type	createList, @function
createList:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR head[rip], rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[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	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L8
.L2:
	lea	rdi, .LC3[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]
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -28[rbp], 1
	jmp	.L4
.L6:
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L5
	lea	rdi, .LC4[rip]
	call	puts@PLT
	nop
	jmp	.L8
.L5:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC5[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	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	add	DWORD PTR -28[rbp], 1
.L4:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L6
.L8:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	createList, .-createList
	.section	.rodata
.LC6:
	.string	"\nSuccessfully reversed list"
	.text
	.globl	revreseList
	.type	revreseList, @function
revreseList:
.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 head[rip]
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR head[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR head[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR head[rip], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR head[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR head[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -8[rbp], rax
.L11:
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR head[rip], rax
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	revreseList, .-revreseList
	.section	.rodata
.LC7:
	.string	"List is empty"
.LC8:
	.string	"%d\n"
	.text
	.globl	displayRes
	.type	displayRes, @function
displayRes:
.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]
	test	rax, rax
	jne	.L15
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L15:
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC8[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
.L17:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L18
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	displayRes, .-displayRes
	.section	.rodata
	.align 8
.LC9:
	.string	".......................\nOriginal list "
	.align 8
.LC10:
	.string	".......................\nReverse list "
	.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
	mov	eax, 0
	call	createList
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, 0
	call	displayRes
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, 0
	call	revreseList
	mov	eax, 0
	call	displayRes
	mov	eax, 0
	pop	rbp
	.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	"151704386.c"
	.text
	.comm	head,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the number of nodes you want to create-> \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Memory is not allocated\000"
	.align	2
.LC3:
	.ascii	"Enter data for node 1: \000"
	.align	2
.LC4:
	.ascii	"Memory not allocated\000"
	.align	2
.LC5:
	.ascii	"Enter data node for %d: \000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createList
	.syntax unified
	.arm
	.fpu softvfp
	.type	createList, %function
createList:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L9+4
	str	r2, [r3]
	ldr	r0, .L9+8
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L9+12
	bl	__isoc99_scanf
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L9+16
	bl	puts
	b	.L8
.L2:
	ldr	r0, .L9+20
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L9+12
	bl	__isoc99_scanf
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L4
.L6:
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L9+24
	bl	puts
	nop
	b	.L8
.L5:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L9+28
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L9+12
	bl	__isoc99_scanf
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L6
.L8:
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC6
	.word	head
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	createList, .-createList
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\012Successfully reversed list\000"
	.text
	.align	2
	.global	revreseList
	.syntax unified
	.arm
	.fpu softvfp
	.type	revreseList, %function
revreseList:
	@ 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, .L16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L16
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #4]
	b	.L13
.L14:
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L16
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L13:
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	ldr	r2, .L16
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r0, .L16+4
	bl	puts
.L15:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	head
	.word	.LC7
	.size	revreseList, .-revreseList
	.section	.rodata
	.align	2
.LC8:
	.ascii	"List is empty\000"
	.align	2
.LC9:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	displayRes
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayRes, %function
displayRes:
	@ 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, .L23
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	ldr	r0, .L23+4
	bl	printf
	b	.L18
.L19:
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L21
.L22:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+8
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L22
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	head
	.word	.LC8
	.word	.LC9
	.size	displayRes, .-displayRes
	.section	.rodata
	.align	2
.LC10:
	.ascii	".......................\012Original list \000"
	.align	2
.LC11:
	.ascii	".......................\012Reverse list \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	createList
	ldr	r0, .L27
	bl	puts
	bl	displayRes
	ldr	r0, .L27+4
	bl	puts
	bl	revreseList
	bl	displayRes
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
