	.file	"775949.c"
	.intel_syntax noprefix
	.text
	.globl	chain
	.bss
	.align 8
	.type	chain, @object
	.size	chain, 8
chain:
	.zero	8
	.globl	out
	.align 8
	.type	out, @object
	.size	out, 8
out:
	.zero	8
	.globl	entrance
	.align 8
	.type	entrance, @object
	.size	entrance, 8
entrance:
	.zero	8
	.section	.rodata
.LC0:
	.string	"\n[1] - Insert"
.LC1:
	.string	"\n[2] - Print queue"
.LC2:
	.string	"\n[3] - Remove"
.LC3:
	.string	"\n[0] - Close"
.LC4:
	.string	"\nChoose an option: "
.LC5:
	.string	"%i"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR entrance[rip], 0
.L2:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[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, 3
	je	.L3
	cmp	eax, 3
	jg	.L2
	cmp	eax, 2
	je	.L5
	cmp	eax, 2
	jg	.L2
	test	eax, eax
	je	.L6
	cmp	eax, 1
	jne	.L2
	lea	rdi, insert[rip]
	mov	eax, 0
	call	insert
	jmp	.L4
.L5:
	lea	rdi, print_queue[rip]
	mov	eax, 0
	call	print_queue
	jmp	.L4
.L3:
	lea	rdi, remove_element[rip]
	mov	eax, 0
	call	remove_element
	jmp	.L4
.L6:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L8
	jmp	.L9
.L4:
	jmp	.L2
.L9:
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC6:
	.string	"Value (integer): "
	.text
	.globl	EnterData
	.type	EnterData, @function
EnterData:
.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, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR chain[rip]
	add	rax, 16
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	EnterData, .-EnterData
	.globl	insert
	.type	insert, @function
insert:
.LFB8:
	.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	rax, QWORD PTR entrance[rip]
	test	rax, rax
	jne	.L12
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR chain[rip], rax
	mov	rax, QWORD PTR chain[rip]
	mov	QWORD PTR entrance[rip], rax
	mov	rax, QWORD PTR chain[rip]
	mov	QWORD PTR out[rip], rax
	mov	rax, QWORD PTR chain[rip]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR chain[rip]
	mov	QWORD PTR 8[rax], 0
	mov	eax, 0
	call	EnterData
	jmp	.L13
.L12:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR chain[rip], rax
	mov	rax, QWORD PTR chain[rip]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR entrance[rip]
	mov	rdx, QWORD PTR chain[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR chain[rip]
	mov	rdx, QWORD PTR entrance[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR chain[rip]
	mov	QWORD PTR entrance[rip], rax
	mov	eax, 0
	call	EnterData
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	insert, .-insert
	.section	.rodata
.LC7:
	.string	"\n\n-----Queue is empty-----\n"
.LC8:
	.string	"\n\n-----Entrance zone-----"
.LC9:
	.string	"\n%i"
.LC10:
	.string	"\n%i\n\n"
.LC11:
	.string	"-----Exit zone-----"
	.text
	.globl	print_queue
	.type	print_queue, @function
print_queue:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR entrance[rip]
	test	rax, rax
	jne	.L15
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L16
.L15:
	mov	rax, QWORD PTR entrance[rip]
	mov	QWORD PTR chain[rip], rax
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L17
.L18:
	mov	rax, QWORD PTR chain[rip]
	mov	eax, DWORD PTR 16[rax]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR chain[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR chain[rip], rax
.L17:
	mov	rax, QWORD PTR chain[rip]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR chain[rip]
	mov	eax, DWORD PTR 16[rax]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR entrance[rip]
	mov	QWORD PTR chain[rip], rax
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_queue, .-print_queue
	.globl	remove_element
	.type	remove_element, @function
remove_element:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR entrance[rip]
	test	rax, rax
	jne	.L20
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L20:
	mov	rdx, QWORD PTR chain[rip]
	mov	rax, QWORD PTR entrance[rip]
	cmp	rdx, rax
	jne	.L21
	mov	rdx, QWORD PTR chain[rip]
	mov	rax, QWORD PTR out[rip]
	cmp	rdx, rax
	je	.L21
	mov	rax, QWORD PTR out[rip]
	mov	QWORD PTR chain[rip], rax
	mov	rax, QWORD PTR chain[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR chain[rip], rax
	mov	rax, QWORD PTR out[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR chain[rip]
	mov	QWORD PTR out[rip], rax
	mov	rax, QWORD PTR out[rip]
	mov	QWORD PTR [rax], 0
	jmp	.L22
.L21:
	mov	rax, QWORD PTR chain[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR chain[rip], 0
	mov	QWORD PTR entrance[rip], 0
	mov	QWORD PTR out[rip], 0
.L22:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	remove_element, .-remove_element
	.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	"775949.c"
	.text
	.comm	chain,4,4
	.comm	out,4,4
	.comm	entrance,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012[1] - Insert\000"
	.align	2
.LC1:
	.ascii	"\012[2] - Print queue\000"
	.align	2
.LC2:
	.ascii	"\012[3] - Remove\000"
	.align	2
.LC3:
	.ascii	"\012[0] - Close\000"
	.align	2
.LC4:
	.ascii	"\012Choose an option: \000"
	.align	2
.LC5:
	.ascii	"%i\000"
	.align	2
.LC6:
	.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, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L12+4
	mov	r2, #0
	str	r2, [r3]
.L2:
	ldr	r0, .L12+8
	bl	printf
	ldr	r0, .L12+12
	bl	printf
	ldr	r0, .L12+16
	bl	printf
	ldr	r0, .L12+20
	bl	printf
	ldr	r0, .L12+24
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L12+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L7:
	ldr	r0, .L12+32
	bl	insert
	b	.L3
.L6:
	ldr	r0, .L12+36
	bl	print_queue
	b	.L3
.L4:
	ldr	r0, .L12+40
	bl	remove_element
	b	.L3
.L8:
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	b	.L11
.L3:
	b	.L2
.L11:
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC6
	.word	entrance
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	insert
	.word	print_queue
	.word	remove_element
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Value (integer): \000"
	.text
	.align	2
	.global	EnterData
	.syntax unified
	.arm
	.fpu softvfp
	.type	EnterData, %function
EnterData:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L15
	bl	printf
	ldr	r3, .L15+4
	ldr	r3, [r3]
	add	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	nop
	mov	r0, r3
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	chain
	.word	.LC5
	.size	EnterData, .-EnterData
	.align	2
	.global	insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ 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]
	ldr	r3, .L20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L20+4
	str	r2, [r3]
	ldr	r3, .L20+4
	ldr	r3, [r3]
	ldr	r2, .L20
	str	r3, [r2]
	ldr	r3, .L20+4
	ldr	r3, [r3]
	ldr	r2, .L20+8
	str	r3, [r2]
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	bl	EnterData
	b	.L19
.L18:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L20+4
	str	r2, [r3]
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L20
	ldr	r3, [r3]
	ldr	r2, .L20+4
	ldr	r2, [r2]
	str	r2, [r3, #4]
	ldr	r3, .L20+4
	ldr	r3, [r3]
	ldr	r2, .L20
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L20+4
	ldr	r3, [r3]
	ldr	r2, .L20
	str	r3, [r2]
	bl	EnterData
.L19:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	entrance
	.word	chain
	.word	out
	.size	insert, .-insert
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012\012-----Queue is empty-----\012\000"
	.align	2
.LC9:
	.ascii	"\012\012-----Entrance zone-----\000"
	.align	2
.LC10:
	.ascii	"\012%i\000"
	.align	2
.LC11:
	.ascii	"\012%i\012\012\000"
	.align	2
.LC12:
	.ascii	"-----Exit zone-----\000"
	.text
	.align	2
	.global	print_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_queue, %function
print_queue:
	@ 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]
	ldr	r3, .L27
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L23
	ldr	r0, .L27+4
	bl	puts
	b	.L24
.L23:
	ldr	r3, .L27
	ldr	r3, [r3]
	ldr	r2, .L27+8
	str	r3, [r2]
	ldr	r0, .L27+12
	bl	puts
	b	.L25
.L26:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L27+16
	bl	printf
	ldr	r3, .L27+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, .L27+8
	str	r3, [r2]
.L25:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L27+8
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L27+20
	bl	printf
	ldr	r0, .L27+24
	bl	puts
	ldr	r3, .L27
	ldr	r3, [r3]
	ldr	r2, .L27+8
	str	r3, [r2]
.L24:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	entrance
	.word	.LC8
	.word	chain
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	print_queue, .-print_queue
	.align	2
	.global	remove_element
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_element, %function
remove_element:
	@ 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]
	ldr	r3, .L33
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L30
	ldr	r0, .L33+4
	bl	puts
.L30:
	ldr	r3, .L33+8
	ldr	r2, [r3]
	ldr	r3, .L33
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L31
	ldr	r3, .L33+8
	ldr	r2, [r3]
	ldr	r3, .L33+12
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L31
	ldr	r3, .L33+12
	ldr	r3, [r3]
	ldr	r2, .L33+8
	str	r3, [r2]
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L33+8
	str	r3, [r2]
	ldr	r3, .L33+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L33+8
	ldr	r3, [r3]
	ldr	r2, .L33+12
	str	r3, [r2]
	ldr	r3, .L33+12
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	b	.L32
.L31:
	ldr	r3, .L33+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L33+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L33
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L33+12
	mov	r2, #0
	str	r2, [r3]
.L32:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	entrance
	.word	.LC8
	.word	chain
	.word	out
	.size	remove_element, .-remove_element
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
