	.file	"247018857.c"
	.intel_syntax noprefix
	.text
	.globl	TOP
	.data
	.align 4
	.type	TOP, @object
	.size	TOP, 4
TOP:
	.long	-1
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.globl	node
	.align 8
	.type	node, @object
	.size	node, 8
node:
	.zero	8
	.text
	.globl	createNode
	.type	createNode, @function
createNode:
.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	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	createNode, .-createNode
	.globl	OVERFLOW
	.type	OVERFLOW, @function
OVERFLOW:
.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	.L4
	mov	eax, 1
	jmp	.L5
.L4:
	mov	eax, -1
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	OVERFLOW, .-OVERFLOW
	.globl	UNDERFLOW
	.type	UNDERFLOW, @function
UNDERFLOW:
.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	.L7
	mov	eax, 1
	jmp	.L8
.L7:
	mov	eax, -1
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	UNDERFLOW, .-UNDERFLOW
	.globl	push
	.type	push, @function
push:
.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	DWORD PTR -4[rbp], edi
	mov	eax, 0
	call	OVERFLOW
	cmp	eax, -1
	jne	.L10
	mov	eax, DWORD PTR TOP[rip]
	cmp	eax, -1
	jne	.L11
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	createNode
	mov	QWORD PTR head[rip], rax
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	createNode
	mov	QWORD PTR node[rip], rax
	mov	rax, QWORD PTR node[rip]
	mov	rdx, QWORD PTR head[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR node[rip]
	mov	QWORD PTR head[rip], rax
.L12:
	mov	eax, DWORD PTR TOP[rip]
	add	eax, 1
	mov	DWORD PTR TOP[rip], eax
	mov	eax, 1
	jmp	.L13
.L10:
	mov	eax, -1
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	push, .-push
	.globl	pop
	.type	pop, @function
pop:
.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	eax, 0
	call	UNDERFLOW
	cmp	eax, -1
	jne	.L15
	mov	rax, QWORD PTR head[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR head[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR head[rip], rax
	mov	eax, DWORD PTR TOP[rip]
	sub	eax, 1
	mov	DWORD PTR TOP[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L16
.L15:
	mov	eax, -1
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	pop, .-pop
	.section	.rodata
.LC0:
	.string	"%-5d"
.LC1:
	.string	"-> UNDERFLOW <- "
	.text
	.globl	display
	.type	display, @function
display:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	UNDERFLOW
	cmp	eax, -1
	jne	.L18
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR node[rip], rax
	jmp	.L19
.L20:
	mov	rax, QWORD PTR node[rip]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR node[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR node[rip], rax
.L19:
	mov	rax, QWORD PTR node[rip]
	test	rax, rax
	jne	.L20
	mov	edi, 10
	call	putchar@PLT
	jmp	.L22
.L18:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L22:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	display, .-display
	.section	.rodata
	.align 8
.LC2:
	.string	"\nEnter \n\t1. PUSH \n\t2. POP \n\t3. DISPLAY \n\t4. EXIT \n-> "
.LC3:
	.string	"%d"
.LC4:
	.string	"Enter a value to push : "
.LC5:
	.string	"%d is pushed into stack.\n"
.LC6:
	.string	"-> OVERFLOW <- "
.LC7:
	.string	"The poped value is %d.\n"
.LC8:
	.string	"Enter a valid option."
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], -1
	jmp	.L24
.L34:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 4
	je	.L25
	cmp	eax, 4
	jg	.L26
	cmp	eax, 3
	je	.L27
	cmp	eax, 3
	jg	.L26
	cmp	eax, 1
	je	.L28
	cmp	eax, 2
	je	.L29
	jmp	.L26
.L28:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	push
	cmp	eax, 1
	jne	.L30
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L30:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L24
.L29:
	mov	eax, 0
	call	pop
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, -1
	jne	.L32
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L24
.L32:
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L27:
	mov	eax, 0
	call	display
	jmp	.L24
.L25:
	mov	DWORD PTR -12[rbp], 1
	jmp	.L24
.L26:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
.L24:
	cmp	DWORD PTR -12[rbp], -1
	je	.L34
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"247018857.c"
	.text
	.global	TOP
	.data
	.align	2
	.type	TOP, %object
	.size	TOP, 4
TOP:
	.word	-1
	.comm	head,4,4
	.comm	node,4,4
	.text
	.align	2
	.global	createNode
	.syntax unified
	.arm
	.fpu softvfp
	.type	createNode, %function
createNode:
	@ 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	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	createNode, .-createNode
	.align	2
	.global	OVERFLOW
	.syntax unified
	.arm
	.fpu softvfp
	.type	OVERFLOW, %function
OVERFLOW:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L6
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L4
	mov	r3, #1
	b	.L5
.L4:
	mvn	r3, #0
.L5:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	TOP
	.size	OVERFLOW, .-OVERFLOW
	.align	2
	.global	UNDERFLOW
	.syntax unified
	.arm
	.fpu softvfp
	.type	UNDERFLOW, %function
UNDERFLOW:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L11
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L9
	mov	r3, #1
	b	.L10
.L9:
	mvn	r3, #0
.L10:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	TOP
	.size	UNDERFLOW, .-UNDERFLOW
	.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
	str	r0, [fp, #-8]
	bl	OVERFLOW
	mov	r3, r0
	cmn	r3, #1
	bne	.L14
	ldr	r3, .L18
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L15
	ldr	r0, [fp, #-8]
	bl	createNode
	mov	r3, r0
	ldr	r2, .L18+4
	str	r3, [r2]
	b	.L16
.L15:
	ldr	r0, [fp, #-8]
	bl	createNode
	mov	r3, r0
	ldr	r2, .L18+8
	str	r3, [r2]
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r2, .L18+4
	ldr	r2, [r2]
	str	r2, [r3, #4]
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r2, .L18+4
	str	r3, [r2]
.L16:
	ldr	r3, .L18
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18
	str	r3, [r2]
	mov	r3, #1
	b	.L17
.L14:
	mvn	r3, #0
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	TOP
	.word	head
	.word	node
	.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
	bl	UNDERFLOW
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L23
	str	r3, [r2]
	ldr	r3, .L23+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L23+4
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	b	.L22
.L21:
	mvn	r3, #0
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	head
	.word	TOP
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%-5d\000"
	.align	2
.LC1:
	.ascii	"-> UNDERFLOW <- \000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	UNDERFLOW
	mov	r3, r0
	cmn	r3, #1
	bne	.L26
	ldr	r3, .L31
	ldr	r3, [r3]
	ldr	r2, .L31+4
	str	r3, [r2]
	b	.L27
.L28:
	ldr	r3, .L31+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L31+8
	bl	printf
	ldr	r3, .L31+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L31+4
	str	r3, [r2]
.L27:
	ldr	r3, .L31+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L28
	mov	r0, #10
	bl	putchar
	b	.L30
.L26:
	ldr	r0, .L31+12
	bl	puts
.L30:
	nop
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	head
	.word	node
	.word	.LC0
	.word	.LC1
	.size	display, .-display
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012Enter \012\0111. PUSH \012\0112. POP \012\0113."
	.ascii	" DISPLAY \012\0114. EXIT \012-> \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Enter a value to push : \000"
	.align	2
.LC5:
	.ascii	"%d is pushed into stack.\012\000"
	.align	2
.LC6:
	.ascii	"-> OVERFLOW <- \000"
	.align	2
.LC7:
	.ascii	"The poped value is %d.\012\000"
	.align	2
.LC8:
	.ascii	"Enter a valid option.\000"
	.align	2
.LC9:
	.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, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-12]
	b	.L34
.L45:
	ldr	r0, .L48+4
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L48+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L35
.L37:
	.word	.L40
	.word	.L39
	.word	.L38
	.word	.L36
.L40:
	ldr	r0, .L48+12
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L48+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	push
	mov	r3, r0
	cmp	r3, #1
	bne	.L41
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L48+16
	bl	printf
	b	.L34
.L41:
	ldr	r0, .L48+20
	bl	puts
	b	.L34
.L39:
	bl	pop
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L43
	ldr	r0, .L48+24
	bl	puts
	b	.L34
.L43:
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L48+28
	bl	printf
	b	.L34
.L38:
	bl	display
	b	.L34
.L36:
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L34
.L35:
	ldr	r0, .L48+32
	bl	puts
	nop
.L34:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L45
	mov	r3, #0
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC9
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC1
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
