	.file	"287181.c"
	.intel_syntax noprefix
	.text
	.globl	top
	.bss
	.align 8
	.type	top, @object
	.size	top, 8
top:
	.zero	8
	.globl	helper_stack
	.align 8
	.type	helper_stack, @object
	.size	helper_stack, 8
helper_stack:
	.zero	8
	.globl	helper_queue
	.align 8
	.type	helper_queue, @object
	.size	helper_queue, 8
helper_queue:
	.zero	8
	.globl	start
	.align 8
	.type	start, @object
	.size	start, 8
start:
	.zero	8
	.globl	end
	.align 8
	.type	end, @object
	.size	end, 8
end:
	.zero	8
	.globl	max_queue_elements
	.align 4
	.type	max_queue_elements, @object
	.size	max_queue_elements, 4
max_queue_elements:
	.zero	4
	.section	.rodata
.LC0:
	.string	"\nNo elements in stack"
.LC1:
	.string	"pause"
	.text
	.globl	verify_if_stack_is_empty
	.type	verify_if_stack_is_empty, @function
verify_if_stack_is_empty:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR top[rip]
	test	rax, rax
	je	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	system@PLT
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	verify_if_stack_is_empty, .-verify_if_stack_is_empty
	.section	.rodata
	.align 8
.LC2:
	.string	"\nInsert the name of this element: "
.LC3:
	.string	"%s"
	.text
	.globl	enter_data
	.type	enter_data, @function
enter_data:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR top[rip]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	enter_data, .-enter_data
	.section	.rodata
.LC4:
	.string	"\nProcess identifier for %s: "
.LC5:
	.string	"%d"
.LC6:
	.string	"\nQueue is Overflow"
	.text
	.globl	convert_to_queue
	.type	convert_to_queue, @function
convert_to_queue:
.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, 0
	call	verify_if_stack_is_empty
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR helper_stack[rip], rax
	jmp	.L8
