	.file	"619404.c"
	.intel_syntax noprefix
	.text
	.globl	stack
	.bss
	.align 32
	.type	stack, @object
	.size	stack, 400
stack:
	.zero	400
	.globl	top
	.data
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.long	-1
	.section	.rodata
.LC0:
	.string	"Stack overflow"
.LC1:
	.string	"New stack is :  "
.LC2:
	.string	"%d  "
	.text
	.globl	push
	.type	push, @function
push:
.LFB6:
	.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR top[rip]
	cmp	eax, 99
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L1
.L2:
	mov	eax, DWORD PTR top[rip]
	cmp	eax, -1
	jne	.L4
	mov	DWORD PTR top[rip], 0
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, stack[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L5
.L4:
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, stack[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L5:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	eax, DWORD PTR top[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L7
	mov	edi, 10
	call	putchar@PLT
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	push, .-push
	.section	.rodata
.LC3:
	.string	"Stack is underflow"
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB7:
	.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	.L9
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L10
.L9:
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+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]
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pop, .-pop
	.globl	middle
	.type	middle, @function
middle:
.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]
	add	eax, 1
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	middle, .-middle
	.section	.rodata
.LC4:
	.string	"%d "
	.text
	.globl	deletemiddle
	.type	deletemiddle, @function
deletemiddle:
.LFB9:
	.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]
	add	eax, 1
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, stack[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, stack[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -16[rbp], 1
.L14:
	mov	eax, DWORD PTR top[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L15
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L16:
	mov	eax, DWORD PTR top[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L17
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	deletemiddle, .-deletemiddle
	.section	.rodata
	.align 8
.LC5:
	.string	"1. Push element in stack\n2. Pop element from stack\n3. find middle of stack\n4.Delete middle element of stack\n5.exit from loop\nPlz eneter ur choice"
.LC6:
	.string	"%d"
.LC7:
	.string	"Enter the item"
.LC8:
	.string	"Poped item is = %d\n"
.LC9:
	.string	"Middle item is = %d\n"
.LC10:
	.string	"wrong choice"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
.L27:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 5
	ja	.L19
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L21[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L21[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L21:
	.long	.L19-.L21
	.long	.L25-.L21
	.long	.L24-.L21
	.long	.L23-.L21
	.long	.L22-.L21
	.long	.L20-.L21
	.text
.L25:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	push
	jmp	.L26
.L24:
	mov	eax, 0
	call	pop
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L23:
	mov	eax, 0
	call	middle
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L22:
	mov	eax, 0
	call	deletemiddle
	jmp	.L26
.L20:
	mov	edi, 1
	call	exit@PLT
.L19:
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L26:
	jmp	.L27
	.cfi_endproc
.LFE10:
	.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	"619404.c"
	.text
	.comm	stack,400,4
	.global	top
	.data
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Stack overflow\000"
	.align	2
.LC1:
	.ascii	"New stack is :  \000"
	.align	2
.LC2:
	.ascii	"%d  \000"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ 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, .L8
	ldr	r3, [r3]
	cmp	r3, #99
	bne	.L2
	ldr	r0, .L8+4
	bl	puts
	b	.L1
.L2:
	ldr	r3, .L8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r1, .L8+8
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	b	.L5
.L4:
	ldr	r3, .L8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8
	str	r3, [r2]
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r1, .L8+8
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
.L5:
	ldr	r0, .L8+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r2, .L8+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L8+16
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L7
	mov	r0, #10
	bl	putchar
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	top
	.word	.LC0
	.word	stack
	.word	.LC1
	.word	.LC2
	.size	push, .-push
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Stack is underflow\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, .L13
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L13+4
	bl	puts
	mov	r3, #0
	b	.L12
.L11:
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r2, .L13+8
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, .L13
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L13
	str	r3, [r2]
	ldr	r3, [fp, #-8]
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	top
	.word	.LC3
	.word	stack
	.size	pop, .-pop
	.align	2
	.global	middle
	.syntax unified
	.arm
	.fpu softvfp
	.type	middle, %function
middle:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L17
	ldr	r3, [r3]
	add	r3, r3, #1
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, .L17+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	top
	.word	stack
	.size	middle, .-middle
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%d \000"
	.text
	.align	2
	.global	deletemiddle
	.syntax unified
	.arm
	.fpu softvfp
	.type	deletemiddle, %function
deletemiddle:
	@ 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, .L24
	ldr	r3, [r3]
	add	r3, r3, #1
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	b	.L20
.L21:
	ldr	r2, .L24+4
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, .L24+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L24+4
	ldr	r3, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r1, .L24+4
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L20:
	ldr	r3, .L24
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L21
	ldr	r0, .L24+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L22
.L23:
	ldr	r2, .L24+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L24+12
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L22:
	ldr	r3, .L24
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L23
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	top
	.word	stack
	.word	.LC1
	.word	.LC4
	.size	deletemiddle, .-deletemiddle
	.section	.rodata
	.align	2
.LC5:
	.ascii	"1. Push element in stack\0122. Pop element from sta"
	.ascii	"ck\0123. find middle of stack\0124.Delete middle el"
	.ascii	"ement of stack\0125.exit from loop\012Plz eneter ur"
	.ascii	" choice\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"Enter the item\000"
	.align	2
.LC8:
	.ascii	"Poped item is = %d\012\000"
	.align	2
.LC9:
	.ascii	"Middle item is = %d\012\000"
	.align	2
.LC10:
	.ascii	"wrong choice\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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L35:
	ldr	r0, .L37+4
	bl	puts
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L37+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L27
.L29:
	.word	.L33
	.word	.L32
	.word	.L31
	.word	.L30
	.word	.L28
.L33:
	ldr	r0, .L37+12
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L37+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	push
	b	.L34
.L32:
	bl	pop
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L37+16
	bl	printf
	b	.L34
.L31:
	bl	middle
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L37+20
	bl	printf
	b	.L34
.L30:
	bl	deletemiddle
	b	.L34
.L28:
	mov	r0, #1
	bl	exit
.L27:
	ldr	r0, .L37+24
	bl	puts
.L34:
	b	.L35
.L38:
	.align	2
.L37:
	.word	.LC11
	.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
