	.file	"122016842.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	" "
.LC3:
	.string	"\n"
.LC4:
	.string	"left"
.LC5:
	.string	"right"
.LC6:
	.string	"%d\n"
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 136
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	lea	rax, -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -120[rbp], 0
	jmp	.L2
.L21:
	mov	rax, rsp
	mov	rbx, rax
	lea	rdx, -144[rbp]
	lea	rax, -148[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -148[rbp]
	imul	eax, eax, 100
	mov	DWORD PTR -148[rbp], eax
	mov	DWORD PTR -124[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	call	queue_init_default
	mov	QWORD PTR -104[rbp], rax
	call	queue_init_default
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -112[rbp], 12
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L3:
	cmp	rsp, rdx
	je	.L4
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L3
.L4:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L5
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L5:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	jmp	.L6
.L10:
	mov	rax, QWORD PTR -80[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -72[rbp], rax
	lea	rsi, .LC3[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -108[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -108[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	rcx
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -108[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	rcx
.L8:
	add	DWORD PTR -124[rbp], 1
.L6:
	mov	eax, DWORD PTR -144[rbp]
	cmp	DWORD PTR -124[rbp], eax
	jge	.L9
	mov	rdx, QWORD PTR stdin[rip]
	mov	ecx, DWORD PTR -112[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L10
.L9:
	mov	DWORD PTR -128[rbp], 0
	mov	DWORD PTR -140[rbp], 1
	mov	DWORD PTR -136[rbp], 1
	mov	DWORD PTR -116[rbp], 0
	jmp	.L11
.L20:
	mov	DWORD PTR -132[rbp], 0
	cmp	DWORD PTR -116[rbp], 0
	jne	.L12
	jmp	.L13
.L15:
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, -140[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	add	DWORD PTR -132[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	rdx
.L13:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	rdx
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, -140[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	mov	edx, DWORD PTR -132[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -148[rbp]
	cmp	edx, eax
	jle	.L15
.L14:
	mov	DWORD PTR -116[rbp], 1
	jmp	.L16
.L12:
	cmp	DWORD PTR -116[rbp], 1
	jne	.L16
	jmp	.L17
.L19:
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -104[rbp]
	lea	rdx, -136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	add	DWORD PTR -132[rbp], eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rdx
.L17:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rdx
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -104[rbp]
	lea	rdx, -136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	mov	edx, DWORD PTR -132[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -148[rbp]
	cmp	edx, eax
	jle	.L19
.L18:
	mov	DWORD PTR -116[rbp], 0
.L16:
	add	DWORD PTR -128[rbp], 1
.L11:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	rdx
	test	eax, eax
	je	.L20
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	rdx
	test	eax, eax
	je	.L20
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR 32[rax]
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	rdx
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 32[rax]
	lea	rax, -104[rbp]
	mov	rdi, rax
	call	rdx
	mov	rsp, rbx
	add	DWORD PTR -120[rbp], 1
.L2:
	mov	eax, DWORD PTR -152[rbp]
	cmp	DWORD PTR -120[rbp], eax
	jl	.L21
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	queue_init_default
	.type	queue_init_default, @function
queue_init_default:
.LFB7:
	.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	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L25
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, queue_enqueue[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, queue_service[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, queue_empty[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, queue_print[rip]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, queue_destroy[rip]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, queue_front[rip]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 56[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L26
.L25:
	mov	eax, 0
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	queue_init_default, .-queue_init_default
	.globl	queue_enqueue
	.type	queue_enqueue, @function
queue_enqueue:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L28
	mov	eax, 0
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L30
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 56[rax], rdx
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 56[rax], rdx
.L31:
	mov	eax, 1
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	queue_enqueue, .-queue_enqueue
	.globl	queue_service
	.type	queue_service, @function
queue_service:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rdx
	test	eax, eax
	je	.L33
	mov	eax, 0
	jmp	.L34
.L33:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rdx
	test	eax, eax
	je	.L35
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 56[rax], 0
.L35:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	queue_service, .-queue_service
	.globl	queue_empty
	.type	queue_empty, @function
queue_empty:
.LFB10:
	.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 -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	queue_empty, .-queue_empty
	.globl	queue_front
	.type	queue_front, @function
queue_front:
.LFB11:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L39
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, -1
	jmp	.L40
.L39:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L41
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, -1
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -12[rbp]
.L40:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	queue_front, .-queue_front
	.globl	queue_destroy
	.type	queue_destroy, @function
queue_destroy:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L43
.L44:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L43:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L44
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	queue_destroy, .-queue_destroy
	.section	.rodata
.LC7:
	.string	"Queue is empty"
	.text
	.globl	queue_print
	.type	queue_print, @function
queue_print:
.LFB13:
	.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 -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L47
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L46
.L47:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L49
.L50:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 32
	call	putchar@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L49:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L50
	mov	edi, 10
	call	putchar@PLT
	nop
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	queue_print, .-queue_print
	.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	"122016842.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d %d\000"
	.align	2
.LC2:
	.ascii	" \000"
	.align	2
.LC3:
	.ascii	"\012\000"
	.align	2
.LC4:
	.ascii	"left\000"
	.align	2
.LC5:
	.ascii	"right\000"
	.align	2
.LC6:
	.ascii	"%d\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L21+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L2
.L18:
	mov	r3, sp
	mov	r4, r3
	sub	r2, fp, #80
	sub	r3, fp, #84
	mov	r1, r3
	ldr	r0, .L21+8
	bl	__isoc99_scanf
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	bl	queue_init_default
	mov	r3, r0
	str	r3, [fp, #-76]
	bl	queue_init_default
	mov	r3, r0
	str	r3, [fp, #-72]
	mov	r3, #12
	str	r3, [fp, #-40]
	ldr	ip, [fp, #-40]
	sub	r3, ip, #1
	str	r3, [fp, #-36]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-32]
	ldr	r3, .L21+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	b	.L3
.L7:
	ldr	r1, .L21+16
	ldr	r0, [fp, #-32]
	bl	strtok
	str	r0, [fp, #-28]
	ldr	r1, .L21+20
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-24]
	mov	r2, #10
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	strtol
	str	r0, [fp, #-20]
	ldr	r1, .L21+24
	ldr	r0, [fp, #-24]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	ldr	r1, [fp, #-20]
	mov	r0, r2
	blx	r3
	b	.L5
.L4:
	ldr	r1, .L21+28
	ldr	r0, [fp, #-24]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-20]
	mov	r0, r2
	blx	r3
.L5:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L3:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bge	.L6
	ldr	r3, .L21+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
.L6:
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #1
	str	r3, [fp, #-68]
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L8
.L17:
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L9
	b	.L10
.L12:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-72]
	sub	r1, fp, #68
	mov	r0, r2
	blx	r3
	mov	r2, r0
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-72]
	mov	r0, r2
	blx	r3
.L10:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-72]
	mov	r0, r2
	blx	r3
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-72]
	sub	r1, fp, #68
	mov	r0, r2
	blx	r3
	mov	r2, r0
	ldr	r3, [fp, #-60]
	add	r2, r2, r3
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	ble	.L12
.L11:
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L13
.L9:
	ldr	r3, [fp, #-44]
	cmp	r3, #1
	bne	.L13
	b	.L14
.L16:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-76]
	sub	r1, fp, #64
	mov	r0, r2
	blx	r3
	mov	r2, r0
	ldr	r3, [fp, #-60]
	add	r3, r3, r2
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-76]
	mov	r0, r2
	blx	r3
.L14:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-76]
	mov	r0, r2
	blx	r3
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-76]
	sub	r1, fp, #64
	mov	r0, r2
	blx	r3
	mov	r2, r0
	ldr	r3, [fp, #-60]
	add	r2, r2, r3
	ldr	r3, [fp, #-84]
	cmp	r2, r3
	ble	.L16
.L15:
	mov	r3, #0
	str	r3, [fp, #-44]
.L13:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L8:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-76]
	mov	r0, r2
	blx	r3
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-72]
	mov	r0, r2
	blx	r3
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r1, [fp, #-56]
	ldr	r0, .L21+32
	bl	printf
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #16]
	sub	r2, fp, #72
	mov	r0, r2
	blx	r3
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #16]
	sub	r2, fp, #76
	mov	r0, r2
	blx	r3
	mov	sp, r4
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L2:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L18
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	stdin
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.align	2
	.global	queue_init_default
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_init_default, %function
queue_init_default:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-8]
	ldr	r2, .L26
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, .L26+4
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, .L26+8
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L26+12
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	ldr	r2, .L26+16
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r2, .L26+20
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	b	.L25
.L24:
	mov	r3, #0
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	queue_enqueue
	.word	queue_service
	.word	queue_empty
	.word	queue_print
	.word	queue_destroy
	.word	queue_front
	.size	queue_init_default, .-queue_init_default
	.align	2
	.global	queue_enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_enqueue, %function
queue_enqueue:
	@ 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	r3, [fp, #-16]
	str	r3, [fp, #-12]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L29
	mov	r3, #0
	b	.L30
.L29:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #28]
	b	.L32
.L31:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #28]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #28]
.L32:
	mov	r3, #1
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	queue_enqueue, .-queue_enqueue
	.align	2
	.global	queue_service
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_service, %function
queue_service:
	@ 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, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r0, [fp, #-16]
	blx	r3
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	mov	r3, #0
	b	.L35
.L34:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r0, [fp, #-16]
	blx	r3
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #28]
.L36:
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #1
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	queue_service, .-queue_service
	.align	2
	.global	queue_empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_empty, %function
queue_empty:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	queue_empty, .-queue_empty
	.align	2
	.global	queue_front
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_front, %function
queue_front:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3]
	mvn	r3, #0
	b	.L41
.L40:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3]
	mvn	r3, #0
	b	.L41
.L42:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
.L41:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	queue_front, .-queue_front
	.align	2
	.global	queue_destroy
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_destroy, %function
queue_destroy:
	@ 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, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L44
.L45:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #24]
	ldr	r0, [fp, #-8]
	bl	free
.L44:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L45
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	queue_destroy, .-queue_destroy
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Queue is empty\000"
	.text
	.align	2
	.global	queue_print
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_print, %function
queue_print:
	@ 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, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L48
	ldr	r0, .L52
	bl	puts
	b	.L47
.L48:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-12]
	b	.L50
.L51:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L52+4
	bl	printf
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
.L50:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L51
	mov	r0, #10
	bl	putchar
	nop
.L47:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC8
	.word	.LC0
	.size	queue_print, .-queue_print
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