.L12:
	mov	rax, QWORD PTR helper_stack[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR start[rip]
	test	rax, rax
	jne	.L9
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR helper_queue[rip], rax
	mov	rax, QWORD PTR helper_queue[rip]
	mov	QWORD PTR start[rip], rax
	mov	rax, QWORD PTR helper_queue[rip]
	mov	QWORD PTR end[rip], rax
	mov	rax, QWORD PTR helper_queue[rip]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR helper_stack[rip]
	mov	rdx, rax
	mov	rax, QWORD PTR helper_queue[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR helper_queue[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR helper_queue[rip]
	add	rax, 20
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR max_queue_elements[rip]
	add	eax, 1
	mov	DWORD PTR max_queue_elements[rip], eax
	mov	rax, QWORD PTR helper_stack[rip]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR helper_stack[rip], rax
	jmp	.L8
.L9:
	mov	eax, DWORD PTR max_queue_elements[rip]
	cmp	eax, 4
	jle	.L10
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	system@PLT
	jmp	.L11
.L10:
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR helper_queue[rip], rax
	mov	rax, QWORD PTR end[rip]
	mov	rdx, QWORD PTR helper_queue[rip]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR helper_queue[rip]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR helper_queue[rip]
	mov	QWORD PTR end[rip], rax
	mov	rax, QWORD PTR helper_stack[rip]
	mov	rdx, rax
	mov	rax, QWORD PTR helper_queue[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR helper_queue[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR helper_queue[rip]
	add	rax, 20
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR max_queue_elements[rip]
	add	eax, 1
	mov	DWORD PTR max_queue_elements[rip], eax
	mov	rax, QWORD PTR helper_stack[rip]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR helper_stack[rip], rax
.L8:
	mov	rax, QWORD PTR helper_stack[rip]
	test	rax, rax
	jne	.L12
.L11:
	mov	rax, QWORD PTR top[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR helper_stack[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR top[rip], 0
	mov	QWORD PTR helper_stack[rip], 0
	jmp	.L5
.L13:
	nop
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	convert_to_queue, .-convert_to_queue
	.section	.rodata
.LC7:
	.string	"\nNo elements in the queue"
	.align 8
.LC8:
	.string	"\nI'm in the %s element, with mix identifier: %d"
	.text
	.globl	list_queue
	.type	list_queue, @function
list_queue:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR start[rip]
	test	rax, rax
	jne	.L15
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	system@PLT
	jmp	.L14
.L15:
	mov	rax, QWORD PTR start[rip]
	mov	QWORD PTR helper_queue[rip], rax
	jmp	.L17
.L18:
	mov	rax, QWORD PTR helper_queue[rip]
	mov	eax, DWORD PTR 20[rax]
	mov	rdx, QWORD PTR helper_queue[rip]
	mov	rcx, rdx
	mov	edx, eax
	mov	rsi, rcx
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR helper_queue[rip]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR helper_queue[rip], rax
.L17:
	mov	rax, QWORD PTR helper_queue[rip]
	test	rax, rax
	jne	.L18
	mov	edi, 10
	call	putchar@PLT
	mov	QWORD PTR helper_queue[rip], 0
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	list_queue, .-list_queue
	.section	.rodata
.LC9:
	.string	"End item of stack removed"
	.align 8
.LC10:
	.string	"\nElement removed from the stack"
	.text
	.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
	mov	eax, 0
	call	verify_if_stack_is_empty
	test	eax, eax
	je	.L23
	mov	rax, QWORD PTR top[rip]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L22
	mov	rax, QWORD PTR top[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR top[rip], 0
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L22:
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR helper_stack[rip], rax
	mov	rax, QWORD PTR top[rip]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR top[rip], rax
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR helper_stack[rip]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L23:
	nop
.L19:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	pop, .-pop
	.globl	push
	.type	push, @function
push:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR top[rip]
	test	rax, rax
	jne	.L25
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR top[rip], rax
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR helper_stack[rip], rax
	mov	eax, 0
	call	enter_data
	jmp	.L24
.L25:
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR top[rip], rax
	mov	rax, QWORD PTR helper_stack[rip]
	mov	rdx, QWORD PTR top[rip]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR top[rip]
	mov	rdx, QWORD PTR helper_stack[rip]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR helper_stack[rip], rax
	mov	eax, 0
	call	enter_data
.L24:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	push, .-push
	.section	.rodata
	.align 8
.LC11:
	.string	"\n --- Stack to queue converter ---"
	.align 8
.LC12:
	.string	"\n [1] - Insert element in the stack"
	.align 8
.LC13:
	.string	"\n [2] - Remove element from the stack"
	.align 8
.LC14:
	.string	"\n [3] - Convert stack to queue"
	.align 8
.LC15:
	.string	"\n [4] - List all the elements in the queue"
.LC16:
	.string	"\n [5] - Clear screen"
.LC17:
	.string	"\n Choose the option: "
.LC18:
	.string	"cls"
.LC19:
	.string	"\n Invalid option... Try again"
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L36:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 5
	ja	.L28
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L30[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L30[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L30:
	.long	.L28-.L30
	.long	.L34-.L30
	.long	.L33-.L30
	.long	.L32-.L30
	.long	.L31-.L30
	.long	.L29-.L30
	.text
.L34:
	mov	eax, 0
	call	push
	jmp	.L35
.L33:
	mov	eax, 0
	call	pop
	jmp	.L35
.L32:
	mov	eax, 0
	call	convert_to_queue
	jmp	.L35
.L31:
	mov	eax, 0
	call	list_queue
	jmp	.L35
.L29:
	lea	rdi, .LC18[rip]
	call	system@PLT
	mov	eax, 0
	call	main
	jmp	.L35
.L28:
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	system@PLT
.L35:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 5
	jne	.L36
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	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	"287181.c"
	.text
	.comm	top,4,4
	.comm	helper_stack,4,4
	.comm	helper_queue,4,4
	.comm	start,4,4
	.comm	end,4,4
	.comm	max_queue_elements,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012No elements in stack\000"
	.align	2
.LC1:
	.ascii	"pause\000"
	.text
	.align	2
	.global	verify_if_stack_is_empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify_if_stack_is_empty, %function
verify_if_stack_is_empty:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	mov	r3, #1
	b	.L3
.L2:
	ldr	r0, .L4+4
	bl	puts
	ldr	r0, .L4+8
	bl	system
	mov	r3, #0
.L3:
	mov	r0, r3
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	top
	.word	.LC0
	.word	.LC1
	.size	verify_if_stack_is_empty, .-verify_if_stack_is_empty
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012Insert the name of this element: \000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.text
	.align	2
	.global	enter_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	enter_data, %function
enter_data:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L7
	bl	printf
	ldr	r3, .L7+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+8
	bl	__isoc99_scanf
	nop
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	top
	.word	.LC3
	.size	enter_data, .-enter_data
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012Process identifier for %s: \000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"\012Queue is Overflow\000"
	.text
	.align	2
	.global	convert_to_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_to_queue, %function
convert_to_queue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	verify_if_stack_is_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r2, .L18+4
	str	r3, [r2]
	b	.L12
.L16:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	free
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L18+12
	str	r2, [r3]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	ldr	r2, .L18+8
	str	r3, [r2]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	ldr	r2, .L18+16
	str	r3, [r2]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+20
	bl	printf
	ldr	r3, .L18+12
	ldr	r3, [r3]
	add	r3, r3, #20
	mov	r1, r3
	ldr	r0, .L18+24
	bl	__isoc99_scanf
	ldr	r3, .L18+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18+28
	str	r3, [r2]
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #20]
	ldr	r2, .L18+4
	str	r3, [r2]
	b	.L12
.L13:
	ldr	r3, .L18+28
	ldr	r3, [r3]
	cmp	r3, #4
	ble	.L14
	ldr	r0, .L18+32
	bl	printf
	ldr	r0, .L18+36
	bl	system
	b	.L15
.L14:
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L18+12
	str	r2, [r3]
	ldr	r3, .L18+16
	ldr	r3, [r3]
	ldr	r2, .L18+12
	ldr	r2, [r2]
	str	r2, [r3, #24]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	ldr	r2, .L18+16
	str	r3, [r2]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+20
	bl	printf
	ldr	r3, .L18+12
	ldr	r3, [r3]
	add	r3, r3, #20
	mov	r1, r3
	ldr	r0, .L18+24
	bl	__isoc99_scanf
	ldr	r3, .L18+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18+28
	str	r3, [r2]
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #20]
	ldr	r2, .L18+4
	str	r3, [r2]
.L12:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
.L15:
	ldr	r3, .L18
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L18
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L18+4
	mov	r2, #0
	str	r2, [r3]
	pop	{fp, pc}
.L17:
	nop
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	top
	.word	helper_stack
	.word	start
	.word	helper_queue
	.word	end
	.word	.LC4
	.word	.LC5
	.word	max_queue_elements
	.word	.LC6
	.word	.LC1
	.size	convert_to_queue, .-convert_to_queue
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\012No elements in the queue\000"
	.align	2
.LC8:
	.ascii	"\012I'm in the %s element, with mix identifier: %d\000"
	.text
	.align	2
	.global	list_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	list_queue, %function
list_queue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L25
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L25+4
	bl	puts
	ldr	r0, .L25+8
	bl	system
	pop	{fp, pc}
.L21:
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r2, .L25+12
	str	r3, [r2]
	b	.L23
.L24:
	ldr	r3, .L25+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L25+12
	ldr	r3, [r3]
	ldr	r3, [r3, #20]
	mov	r2, r3
	ldr	r0, .L25+16
	bl	printf
	ldr	r3, .L25+12
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	ldr	r2, .L25+12
	str	r3, [r2]
.L23:
	ldr	r3, .L25+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	mov	r0, #10
	bl	putchar
	ldr	r3, .L25+12
	mov	r2, #0
	str	r2, [r3]
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	start
	.word	.LC7
	.word	.LC1
	.word	helper_queue
	.word	.LC8
	.size	list_queue, .-list_queue
	.section	.rodata
	.align	2
.LC9:
	.ascii	"End item of stack removed\000"
	.align	2
.LC10:
	.ascii	"\012Element removed from the stack\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	verify_if_stack_is_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L32
	ldr	r3, [r3]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L30
	ldr	r3, .L32
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L32
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L32+4
	bl	printf
	pop	{fp, pc}
.L30:
	ldr	r3, .L32
	ldr	r3, [r3]
	ldr	r2, .L32+8
	str	r3, [r2]
	ldr	r3, .L32
	ldr	r3, [r3]
	ldr	r3, [r3, #20]
	ldr	r2, .L32
	str	r3, [r2]
	ldr	r3, .L32
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, .L32+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, .L32+12
	bl	printf
	pop	{fp, pc}
.L31:
	nop
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	top
	.word	.LC9
	.word	helper_stack
	.word	.LC10
	.size	pop, .-pop
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L37
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L35
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L37
	str	r2, [r3]
	ldr	r3, .L37
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, .L37
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, .L37
	ldr	r3, [r3]
	ldr	r2, .L37+4
	str	r3, [r2]
	bl	enter_data
	pop	{fp, pc}
.L35:
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L37
	str	r2, [r3]
	ldr	r3, .L37+4
	ldr	r3, [r3]
	ldr	r2, .L37
	ldr	r2, [r2]
	str	r2, [r3, #24]
	ldr	r3, .L37
	ldr	r3, [r3]
	ldr	r2, .L37+4
	ldr	r2, [r2]
	str	r2, [r3, #20]
	ldr	r3, .L37
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, .L37
	ldr	r3, [r3]
	ldr	r2, .L37+4
	str	r3, [r2]
	bl	enter_data
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	top
	.word	helper_stack
	.size	push, .-push
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\012 --- Stack to queue converter ---\000"
	.align	2
.LC12:
	.ascii	"\012 [1] - Insert element in the stack\000"
	.align	2
.LC13:
	.ascii	"\012 [2] - Remove element from the stack\000"
	.align	2
.LC14:
	.ascii	"\012 [3] - Convert stack to queue\000"
	.align	2
.LC15:
	.ascii	"\012 [4] - List all the elements in the queue\000"
	.align	2
.LC16:
	.ascii	"\012 [5] - Clear screen\000"
	.align	2
.LC17:
	.ascii	"\012 Choose the option: \000"
	.align	2
.LC18:
	.ascii	"cls\000"
	.align	2
.LC19:
	.ascii	"\012 Invalid option... Try again\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L48:
	ldr	r3, .L51+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L51+8
	bl	printf
	ldr	r0, .L51+12
	bl	printf
	ldr	r0, .L51+16
	bl	printf
	ldr	r0, .L51+20
	bl	printf
	ldr	r0, .L51+24
	bl	printf
	ldr	r0, .L51+28
	bl	printf
	ldr	r0, .L51+32
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L51+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L40
.L42:
	.word	.L46
	.word	.L45
	.word	.L44
	.word	.L43
	.word	.L41
.L46:
	bl	push
	b	.L47
.L45:
	bl	pop
	b	.L47
.L44:
	bl	convert_to_queue
	b	.L47
.L43:
	bl	list_queue
	b	.L47
.L41:
	ldr	r0, .L51+40
	bl	system
	bl	main
	b	.L47
.L40:
	ldr	r0, .L51+44
	bl	printf
	ldr	r0, .L51+48
	bl	system
.L47:
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	bne	.L48
	mov	r3, #0
	ldr	r2, .L51
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC20
	.word	stdin
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC5
	.word	.LC18
	.word	.LC19
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
