	.file	"77778.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter data to push"
.LC1:
	.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 40[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 40[rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	push, .-push
	.section	.rodata
.LC2:
	.string	"%d\n"
	.text
	.globl	disp
	.type	disp, @function
disp:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	disp, .-disp
	.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
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 40[rax]
	lea	ecx, -1[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 40[rdx], ecx
	mov	rdx, QWORD PTR -8[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	pop, .-pop
	.section	.rodata
	.align 8
.LC3:
	.string	"1.Push\n2.Display\n3.Pop\nEnter choice: "
.LC4:
	.string	"Popped data is %d\n"
.LC5:
	.string	"%c"
.LC6:
	.string	"To continue press y..."
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -69[rbp], 121
	mov	DWORD PTR -24[rbp], -1
	jmp	.L9
.L16:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -68[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, 3
	je	.L10
	cmp	eax, 3
	jg	.L11
	cmp	eax, 1
	je	.L12
	cmp	eax, 2
	je	.L13
	jmp	.L11
.L12:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	push
	jmp	.L14
.L13:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	disp
	jmp	.L14
.L10:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pop
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L11:
	mov	eax, 1
	jmp	.L17
.L14:
	lea	rax, -69[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -69[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L9:
	movzx	eax, BYTE PTR -69[rbp]
	cmp	al, 121
	je	.L16
	mov	eax, 0
.L17:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"77778.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter data to push\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.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, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L3+4
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L3+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #40]
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r1, [r3, r2, lsl #2]
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	push, .-push
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	disp
	.syntax unified
	.arm
	.fpu softvfp
	.type	disp, %function
disp:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L7
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC3
	.size	disp, .-disp
	.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
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #40]
	sub	r1, r3, #1
	ldr	r2, [fp, #-8]
	str	r1, [r2, #40]
	ldr	r2, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC4:
	.ascii	"1.Push\0122.Display\0123.Pop\012Enter choice: \000"
	.align	2
.LC5:
	.ascii	"Popped data is %d\012\000"
	.align	2
.LC6:
	.ascii	"%c\000"
	.align	2
.LC7:
	.ascii	"To continue press y...\000"
	.align	2
.LC8:
	.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, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #121
	strb	r3, [fp, #-57]
	mvn	r3, #0
	str	r3, [fp, #-12]
	b	.L13
.L20:
	ldr	r0, .L23+4
	bl	printf
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-56]
	cmp	r3, #3
	beq	.L14
	cmp	r3, #3
	bgt	.L15
	cmp	r3, #1
	beq	.L16
	cmp	r3, #2
	beq	.L17
	b	.L15
.L16:
	sub	r3, fp, #52
	mov	r0, r3
	bl	push
	b	.L18
.L17:
	sub	r3, fp, #52
	mov	r0, r3
	bl	disp
	b	.L18
.L14:
	sub	r3, fp, #52
	mov	r0, r3
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L23+12
	bl	printf
	b	.L18
.L15:
	mov	r3, #1
	b	.L21
.L18:
	sub	r3, fp, #57
	mov	r1, r3
	ldr	r0, .L23+16
	bl	__isoc99_scanf
	ldr	r0, .L23+20
	bl	printf
	sub	r3, fp, #57
	mov	r1, r3
	ldr	r0, .L23+16
	bl	__isoc99_scanf
.L13:
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L20
	mov	r3, #0
.L21:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC8
	.word	.LC4
	.word	.LC1
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
