	.file	"168892695.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\n\nStack Implementation using Array"
.LC1:
	.string	"1. Push"
.LC2:
	.string	"2. Pop"
.LC3:
	.string	"3. Peek"
.LC4:
	.string	"4. IsEmpty"
.LC5:
	.string	"5. IsFull"
.LC6:
	.string	"6. Display"
.LC7:
	.string	"7. Size"
.LC8:
	.string	"8. Exit"
.LC9:
	.string	"\nEnter your choice: "
.LC10:
	.string	"%d"
.LC11:
	.string	"Enter the item to be pushed: "
.LC12:
	.string	"Popped item: %d\n"
.LC13:
	.string	"Top item: %d\n"
.LC14:
	.string	"Stack is empty"
.LC15:
	.string	"Stack is not empty"
.LC16:
	.string	"Stack is full"
.LC17:
	.string	"Stack is not full"
.LC18:
	.string	"Content of the stack: "
.LC19:
	.string	"Size of the stack: %d\n"
.LC20:
	.string	"Exiting..."
.LC21:
	.string	"Wrong choice"
	.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, 432
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -428[rbp], -1
.L19:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -420[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -420[rbp]
	cmp	eax, 8
	ja	.L2
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L2-.L4
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L11:
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -424[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -424[rbp]
	lea	rcx, -428[rbp]
	lea	rax, -416[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	push
	jmp	.L12
.L10:
	lea	rdx, -428[rbp]
	lea	rax, -416[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pop
	mov	DWORD PTR -424[rbp], eax
	mov	eax, DWORD PTR -424[rbp]
	cmp	eax, -1
	je	.L21
	mov	eax, DWORD PTR -424[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L21
.L9:
	mov	edx, DWORD PTR -428[rbp]
	lea	rax, -416[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	peek
	mov	DWORD PTR -424[rbp], eax
	mov	eax, DWORD PTR -424[rbp]
	cmp	eax, -1
	je	.L22
	mov	eax, DWORD PTR -424[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
.L8:
	mov	edx, DWORD PTR -428[rbp]
	lea	rax, -416[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	isEmpty
	test	eax, eax
	je	.L15
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L12
.L15:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L12
.L7:
	mov	edx, DWORD PTR -428[rbp]
	lea	rax, -416[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	isFull
	test	eax, eax
	je	.L17
	lea	rdi, .LC16[rip]
	call	puts@PLT
	jmp	.L12
.L17:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L12
.L6:
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -428[rbp]
	lea	rax, -416[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	display
	jmp	.L12
.L5:
	mov	eax, DWORD PTR -428[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L3:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	jmp	.L12
.L2:
	lea	rdi, .LC21[rip]
	call	puts@PLT
	jmp	.L12
.L21:
	nop
	jmp	.L12
.L22:
	nop
.L12:
	mov	eax, DWORD PTR -420[rbp]
	cmp	eax, 8
	jne	.L19
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	isFull
	.type	isFull, @function
isFull:
.LFB1:
	.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	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], 99
	jne	.L24
	mov	eax, 1
	jmp	.L25
.L24:
	mov	eax, 0
.L25:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	isFull, .-isFull
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.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	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], -1
	jne	.L27
	mov	eax, 1
	jmp	.L28
.L27:
	mov	eax, 0
.L28:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	isEmpty, .-isEmpty
	.globl	push
	.type	push, @function
push:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	isFull
	test	eax, eax
	je	.L30
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, 1
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	push, .-push
	.globl	pop
	.type	pop, @function
pop:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	isEmpty
	test	eax, eax
	je	.L33
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L34
.L33:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	lea	ecx, -1[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	DWORD PTR [rdx], ecx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	pop, .-pop
	.globl	peek
	.type	peek, @function
peek:
.LFB5:
	.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	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	isEmpty
	test	eax, eax
	je	.L36
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L37
.L36:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	peek, .-peek
	.section	.rodata
.LC22:
	.string	"%d "
	.text
	.globl	display
	.type	display, @function
display:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	isEmpty
	test	eax, eax
	je	.L39
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L40
.L39:
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -4[rbp], 1
.L41:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L42
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 1
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	display, .-display
	.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	"168892695.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\012Stack Implementation using Array\000"
	.align	2
.LC1:
	.ascii	"1. Push\000"
	.align	2
.LC2:
	.ascii	"2. Pop\000"
	.align	2
.LC3:
	.ascii	"3. Peek\000"
	.align	2
.LC4:
	.ascii	"4. IsEmpty\000"
	.align	2
.LC5:
	.ascii	"5. IsFull\000"
	.align	2
.LC6:
	.ascii	"6. Display\000"
	.align	2
.LC7:
	.ascii	"7. Size\000"
	.align	2
.LC8:
	.ascii	"8. Exit\000"
	.align	2
.LC9:
	.ascii	"\012Enter your choice: \000"
	.align	2
.LC10:
	.ascii	"%d\000"
	.align	2
.LC11:
	.ascii	"Enter the item to be pushed: \000"
	.align	2
.LC12:
	.ascii	"Popped item: %d\012\000"
	.align	2
.LC13:
	.ascii	"Top item: %d\012\000"
	.align	2
.LC14:
	.ascii	"Stack is empty\000"
	.align	2
.LC15:
	.ascii	"Stack is not empty\000"
	.align	2
.LC16:
	.ascii	"Stack is full\000"
	.align	2
.LC17:
	.ascii	"Stack is not full\000"
	.align	2
.LC18:
	.ascii	"Content of the stack: \000"
	.align	2
.LC19:
	.ascii	"Size of the stack: %d\012\000"
	.align	2
.LC20:
	.ascii	"Exiting...\000"
	.align	2
.LC21:
	.ascii	"Wrong choice\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 416
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #416
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-420]
.L19:
	ldr	r0, .L23+4
	bl	puts
	ldr	r0, .L23+8
	bl	puts
	ldr	r0, .L23+12
	bl	puts
	ldr	r0, .L23+16
	bl	puts
	ldr	r0, .L23+20
	bl	puts
	ldr	r0, .L23+24
	bl	puts
	ldr	r0, .L23+28
	bl	puts
	ldr	r0, .L23+32
	bl	puts
	ldr	r0, .L23+36
	bl	puts
	ldr	r0, .L23+40
	bl	printf
	sub	r3, fp, #412
	mov	r1, r3
	ldr	r0, .L23+44
	bl	__isoc99_scanf
	ldr	r3, [fp, #-412]
	sub	r3, r3, #1
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L11:
	ldr	r0, .L23+48
	bl	printf
	sub	r3, fp, #416
	mov	r1, r3
	ldr	r0, .L23+44
	bl	__isoc99_scanf
	ldr	r2, [fp, #-416]
	sub	r1, fp, #420
	sub	r3, fp, #408
	mov	r0, r3
	bl	push
	b	.L12
.L10:
	sub	r2, fp, #420
	sub	r3, fp, #408
	mov	r1, r2
	mov	r0, r3
	bl	pop
	mov	r3, r0
	str	r3, [fp, #-416]
	ldr	r3, [fp, #-416]
	cmn	r3, #1
	beq	.L21
	ldr	r3, [fp, #-416]
	mov	r1, r3
	ldr	r0, .L23+52
	bl	printf
	b	.L21
.L9:
	ldr	r2, [fp, #-420]
	sub	r3, fp, #408
	mov	r1, r2
	mov	r0, r3
	bl	peek
	mov	r3, r0
	str	r3, [fp, #-416]
	ldr	r3, [fp, #-416]
	cmn	r3, #1
	beq	.L22
	ldr	r3, [fp, #-416]
	mov	r1, r3
	ldr	r0, .L23+56
	bl	printf
	b	.L22
.L8:
	ldr	r2, [fp, #-420]
	sub	r3, fp, #408
	mov	r1, r2
	mov	r0, r3
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, .L23+60
	bl	puts
	b	.L12
.L15:
	ldr	r0, .L23+64
	bl	puts
	b	.L12
.L7:
	ldr	r2, [fp, #-420]
	sub	r3, fp, #408
	mov	r1, r2
	mov	r0, r3
	bl	isFull
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r0, .L23+68
	bl	puts
	b	.L12
.L17:
	ldr	r0, .L23+72
	bl	puts
	b	.L12
.L6:
	ldr	r0, .L23+76
	bl	printf
	ldr	r2, [fp, #-420]
	sub	r3, fp, #408
	mov	r1, r2
	mov	r0, r3
	bl	display
	b	.L12
.L5:
	ldr	r3, [fp, #-420]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L23+80
	bl	printf
	b	.L12
.L3:
	ldr	r0, .L23+84
	bl	puts
	b	.L12
.L2:
	ldr	r0, .L23+88
	bl	puts
	b	.L12
.L21:
	nop
	b	.L12
.L22:
	nop
.L12:
	ldr	r3, [fp, #-412]
	cmp	r3, #8
	bne	.L19
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC22
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.align	2
	.global	isFull
	.syntax unified
	.arm
	.fpu softvfp
	.type	isFull, %function
isFull:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #99
	bne	.L26
	mov	r3, #1
	b	.L27
.L26:
	mov	r3, #0
.L27:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isFull, .-isFull
	.align	2
	.global	isEmpty
	.syntax unified
	.arm
	.fpu softvfp
	.type	isEmpty, %function
isEmpty:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L29
	mov	r3, #1
	b	.L30
.L29:
	mov	r3, #0
.L30:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isEmpty, .-isEmpty
	.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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	isFull
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r0, .L34
	bl	puts
	mov	r3, #0
	b	.L33
.L32:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	mov	r3, #1
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC16
	.size	push, .-push
	.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
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	ldr	r0, .L39
	bl	puts
	mov	r3, #0
	b	.L38
.L37:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r2, [fp, #-12]
	str	r1, [r2]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC14
	.size	pop, .-pop
	.align	2
	.global	peek
	.syntax unified
	.arm
	.fpu softvfp
	.type	peek, %function
peek:
	@ 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	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	ldr	r0, .L44
	bl	puts
	mov	r3, #0
	b	.L43
.L42:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC14
	.size	peek, .-peek
	.section	.rodata
	.align	2
.LC23:
	.ascii	"%d \000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	ldr	r0, .L51
	bl	puts
	mov	r3, #0
	b	.L48
.L47:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L49
.L50:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L51+4
	bl	printf
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L49:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L50
	mov	r0, #10
	bl	putchar
	mov	r3, #1
.L48:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC14
	.word	.LC23
	.size	display, .-display
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
