	.file	"281494.c"
	.intel_syntax noprefix
	.text
	.globl	stack
	.bss
	.align 16
	.type	stack, @object
	.size	stack, 20
stack:
	.zero	20
	.globl	top
	.data
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.long	-1
	.globl	tmp
	.bss
	.align 4
	.type	tmp, @object
	.size	tmp, 4
tmp:
	.zero	4
	.globl	opt
	.align 4
	.type	opt, @object
	.size	opt, 4
opt:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"\n\t\t\t\t- \t STATIC STACK  -                       "
	.align 8
.LC1:
	.string	"\n 1. Push \n2. Pop \n3. Peek()\n 4.Exit"
.LC2:
	.string	"Choose Option >  "
.LC3:
	.string	"%d"
	.align 8
.LC4:
	.string	"\n Please choose the correct option from the above menu"
	.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
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, opt[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR opt[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:
	mov	eax, 0
	call	push
	jmp	.L7
.L6:
	mov	eax, 0
	call	pop
	jmp	.L7
.L4:
	mov	eax, 0
	call	peek
	jmp	.L7
.L2:
	mov	edi, 0
	call	exit@PLT
.L3:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L7:
	jmp	.L8
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.string	"\n                                              Status : Stack is Full"
.LC6:
	.string	"\nEnter the item : "
	.align 8
.LC7:
	.string	"\n                                              Log : Pushed item : %d"
	.text
	.globl	push
	.type	push, @function
push:
.LFB7:
	.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]
	cmp	eax, 4
	jne	.L10
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L10:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, tmp[rip]
	lea	rdi, .LC3[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 tmp[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, stack[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR tmp[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	push, .-push
	.section	.rodata
	.align 8
.LC8:
	.string	"\n                                              Status : Stack is Empty"
	.align 8
.LC9:
	.string	"\n                                              Log : Popped item : %d"
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB8:
	.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]
	cmp	eax, -1
	jne	.L13
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L13:
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[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
.L14:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	pop, .-pop
	.section	.rodata
	.align 8
.LC10:
	.string	"\n                                              Status : Top item : %d"
	.text
	.globl	peek
	.type	peek, @function
peek:
.LFB9:
	.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]
	cmp	eax, -1
	jne	.L16
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L16:
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	peek, .-peek
	.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	"281494.c"
	.text
	.comm	stack,20,4
	.global	top
	.data
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	-1
	.comm	tmp,4,4
	.comm	opt,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\011\011\011\011- \011 STATIC STACK  -         "
	.ascii	"              \000"
	.align	2
.LC1:
	.ascii	"\012 1. Push \0122. Pop \0123. Peek()\012 4.Exit\000"
	.align	2
.LC2:
	.ascii	"Choose Option >  \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"\012 Please choose the correct option from the abov"
	.ascii	"e menu\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	r0, .L10
	bl	printf
.L9:
	ldr	r0, .L10+4
	bl	printf
	ldr	r0, .L10+8
	bl	printf
	ldr	r1, .L10+12
	ldr	r0, .L10+16
	bl	__isoc99_scanf
	ldr	r3, .L10+12
	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	push
	b	.L8
.L6:
	bl	pop
	b	.L8
.L5:
	bl	peek
	b	.L8
.L3:
	mov	r0, #0
	bl	exit
.L2:
	ldr	r0, .L10+20
	bl	printf
	nop
.L8:
	b	.L9
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	opt
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\012                                              S"
	.ascii	"tatus : Stack is Full\000"
	.align	2
.LC6:
	.ascii	"\012Enter the item : \000"
	.align	2
.LC7:
	.ascii	"\012                                              L"
	.ascii	"og : Pushed item : %d\000"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L13
	ldr	r0, .L15+4
	bl	printf
	b	.L14
.L13:
	ldr	r0, .L15+8
	bl	printf
	ldr	r1, .L15+12
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	ldr	r3, .L15
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15
	str	r3, [r2]
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, .L15+12
	ldr	r2, [r2]
	ldr	r1, .L15+20
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+24
	bl	printf
.L14:
	nop
	mov	r0, r3
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	top
	.word	.LC5
	.word	.LC6
	.word	tmp
	.word	.LC3
	.word	stack
	.word	.LC7
	.size	push, .-push
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012                                              S"
	.ascii	"tatus : Stack is Empty\000"
	.align	2
.LC9:
	.ascii	"\012                                              L"
	.ascii	"og : Popped item : %d\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L20
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L20+4
	bl	printf
	b	.L19
.L18:
	ldr	r3, .L20
	ldr	r3, [r3]
	ldr	r2, .L20+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L20+12
	bl	printf
	ldr	r3, .L20
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L20
	str	r3, [r2]
.L19:
	nop
	mov	r0, r3
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	top
	.word	.LC8
	.word	stack
	.word	.LC9
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012                                              S"
	.ascii	"tatus : Top item : %d\000"
	.text
	.align	2
	.global	peek
	.syntax unified
	.arm
	.fpu softvfp
	.type	peek, %function
peek:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L25
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L25+4
	bl	printf
	b	.L24
.L23:
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r2, .L25+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L25+12
	bl	printf
.L24:
	nop
	mov	r0, r3
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	top
	.word	.LC8
	.word	stack
	.word	.LC10
	.size	peek, .-peek
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
