	.file	"248580390.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter the number of elements in array"
.LC1:
	.string	"%d"
.LC2:
	.string	"Enter the elements of array"
	.align 8
.LC3:
	.string	"\nEnter the element to be inserted"
	.align 8
.LC4:
	.string	"\nEnter the position at which the element is to be inserted"
.LC5:
	.string	"\nStack Overflow"
.LC6:
	.string	"\nInvalid location entered"
.LC7:
	.string	"\nArray after insertion: "
.LC8:
	.string	"%d "
	.align 8
.LC9:
	.string	"\n\nEnter the position at which deletion is to be performed"
.LC10:
	.string	"\nArray after deletion: "
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 848
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -848[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -836[rbp], 0
	jmp	.L2
.L3:
	lea	rdx, -816[rbp]
	mov	eax, DWORD PTR -836[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -836[rbp], 1
.L2:
	mov	eax, DWORD PTR -848[rbp]
	cmp	DWORD PTR -836[rbp], eax
	jl	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -844[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -840[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -848[rbp]
	cmp	eax, 19
	jle	.L4
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L5
.L4:
	mov	edx, DWORD PTR -840[rbp]
	mov	eax, DWORD PTR -848[rbp]
	cmp	edx, eax
	jle	.L6
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -848[rbp]
	mov	DWORD PTR -832[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -832[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -816[rbp+rax*4]
	mov	eax, DWORD PTR -832[rbp]
	cdqe
	mov	DWORD PTR -816[rbp+rax*4], edx
	sub	DWORD PTR -832[rbp], 1
.L7:
	mov	eax, DWORD PTR -840[rbp]
	cmp	DWORD PTR -832[rbp], eax
	jg	.L8
	mov	eax, DWORD PTR -840[rbp]
	mov	edx, DWORD PTR -844[rbp]
	cdqe
	mov	DWORD PTR -816[rbp+rax*4], edx
	mov	eax, DWORD PTR -848[rbp]
	add	eax, 1
	mov	DWORD PTR -848[rbp], eax
.L5:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -828[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -828[rbp]
	cdqe
	mov	eax, DWORD PTR -816[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -828[rbp], 1
.L9:
	mov	eax, DWORD PTR -848[rbp]
	cmp	DWORD PTR -828[rbp], eax
	jl	.L10
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rax, -840[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -840[rbp]
	mov	eax, DWORD PTR -848[rbp]
	cmp	edx, eax
	jle	.L11
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -840[rbp]
	mov	DWORD PTR -824[rbp], eax
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -824[rbp]
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR -816[rbp+rax*4]
	mov	eax, DWORD PTR -824[rbp]
	cdqe
	mov	DWORD PTR -816[rbp+rax*4], edx
	add	DWORD PTR -824[rbp], 1
.L13:
	mov	eax, DWORD PTR -848[rbp]
	sub	eax, 1
	cmp	DWORD PTR -824[rbp], eax
	jl	.L14
	mov	eax, DWORD PTR -848[rbp]
	sub	eax, 1
	mov	DWORD PTR -848[rbp], eax
.L12:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -820[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -820[rbp]
	cdqe
	mov	eax, DWORD PTR -816[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -820[rbp], 1
.L15:
	mov	eax, DWORD PTR -848[rbp]
	cmp	DWORD PTR -820[rbp], eax
	jl	.L16
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"248580390.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the number of elements in array\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter the elements of array\000"
	.align	2
.LC3:
	.ascii	"\012Enter the element to be inserted\000"
	.align	2
.LC4:
	.ascii	"\012Enter the position at which the element is to b"
	.ascii	"e inserted\000"
	.align	2
.LC5:
	.ascii	"\012Stack Overflow\000"
	.align	2
.LC6:
	.ascii	"\012Invalid location entered\000"
	.align	2
.LC7:
	.ascii	"\012Array after insertion: \000"
	.align	2
.LC8:
	.ascii	"%d \000"
	.align	2
.LC9:
	.ascii	"\012\012Enter the position at which deletion is to "
	.ascii	"be performed\000"
	.align	2
.LC10:
	.ascii	"\012Array after deletion: \000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 840
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #840
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L18+4
	bl	puts
	sub	r3, fp, #840
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r0, .L18+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-828]
	b	.L2
.L3:
	sub	r2, fp, #808
	ldr	r3, [fp, #-828]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-828]
	add	r3, r3, #1
	str	r3, [fp, #-828]
.L2:
	ldr	r3, [fp, #-840]
	ldr	r2, [fp, #-828]
	cmp	r2, r3
	blt	.L3
	ldr	r0, .L18+16
	bl	puts
	sub	r3, fp, #836
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r0, .L18+20
	bl	puts
	sub	r3, fp, #832
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-840]
	cmp	r3, #19
	ble	.L4
	ldr	r0, .L18+24
	bl	puts
	b	.L5
.L4:
	ldr	r2, [fp, #-832]
	ldr	r3, [fp, #-840]
	cmp	r2, r3
	ble	.L6
	ldr	r0, .L18+28
	bl	puts
	b	.L5
.L6:
	ldr	r3, [fp, #-840]
	str	r3, [fp, #-824]
	b	.L7
.L8:
	ldr	r3, [fp, #-824]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-804]
	ldr	r3, [fp, #-824]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-804]
	ldr	r3, [fp, #-824]
	sub	r3, r3, #1
	str	r3, [fp, #-824]
.L7:
	ldr	r3, [fp, #-832]
	ldr	r2, [fp, #-824]
	cmp	r2, r3
	bgt	.L8
	ldr	r3, [fp, #-832]
	ldr	r2, [fp, #-836]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-804]
	ldr	r3, [fp, #-840]
	add	r3, r3, #1
	str	r3, [fp, #-840]
.L5:
	ldr	r0, .L18+32
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-820]
	b	.L9
.L10:
	ldr	r3, [fp, #-820]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-804]
	mov	r1, r3
	ldr	r0, .L18+36
	bl	printf
	ldr	r3, [fp, #-820]
	add	r3, r3, #1
	str	r3, [fp, #-820]
.L9:
	ldr	r3, [fp, #-840]
	ldr	r2, [fp, #-820]
	cmp	r2, r3
	blt	.L10
	ldr	r0, .L18+40
	bl	puts
	sub	r3, fp, #832
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r2, [fp, #-832]
	ldr	r3, [fp, #-840]
	cmp	r2, r3
	ble	.L11
	ldr	r0, .L18+28
	bl	puts
	b	.L12
.L11:
	ldr	r3, [fp, #-832]
	str	r3, [fp, #-816]
	b	.L13
.L14:
	ldr	r3, [fp, #-816]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-804]
	ldr	r3, [fp, #-816]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-804]
	ldr	r3, [fp, #-816]
	add	r3, r3, #1
	str	r3, [fp, #-816]
.L13:
	ldr	r3, [fp, #-840]
	sub	r3, r3, #1
	ldr	r2, [fp, #-816]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-840]
	sub	r3, r3, #1
	str	r3, [fp, #-840]
.L12:
	ldr	r0, .L18+44
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-812]
	b	.L15
.L16:
	ldr	r3, [fp, #-812]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-804]
	mov	r1, r3
	ldr	r0, .L18+36
	bl	printf
	ldr	r3, [fp, #-812]
	add	r3, r3, #1
	str	r3, [fp, #-812]
.L15:
	ldr	r3, [fp, #-840]
	ldr	r2, [fp, #-812]
	cmp	r2, r3
	blt	.L16
	mov	r0, #10
	bl	putchar
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
