	.file	"599145.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 40
a:
	.zero	40
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	elem
	.align 4
	.type	elem, @object
	.size	elem, 4
elem:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	pos
	.align 4
	.type	pos, @object
	.size	pos, 4
pos:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"=> 1. Enter the size of the array"
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Enter the elements in the array:"
	.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
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rsi, n[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create, .-create
	.section	.rodata
.LC3:
	.string	"The array elements are:"
.LC4:
	.string	"%d\t"
	.text
	.globl	display
	.type	display, @function
display:
.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
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	display, .-display
	.section	.rodata
	.align 8
.LC5:
	.string	"=> 1. Enter the position to be inserted"
.LC6:
	.string	"=> 1. Enter the element"
	.text
	.globl	insert
	.type	insert, @function
insert:
.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
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rsi, pos[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rsi, elem[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR n[rip]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, ecx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, a[rip]
	mov	DWORD PTR [rcx+rdx], eax
	sub	DWORD PTR -4[rbp], 1
.L8:
	mov	eax, DWORD PTR pos[rip]
	cmp	DWORD PTR -4[rbp], eax
	jge	.L9
	mov	edx, DWORD PTR pos[rip]
	mov	eax, DWORD PTR elem[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, a[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR n[rip]
	add	eax, 1
	mov	DWORD PTR n[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	insert, .-insert
	.section	.rodata
	.align 8
.LC7:
	.string	"Enter  position of element to be deleted:"
.LC8:
	.string	"Deleted element is %d\n"
	.text
	.globl	delete
	.type	delete, @function
delete:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rsi, pos[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR pos[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR elem[rip], eax
	mov	eax, DWORD PTR pos[rip]
	mov	DWORD PTR i[rip], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	edx, DWORD PTR i[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rcx+rax]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, a[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L11:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jl	.L12
	mov	eax, DWORD PTR n[rip]
	sub	eax, 1
	mov	DWORD PTR n[rip], eax
	mov	eax, DWORD PTR elem[rip]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	delete, .-delete
	.section	.rodata
.LC9:
	.string	"\n\n______MENU_____"
	.align 8
.LC10:
	.string	"1.Create\n2.Display\n3.Insert\n4.Delete\n5.Exit"
.LC11:
	.string	"Enter Your Choice:"
.LC12:
	.string	"INVALID CHOICE"
	.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
	jmp	.L14
.L22:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[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, 5
	ja	.L15
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L17[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L17[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L17:
	.long	.L15-.L17
	.long	.L21-.L17
	.long	.L20-.L17
	.long	.L19-.L17
	.long	.L18-.L17
	.long	.L16-.L17
	.text
.L21:
	mov	eax, 0
	call	create
	jmp	.L14
.L20:
	mov	eax, 0
	call	display
	jmp	.L14
.L19:
	mov	eax, 0
	call	insert
	jmp	.L14
.L18:
	mov	eax, 0
	call	delete
	jmp	.L14
.L16:
	mov	edi, 0
	call	exit@PLT
.L15:
	lea	rdi, .LC12[rip]
	call	puts@PLT
.L14:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jne	.L22
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"599145.c"
	.text
	.comm	a,40,4
	.comm	n,4,4
	.comm	elem,4,4
	.comm	i,4,4
	.comm	pos,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"=> 1. Enter the size of the array\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter the elements in the array:\000"
	.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
	ldr	r0, .L4
	bl	puts
	ldr	r1, .L4+4
	ldr	r0, .L4+8
	bl	__isoc99_scanf
	ldr	r0, .L4+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, .L4+16
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L4+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, .L4+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	n
	.word	.LC1
	.word	.LC2
	.word	a
	.size	create, .-create
	.section	.rodata
	.align	2
.LC3:
	.ascii	"The array elements are:\000"
	.align	2
.LC4:
	.ascii	"%d\011\000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ 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	r0, .L9
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r2, .L9+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L9+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, .L9+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L8
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	a
	.word	.LC4
	.word	n
	.size	display, .-display
	.section	.rodata
	.align	2
.LC5:
	.ascii	"=> 1. Enter the position to be inserted\000"
	.align	2
.LC6:
	.ascii	"=> 1. Enter the element\000"
	.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	r0, .L14
	bl	puts
	ldr	r1, .L14+4
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	ldr	r0, .L14+12
	bl	puts
	ldr	r1, .L14+16
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	ldr	r3, .L14+20
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L12
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r1, .L14+24
	ldr	r2, [fp, #-8]
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L14+24
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L13
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r2, .L14+16
	ldr	r2, [r2]
	ldr	r1, .L14+24
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L14+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14+20
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	pos
	.word	.LC1
	.word	.LC6
	.word	elem
	.word	n
	.word	a
	.size	insert, .-insert
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Enter  position of element to be deleted:\000"
	.align	2
.LC8:
	.ascii	"Deleted element is %d\012\000"
	.text
	.align	2
	.global	delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete, %function
delete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L19
	bl	puts
	ldr	r1, .L19+4
	ldr	r0, .L19+8
	bl	__isoc99_scanf
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r2, .L19+12
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L19+16
	str	r3, [r2]
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r2, .L19+20
	str	r3, [r2]
	b	.L17
.L18:
	ldr	r3, .L19+20
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, .L19+20
	ldr	r3, [r3]
	ldr	r1, .L19+12
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L19+12
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L19+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19+20
	str	r3, [r2]
.L17:
	ldr	r3, .L19+20
	ldr	r2, [r3]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L18
	ldr	r3, .L19+24
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L19+24
	str	r3, [r2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+28
	bl	printf
	nop
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC7
	.word	pos
	.word	.LC1
	.word	a
	.word	elem
	.word	i
	.word	n
	.word	.LC8
	.size	delete, .-delete
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\012\012______MENU_____\000"
	.align	2
.LC10:
	.ascii	"1.Create\0122.Display\0123.Insert\0124.Delete\0125."
	.ascii	"Exit\000"
	.align	2
.LC11:
	.ascii	"Enter Your Choice:\000"
	.align	2
.LC12:
	.ascii	"INVALID CHOICE\000"
	.align	2
.LC13:
	.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
	b	.L22
.L30:
	ldr	r0, .L33+4
	bl	puts
	ldr	r0, .L33+8
	bl	puts
	ldr	r0, .L33+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L33+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L23
.L25:
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L26
	.word	.L24
.L29:
	bl	create
	b	.L22
.L28:
	bl	display
	b	.L22
.L27:
	bl	insert
	b	.L22
.L26:
	bl	delete
	b	.L22
.L24:
	mov	r0, #0
	bl	exit
.L23:
	ldr	r0, .L33+20
	bl	puts
.L22:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L30
	mov	r3, #0
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC13
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC1
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
