	.file	"925213.c"
	.intel_syntax noprefix
	.text
	.globl	firstNode
	.bss
	.align 8
	.type	firstNode, @object
	.size	firstNode, 8
firstNode:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Input the number of nodes : "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"\nData entered in the list are :"
	.align 8
.LC3:
	.string	"Input the data to be inserted : "
	.align 8
.LC4:
	.string	"\nAfter insertion the new list are :\n "
	.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
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR firstNode[rip], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	createCircularLinkedList
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 0
	call	displayCircularLinkedList
	lea	rdi, .LC3[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	insertNodeAtLastPosition
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	displayCircularLinkedList
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"Input data for node 1 : "
.LC6:
	.string	"Input data for node %d : "
	.text
	.globl	createCircularLinkedList
	.type	createCircularLinkedList, @function
createCircularLinkedList:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 0
	jle	.L9
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR firstNode[rip], rax
	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	rax, QWORD PTR firstNode[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR firstNode[rip]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR firstNode[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -28[rbp], 2
	jmp	.L6
.L7:
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC6[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 -16[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	add	DWORD PTR -28[rbp], 1
.L6:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L7
	mov	rdx, QWORD PTR firstNode[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
.L9:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	createCircularLinkedList, .-createCircularLinkedList
	.globl	insertNodeAtLastPosition
	.type	insertNodeAtLastPosition, @function
insertNodeAtLastPosition:
.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, 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 firstNode[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR firstNode[rip]
	cmp	rdx, rax
	jne	.L12
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rdx, QWORD PTR firstNode[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	insertNodeAtLastPosition, .-insertNodeAtLastPosition
	.section	.rodata
	.align 8
.LC7:
	.string	"No data found in the list yet."
.LC8:
	.string	"Data %d = %d\n"
	.text
	.globl	displayCircularLinkedList
	.type	displayCircularLinkedList, @function
displayCircularLinkedList:
.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	DWORD PTR -12[rbp], 1
	mov	rax, QWORD PTR firstNode[rip]
	test	rax, rax
	jne	.L14
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L14:
	mov	rax, QWORD PTR firstNode[rip]
	mov	QWORD PTR -8[rbp], rax
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	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
	add	DWORD PTR -12[rbp], 1
	mov	rax, QWORD PTR firstNode[rip]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L16
.L17:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	displayCircularLinkedList, .-displayCircularLinkedList
	.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	"925213.c"
	.text
	.comm	firstNode,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Input the number of nodes : \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012Data entered in the list are :\000"
	.align	2
.LC3:
	.ascii	"Input the data to be inserted : \000"
	.align	2
.LC4:
	.ascii	"\012After insertion the new list are :\012 \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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L4+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L4+8
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L4+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	createCircularLinkedList
	ldr	r0, .L4+16
	bl	puts
	bl	displayCircularLinkedList
	ldr	r0, .L4+20
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L4+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	insertNodeAtLastPosition
	ldr	r0, .L4+24
	bl	printf
	bl	displayCircularLinkedList
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC5
	.word	firstNode
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Input data for node 1 : \000"
	.align	2
.LC7:
	.ascii	"Input data for node %d : \000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createCircularLinkedList
	.syntax unified
	.arm
	.fpu softvfp
	.type	createCircularLinkedList, %function
createCircularLinkedList:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L11
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L12+4
	str	r2, [r3]
	ldr	r0, .L12+8
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L12+12
	bl	__isoc99_scanf
	ldr	r3, .L12+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L12+4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L8
.L9:
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-20]
	ldr	r0, .L12+16
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L12+12
	bl	__isoc99_scanf
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L8:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L9
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
.L11:
	nop
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC8
	.word	firstNode
	.word	.LC6
	.word	.LC1
	.word	.LC7
	.size	createCircularLinkedList, .-createCircularLinkedList
	.align	2
	.global	insertNodeAtLastPosition
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertNodeAtLastPosition, %function
insertNodeAtLastPosition:
	@ 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, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L15
.L16:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
.L15:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L16
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	firstNode
	.size	insertNodeAtLastPosition, .-insertNodeAtLastPosition
	.section	.rodata
	.align	2
.LC9:
	.ascii	"No data found in the list yet.\000"
	.align	2
.LC10:
	.ascii	"Data %d = %d\012\000"
	.text
	.align	2
	.global	displayCircularLinkedList
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayCircularLinkedList, %function
displayCircularLinkedList:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r3, .L24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L24+4
	bl	printf
	b	.L23
.L20:
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L22:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L24+8
	bl	printf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, .L24
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L22
.L23:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	firstNode
	.word	.LC9
	.word	.LC10
	.size	displayCircularLinkedList, .-displayCircularLinkedList
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
