	.file	"162644370.c"
	.intel_syntax noprefix
	.text
	.globl	arr
	.bss
	.align 32
	.type	arr, @object
	.size	arr, 400
arr:
	.zero	400
	.globl	choice
	.align 4
	.type	choice, @object
	.size	choice, 4
choice:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	top
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter the size of Array size.(Here max size is 100):"
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"\n\t 1.Insert\n\t 2.Peep\n\t 3.Displaydeck\n\t 4.Stopping"
.LC3:
	.string	"\n Enter the Choice:"
.LC4:
	.string	"Stopping"
.LC5:
	.string	"Please Enter a Valid choice"
	.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
	mov	DWORD PTR top[rip], -1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, n[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, choice[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR choice[rip]
	cmp	eax, 4
	je	.L2
	cmp	eax, 4
	jg	.L3
	cmp	eax, 3
	je	.L4
	cmp	eax, 3
	jg	.L3
	cmp	eax, 1
	je	.L5
	cmp	eax, 2
	je	.L6
	jmp	.L3
.L5:
	call	insert
	jmp	.L7
.L6:
	call	peep
	jmp	.L7
.L4:
	call	displaydeck
	jmp	.L7
.L2:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L7
.L3:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L7:
	mov	eax, DWORD PTR choice[rip]
	cmp	eax, 4
	jne	.L8
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC6:
	.string	"Array space is completed"
	.align 8
.LC7:
	.string	" Enter a value to be inserted:"
	.text
	.globl	insert
	.type	insert, @function
insert:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR n[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR top[rip]
	cmp	edx, eax
	jg	.L11
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L13
.L11:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, x[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	edx, DWORD PTR top[rip]
	mov	eax, DWORD PTR x[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, arr[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L13:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	insert, .-insert
	.section	.rodata
.LC8:
	.string	"Array is empty"
.LC9:
	.string	"The  elements is %d\n"
	.text
	.globl	peep
	.type	peep, @function
peep:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR top[rip]
	test	eax, eax
	jns	.L15
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L17
.L15:
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR top[rip]
	sub	eax, 1
	mov	DWORD PTR top[rip], eax
.L17:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	peep, .-peep
	.section	.rodata
.LC10:
	.string	"Display Deck-->\t"
.LC11:
	.string	"\n%d"
.LC12:
	.string	"The array is empty"
	.text
	.globl	displaydeck
	.type	displaydeck, @function
displaydeck:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR top[rip]
	test	eax, eax
	js	.L19
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR top[rip]
	mov	DWORD PTR i[rip], eax
	jmp	.L20
.L21:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR i[rip]
	sub	eax, 1
	mov	DWORD PTR i[rip], eax
.L20:
	mov	eax, DWORD PTR i[rip]
	test	eax, eax
	jns	.L21
	mov	edi, 10
	call	putchar@PLT
	jmp	.L23
.L19:
	lea	rdi, .LC12[rip]
	call	puts@PLT
.L23:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	displaydeck, .-displaydeck
	.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	"162644370.c"
	.text
	.comm	arr,400,4
	.comm	choice,4,4
	.comm	n,4,4
	.comm	top,4,4
	.comm	x,4,4
	.comm	i,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the size of Array size.(Here max size is 100)"
	.ascii	":\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012\011 1.Insert\012\011 2.Peep\012\011 3.Displayd"
	.ascii	"eck\012\011 4.Stopping\000"
	.align	2
.LC3:
	.ascii	"\012 Enter the Choice:\000"
	.align	2
.LC4:
	.ascii	"Stopping\000"
	.align	2
.LC5:
	.ascii	"Please Enter a Valid choice\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
	ldr	r3, .L11
	mvn	r2, #0
	str	r2, [r3]
	ldr	r0, .L11+4
	bl	printf
	ldr	r1, .L11+8
	ldr	r0, .L11+12
	bl	__isoc99_scanf
	ldr	r0, .L11+16
	bl	printf
.L9:
	ldr	r0, .L11+20
	bl	printf
	ldr	r1, .L11+24
	ldr	r0, .L11+12
	bl	__isoc99_scanf
	ldr	r3, .L11+24
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L7:
	bl	insert
	b	.L8
.L6:
	bl	peep
	b	.L8
.L5:
	bl	displaydeck
	b	.L8
.L3:
	ldr	r0, .L11+28
	bl	puts
	b	.L8
.L2:
	ldr	r0, .L11+32
	bl	puts
.L8:
	ldr	r3, .L11+24
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L9
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	top
	.word	.LC0
	.word	n
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	choice
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Array space is completed\000"
	.align	2
.LC7:
	.ascii	" Enter a value to be inserted:\000"
	.text
	.align	2
	.global	insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L17
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L14
	ldr	r0, .L17+8
	bl	puts
	b	.L16
.L14:
	ldr	r0, .L17+12
	bl	printf
	ldr	r1, .L17+16
	ldr	r0, .L17+20
	bl	__isoc99_scanf
	ldr	r3, .L17+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+4
	str	r3, [r2]
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, .L17+16
	ldr	r2, [r2]
	ldr	r1, .L17+24
	str	r2, [r1, r3, lsl #2]
.L16:
	nop
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	n
	.word	top
	.word	.LC6
	.word	.LC7
	.word	x
	.word	.LC1
	.word	arr
	.size	insert, .-insert
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Array is empty\000"
	.align	2
.LC9:
	.ascii	"The  elements is %d\012\000"
	.text
	.align	2
	.global	peep
	.syntax unified
	.arm
	.fpu softvfp
	.type	peep, %function
peep:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L23
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L23+4
	bl	puts
	b	.L22
.L20:
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r2, .L23+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L23+12
	bl	printf
	ldr	r3, .L23
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L23
	str	r3, [r2]
.L22:
	nop
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	top
	.word	.LC8
	.word	arr
	.word	.LC9
	.size	peep, .-peep
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Display Deck-->\011\000"
	.align	2
.LC11:
	.ascii	"\012%d\000"
	.align	2
.LC12:
	.ascii	"The array is empty\000"
	.text
	.align	2
	.global	displaydeck
	.syntax unified
	.arm
	.fpu softvfp
	.type	displaydeck, %function
displaydeck:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L31
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L26
	ldr	r0, .L31+4
	bl	printf
	ldr	r3, .L31
	ldr	r3, [r3]
	ldr	r2, .L31+8
	str	r3, [r2]
	b	.L27
.L28:
	ldr	r3, .L31+8
	ldr	r3, [r3]
	ldr	r2, .L31+12
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L31+16
	bl	printf
	ldr	r3, .L31+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L31+8
	str	r3, [r2]
.L27:
	ldr	r3, .L31+8
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L28
	mov	r0, #10
	bl	putchar
	b	.L30
.L26:
	ldr	r0, .L31+20
	bl	puts
.L30:
	nop
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	top
	.word	.LC10
	.word	i
	.word	arr
	.word	.LC11
	.word	.LC12
	.size	displaydeck, .-displaydeck
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
