	.file	"268771.c"
	.intel_syntax noprefix
	.text
	.globl	data
	.bss
	.align 16
	.type	data, @object
	.size	data, 20
data:
	.zero	20
	.globl	top
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Stack Overflow "
.LC1:
	.string	"Enter the element : "
.LC2:
	.string	"%d"
	.text
	.globl	push
	.type	push, @function
push:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR top[rip]
	cmp	eax, 4
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L3
.L2:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[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 -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, data[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L3:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	push, .-push
	.section	.rodata
.LC3:
	.string	"Stack underflow"
.LC4:
	.string	"Element popped is : %d \n"
	.text
	.globl	pop
	.type	pop, @function
pop:
.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	eax, DWORD PTR top[rip]
	cmp	eax, -1
	jne	.L7
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L7:
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, data[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR top[rip]
	sub	eax, 1
	mov	DWORD PTR top[rip], eax
.L8:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	pop, .-pop
	.section	.rodata
.LC5:
	.string	"Stack is empty "
.LC6:
	.string	"Top element is : %d \n"
	.text
	.globl	peek
	.type	peek, @function
peek:
.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]
	cmp	eax, -1
	jne	.L11
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L12
.L11:
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, data[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	peek, .-peek
	.section	.rodata
.LC7:
	.string	"%d\n"
	.text
	.globl	display
	.type	display, @function
display:
.LFB3:
	.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	eax, DWORD PTR top[rip]
	cmp	eax, -1
	jne	.L15
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L16
.L15:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR top[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, data[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -4[rbp], 1
.L17:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L18
.L16:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	display, .-display
	.section	.rodata
.LC8:
	.string	"1. Push "
.LC9:
	.string	"2. Pop "
.LC10:
	.string	"3. Peek "
.LC11:
	.string	"4. Display "
.LC12:
	.string	"5. Exit "
.LC13:
	.string	"Choose your option : "
.LC14:
	.string	"Want to choose more? (Y/N) "
.LC15:
	.string	" %c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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
	mov	DWORD PTR top[rip], -1
.L21:
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 5
	ja	.L35
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L24[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L24[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L24:
	.long	.L35-.L24
	.long	.L28-.L24
	.long	.L27-.L24
	.long	.L26-.L24
	.long	.L25-.L24
	.long	.L23-.L24
	.text
.L28:
	mov	eax, 0
	call	push
	jmp	.L29
.L27:
	mov	eax, 0
	call	pop
	jmp	.L29
.L26:
	mov	eax, 0
	call	peek
	jmp	.L29
.L25:
	mov	eax, 0
	call	display
	jmp	.L29
.L23:
	mov	eax, 0
	jmp	.L33
.L35:
	nop
.L29:
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -13[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -13[rbp]
	cmp	al, 89
	je	.L21
	movzx	eax, BYTE PTR -13[rbp]
	cmp	al, 121
	jne	.L32
	jmp	.L21
.L32:
	mov	eax, 0
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"268771.c"
	.text
	.comm	data,20,4
	.comm	top,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Stack Overflow \000"
	.align	2
.LC1:
	.ascii	"Enter the element : \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L6+4
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L2
	ldr	r0, .L6+8
	bl	puts
	b	.L3
.L2:
	ldr	r0, .L6+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L6+16
	bl	__isoc99_scanf
	ldr	r3, .L6+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L6+4
	str	r3, [r2]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L6+20
	str	r2, [r1, r3, lsl #2]
.L3:
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	top
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	data
	.size	push, .-push
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Stack underflow\000"
	.align	2
.LC5:
	.ascii	"Element popped is : %d \012\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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, .L12
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L12+4
	bl	printf
	b	.L10
.L9:
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, .L12+8
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L12+12
	bl	printf
	ldr	r3, .L12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L12
	str	r3, [r2]
.L10:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	top
	.word	.LC4
	.word	data
	.word	.LC5
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Stack is empty \000"
	.align	2
.LC7:
	.ascii	"Top element is : %d \012\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, .L18
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L18+4
	bl	puts
	b	.L16
.L15:
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r2, .L18+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
.L16:
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	top
	.word	.LC6
	.word	data
	.word	.LC7
	.size	peek, .-peek
	.section	.rodata
	.align	2
.LC8:
	.ascii	"%d\012\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	r3, .L26
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L26+4
	bl	puts
	b	.L22
.L21:
	mov	r0, #10
	bl	putchar
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L23
.L24:
	ldr	r2, .L26+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L26+12
	bl	printf
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L24
.L22:
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	top
	.word	.LC6
	.word	data
	.word	.LC8
	.size	display, .-display
	.section	.rodata
	.align	2
.LC9:
	.ascii	"1. Push \000"
	.align	2
.LC10:
	.ascii	"2. Pop \000"
	.align	2
.LC11:
	.ascii	"3. Peek \000"
	.align	2
.LC12:
	.ascii	"4. Display \000"
	.align	2
.LC13:
	.ascii	"5. Exit \000"
	.align	2
.LC14:
	.ascii	"Choose your option : \000"
	.align	2
.LC15:
	.ascii	"Want to choose more? (Y/N) \000"
	.align	2
.LC16:
	.ascii	" %c\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L44+4
	mvn	r2, #0
	str	r2, [r3]
.L29:
	mov	r0, #10
	bl	putchar
	ldr	r0, .L44+8
	bl	puts
	ldr	r0, .L44+12
	bl	puts
	ldr	r0, .L44+16
	bl	puts
	ldr	r0, .L44+20
	bl	puts
	ldr	r0, .L44+24
	bl	puts
	ldr	r0, .L44+28
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L44+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L43
.L32:
	.word	.L36
	.word	.L35
	.word	.L34
	.word	.L33
	.word	.L31
.L36:
	bl	push
	b	.L37
.L35:
	bl	pop
	b	.L37
.L34:
	bl	peek
	b	.L37
.L33:
	bl	display
	b	.L37
.L31:
	mov	r3, #0
	b	.L41
.L43:
	nop
.L37:
	ldr	r0, .L44+36
	bl	printf
	sub	r3, fp, #13
	mov	r1, r3
	ldr	r0, .L44+40
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #89
	beq	.L29
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #121
	bne	.L40
	b	.L29
.L40:
	mov	r3, #0
.L41:
	ldr	r2, .L44
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC17
	.word	top
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC2
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
