	.file	"158082.c"
	.intel_syntax noprefix
	.text
	.globl	N
	.data
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.long	10
	.globl	top
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.long	-1
	.section	.rodata
	.align 8
.LC0:
	.string	"enter 1 for push the element into array"
	.align 8
.LC1:
	.string	"enter 2 for pop the element from the array"
.LC2:
	.string	"enter 3 for exit"
.LC3:
	.string	"%d"
	.align 8
.LC4:
	.string	"enter the element to be pushed"
.LC5:
	.string	"element is deleted%d\n"
	.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 10
.L7:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 1
	jne	.L2
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L2:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 3
	je	.L3
	cmp	eax, 3
	jg	.L7
	cmp	eax, 1
	je	.L5
	cmp	eax, 2
	je	.L6
	jmp	.L4
.L5:
	mov	edx, DWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	push
	jmp	.L4
.L6:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pop
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L3:
	mov	edi, 0
	call	exit@PLT
.L4:
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC6:
	.string	"stack is overflow"
	.text
	.globl	push
	.type	push, @function
push:
.LFB1:
	.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR N[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR top[rip]
	cmp	edx, eax
	jne	.L10
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L10:
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	push, .-push
	.section	.rodata
.LC7:
	.string	"stack is underflow"
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB2:
	.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	QWORD PTR -24[rbp], rdi
	mov	eax, DWORD PTR top[rip]
	cmp	eax, -1
	jne	.L12
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L12:
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR top[rip]
	sub	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	pop, .-pop
	.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	"158082.c"
	.text
	.global	N
	.data
	.align	2
	.type	N, %object
	.size	N, 4
N:
	.word	10
	.global	top
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"enter 1 for push the element into array\000"
	.align	2
.LC1:
	.ascii	"enter 2 for pop the element from the array\000"
	.align	2
.LC2:
	.ascii	"enter 3 for exit\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"enter the element to be pushed\000"
	.align	2
.LC5:
	.ascii	"element is deleted%d\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #10
	str	r3, [fp, #-52]
.L7:
	ldr	r0, .L9+4
	bl	puts
	ldr	r0, .L9+8
	bl	puts
	ldr	r0, .L9+12
	bl	puts
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L9+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-60]
	cmp	r3, #1
	bne	.L2
	ldr	r0, .L9+20
	bl	puts
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L9+16
	bl	__isoc99_scanf
.L2:
	ldr	r3, [fp, #-60]
	cmp	r3, #3
	beq	.L3
	cmp	r3, #3
	bgt	.L7
	cmp	r3, #1
	beq	.L5
	cmp	r3, #2
	beq	.L6
	b	.L4
.L5:
	ldr	r2, [fp, #-56]
	sub	r3, fp, #48
	mov	r1, r2
	mov	r0, r3
	bl	push
	b	.L4
.L6:
	sub	r3, fp, #48
	mov	r0, r3
	bl	pop
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	mov	r1, r3
	ldr	r0, .L9+24
	bl	printf
	b	.L4
.L3:
	mov	r0, #0
	bl	exit
.L4:
	b	.L7
.L10:
	.align	2
.L9:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"stack is overflow\000"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L13
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L12
	ldr	r0, .L13+8
	bl	puts
	mov	r0, #0
	bl	exit
.L12:
	ldr	r3, .L13+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13+4
	str	r3, [r2]
	ldr	r3, .L13+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	N
	.word	top
	.word	.LC7
	.size	push, .-push
	.section	.rodata
	.align	2
.LC8:
	.ascii	"stack is underflow\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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]
	ldr	r3, .L18
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L18+4
	bl	puts
	mov	r0, #0
	bl	exit
.L16:
	ldr	r3, .L18
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L18
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L18
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	top
	.word	.LC8
	.size	pop, .-pop
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
