	.file	"6388970.c"
	.intel_syntax noprefix
	.text
	.globl	num_processor
	.bss
	.align 4
	.type	num_processor, @object
	.size	num_processor, 4
num_processor:
	.zero	4
	.text
	.globl	initQueue
	.type	initQueue, @function
initQueue:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 12[rax], -1
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 16[rax], -1
	mov	edi, 1000005
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edi, 1000005
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 32[rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	initQueue, .-initQueue
	.globl	queue_empty
	.type	queue_empty, @function
queue_empty:
.LFB7:
	.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	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	sete	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	queue_empty, .-queue_empty
	.globl	queue_full
	.type	queue_full, @function
queue_full:
.LFB8:
	.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	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	add	eax, 1
	cmp	edx, eax
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 1000004
	jne	.L6
.L5:
	mov	eax, 1
	jmp	.L7
.L6:
	mov	eax, 0
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	queue_full, .-queue_full
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.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	eax, esi
	mov	BYTE PTR -12[rbp], al
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	queue_full
	test	al, al
	je	.L9
	mov	eax, 0
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	eax, -1
	jne	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 12[rax], 0
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, -2043178741
	shr	rax, 32
	add	eax, edx
	sar	eax, 19
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 1000005
	mov	eax, edx
	sub	eax, ecx
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 16[rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	cdqe
	add	rdx, rax
	movzx	eax, BYTE PTR -12[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	eax, 1
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	queue_empty
	test	al, al
	je	.L13
	mov	eax, 59
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	edx, eax
	jne	.L15
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 12[rax], -1
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 16[rax], -1
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, -2043178741
	shr	rax, 32
	add	eax, edx
	sar	eax, 19
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 1000005
	mov	eax, edx
	sub	eax, ecx
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 12[rdx], eax
.L16:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	movzx	eax, BYTE PTR -1[rbp]
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	dequeue, .-dequeue
	.globl	pop
	.type	pop, @function
pop:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	queue_empty
	test	al, al
	je	.L18
	mov	eax, 59
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	edx, eax
	jne	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 12[rax], -1
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 16[rax], -1
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1000004[rax]
	movsx	rax, edx
	imul	rax, rax, -2043178741
	shr	rax, 32
	add	eax, edx
	sar	eax, 19
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 1000005
	mov	eax, edx
	sub	eax, ecx
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 16[rdx], eax
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	movzx	eax, BYTE PTR -1[rbp]
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	pop, .-pop
	.section	.rodata
.LC0:
	.string	"QueueEmpty"
.LC1:
	.string	"number of tasks: %d\n"
.LC2:
	.string	"Queueing Tasks:"
.LC3:
	.string	"%c "
.LC4:
	.string	"%c\n"
.LC5:
	.string	"done count = %d\n"
	.text
	.globl	printQueue
	.type	printQueue, @function
printQueue:
.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	rdi, rax
	call	queue_empty
	test	al, al
	je	.L23
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L25
.L26:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	movsx	rdx, eax
	imul	rdx, rdx, -2043178741
	shr	rdx, 32
	add	edx, eax
	sar	edx, 19
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -8[rbp], edx
	mov	edx, DWORD PTR -8[rbp]
	imul	edx, edx, 1000005
	sub	eax, edx
	mov	DWORD PTR -8[rbp], eax
.L25:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -8[rbp], eax
	jne	.L26
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 32[rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L27:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 32[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L28
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	printQueue, .-printQueue
	.section	.rodata
	.align 8
.LC6:
	.string	"-----------------------------------"
.LC7:
	.string	"processor %d:\n"
	.text
	.globl	display
	.type	display, @function
display:
.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
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	printQueue
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L30:
	mov	eax, DWORD PTR num_processor[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L31
	lea	rdi, .LC6[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	display, .-display
	.globl	freeProcessor
	.type	freeProcessor, @function
freeProcessor:
.LFB14:
	.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 -4[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -4[rbp], 1
.L33:
	mov	eax, DWORD PTR num_processor[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L34
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	freeProcessor, .-freeProcessor
	.section	.rodata
.LC8:
	.string	"r"
.LC9:
	.string	"%d"
.LC10:
	.string	"ASSIGN"
.LC11:
	.string	"%s"
.LC12:
	.string	"EXEC"
.LC13:
	.string	"STOP"
.LC14:
	.string	"w"
.LC15:
	.string	"Queuing\n"
.LC16:
	.string	"%d "
.LC17:
	.string	"Executed\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 136
	.cfi_offset 3, -24
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, num_processor[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR num_processor[rip]
	add	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -116[rbp], 1
	jmp	.L36
.L37:
	mov	eax, DWORD PTR -116[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	initQueue
	add	DWORD PTR -116[rbp], 1
.L36:
	mov	eax, DWORD PTR num_processor[rip]
	cmp	DWORD PTR -116[rbp], eax
	jle	.L37
	jmp	.L38
.L46:
	lea	rax, -39[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L39
	lea	rdx, -39[rbp]
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -39[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -84[rbp], eax
	lea	rdx, -39[rbp]
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	eax, BYTE PTR -39[rbp]
	movsx	edx, al
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 3
	mov	rcx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	enqueue
	jmp	.L38
.L39:
	lea	rax, -39[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
	lea	rdx, -39[rbp]
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -39[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	queue_empty
	xor	eax, 1
	test	al, al
	je	.L41
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	dequeue
	mov	BYTE PTR -117[rbp], al
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rsi, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 32[rax]
	lea	ecx, 1[rdx]
	mov	DWORD PTR 32[rax], ecx
	movsx	rax, edx
	lea	rdx, [rsi+rax]
	movzx	eax, BYTE PTR -117[rbp]
	mov	BYTE PTR [rdx], al
	jmp	.L38
.L41:
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 1
	mov	DWORD PTR -104[rbp], 1
	jmp	.L42
.L44:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -112[rbp], eax
	jge	.L43
	mov	eax, DWORD PTR -104[rbp]
	mov	DWORD PTR -108[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -112[rbp], eax
.L43:
	add	DWORD PTR -104[rbp], 1
.L42:
	mov	eax, DWORD PTR num_processor[rip]
	cmp	DWORD PTR -104[rbp], eax
	jle	.L44
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdi, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 32[rax]
	lea	esi, 1[rdx]
	mov	DWORD PTR 32[rax], esi
	movsx	rax, edx
	lea	rbx, [rdi+rax]
	mov	rdi, rcx
	call	pop
	mov	BYTE PTR [rbx], al
	jmp	.L38
.L40:
	lea	rax, -39[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L57
.L38:
	lea	rdx, -39[rbp]
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, -1
	jne	.L46
	jmp	.L45
.L57:
	nop
.L45:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	DWORD PTR -100[rbp], 1
	jmp	.L47
.L50:
	mov	edx, DWORD PTR -100[rbp]
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -96[rbp], eax
	jmp	.L48
.L49:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	eax, DWORD PTR -96[rbp]
	add	eax, 1
	movsx	rdx, eax
	imul	rdx, rdx, -2043178741
	shr	rdx, 32
	add	edx, eax
	sar	edx, 19
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -96[rbp], edx
	mov	edx, DWORD PTR -96[rbp]
	imul	edx, edx, 1000005
	sub	eax, edx
	mov	DWORD PTR -96[rbp], eax
.L48:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -96[rbp], eax
	jne	.L49
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -100[rbp], 1
.L47:
	mov	eax, DWORD PTR num_processor[rip]
	cmp	DWORD PTR -100[rbp], eax
	jle	.L50
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	DWORD PTR -92[rbp], 1
	jmp	.L51
.L54:
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -88[rbp], 0
	jmp	.L52
.L53:
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -88[rbp], 1
.L52:
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 32[rax]
	cmp	DWORD PTR -88[rbp], eax
	jl	.L53
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -92[rbp], 1
.L51:
	mov	eax, DWORD PTR num_processor[rip]
	cmp	DWORD PTR -92[rbp], eax
	jle	.L54
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	freeProcessor
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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	"6388970.c"
	.text
	.comm	num_processor,4,4
	.align	2
	.global	initQueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	initQueue, %function
initQueue:
	@ 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, [fp, #-8]
	mvn	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mvn	r2, #0
	str	r2, [r3, #12]
	ldr	r0, .L2
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r0, .L2
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #20]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	1000005
	.size	initQueue, .-initQueue
	.align	2
	.global	queue_empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_empty, %function
queue_empty:
	@ 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]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	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_full
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_full, %function
queue_full:
	@ 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]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	add	r3, r3, #1
	cmp	r2, r3
	beq	.L7
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r2, .L10
	cmp	r3, r2
	bne	.L8
.L7:
	mov	r3, #1
	b	.L9
.L8:
	mov	r3, #0
.L9:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	1000004
	.size	queue_full, .-queue_full
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-9]
	ldr	r0, [fp, #-8]
	bl	queue_full
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	mov	r3, #0
	b	.L14
.L13:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmn	r3, #1
	bne	.L15
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
.L15:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	add	r0, r3, #1
	ldr	r3, .L16
	smull	r2, r3, r0, r3
	add	r3, r3, r0
	asr	r2, r3, #19
	asr	r3, r0, #31
	sub	r2, r2, r3
	mov	r1, r2
	lsl	r1, r1, #5
	sub	r1, r1, r2
	lsl	r3, r1, #6
	sub	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r0, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #12]
	add	r3, r3, r2
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	mov	r3, #1
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	-2043178741
	.size	enqueue, .-enqueue
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ 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	r0, [fp, #-16]
	bl	queue_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	mov	r3, #59
	b	.L20
.L19:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #8]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bne	.L21
	ldr	r3, [fp, #-16]
	mvn	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	mvn	r2, #0
	str	r2, [r3, #12]
	b	.L22
.L21:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	add	r0, r3, #1
	ldr	r3, .L23
	smull	r2, r3, r0, r3
	add	r3, r3, r0
	asr	r2, r3, #19
	asr	r3, r0, #31
	sub	r2, r2, r3
	mov	r1, r2
	lsl	r1, r1, #5
	sub	r1, r1, r2
	lsl	r3, r1, #6
	sub	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r0, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
.L22:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	-2043178741
	.size	dequeue, .-dequeue
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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	r0, [fp, #-16]
	bl	queue_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	mov	r3, #59
	b	.L27
.L26:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #12]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bne	.L28
	ldr	r3, [fp, #-16]
	mvn	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	mvn	r2, #0
	str	r2, [r3, #12]
	b	.L29
.L28:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	add	r1, r3, #999424
	add	r1, r1, #580
	ldr	r3, .L30
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #19
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r0, r2
	lsl	r0, r0, #5
	sub	r0, r0, r2
	lsl	r3, r0, #6
	sub	r3, r3, r0
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
.L29:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	-2043178741
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC0:
	.ascii	"QueueEmpty\000"
	.align	2
.LC1:
	.ascii	"number of tasks: %d\012\000"
	.align	2
.LC2:
	.ascii	"Queueing Tasks:\000"
	.align	2
.LC3:
	.ascii	"%c \000"
	.align	2
.LC4:
	.ascii	"%c\012\000"
	.align	2
.LC5:
	.ascii	"done count = %d\012\000"
	.text
	.align	2
	.global	printQueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	printQueue, %function
printQueue:
	@ 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	r0, [fp, #-16]
	bl	queue_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r0, .L39
	bl	puts
	b	.L34
.L33:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L39+4
	bl	printf
	ldr	r0, .L39+8
	bl	puts
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	b	.L35
.L36:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L39+12
	bl	printf
	ldr	r3, [fp, #-12]
	add	r0, r3, #1
	ldr	r3, .L39+16
	smull	r2, r3, r0, r3
	add	r3, r3, r0
	asr	r2, r3, #19
	asr	r3, r0, #31
	sub	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r3, r0, r3
	str	r3, [fp, #-12]
.L35:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L36
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L39+20
	bl	printf
.L34:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, .L39+24
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L37
.L38:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L39+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L37:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L38
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	-2043178741
	.word	.LC4
	.word	.LC5
	.size	printQueue, .-printQueue
	.section	.rodata
	.align	2
.LC6:
	.ascii	"-----------------------------------\000"
	.align	2
.LC7:
	.ascii	"processor %d:\012\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]
	ldr	r0, .L44
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L42
.L43:
	ldr	r1, [fp, #-8]
	ldr	r0, .L44+4
	bl	printf
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r0, r3
	bl	printQueue
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L42:
	ldr	r3, .L44+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L43
	ldr	r0, .L44
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC6
	.word	.LC7
	.word	num_processor
	.size	display, .-display
	.align	2
	.global	freeProcessor
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeProcessor, %function
freeProcessor:
	@ 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	r3, #0
	str	r3, [fp, #-8]
	b	.L47
.L48:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L47:
	ldr	r3, .L49
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L48
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	num_processor
	.size	freeProcessor, .-freeProcessor
	.section	.rodata
	.align	2
.LC8:
	.ascii	"r\000"
	.align	2
.LC9:
	.ascii	"%d\000"
	.align	2
.LC10:
	.ascii	"ASSIGN\000"
	.align	2
.LC11:
	.ascii	"%s\000"
	.align	2
.LC12:
	.ascii	"EXEC\000"
	.align	2
.LC13:
	.ascii	"STOP\000"
	.align	2
.LC14:
	.ascii	"w\000"
	.align	2
.LC15:
	.ascii	"Queuing\012\000"
	.align	2
.LC16:
	.ascii	"%d \000"
	.align	2
.LC17:
	.ascii	"Executed\012\000"
	.align	2
.LC18:
	.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, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-52]
	ldr	r1, .L74+4
	ldr	r0, [fp, #-56]
	bl	fopen
	str	r0, [fp, #-48]
	ldr	r2, .L74+8
	ldr	r1, .L74+12
	ldr	r0, [fp, #-48]
	bl	__isoc99_fscanf
	ldr	r3, .L74+8
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-88]
	b	.L52
.L53:
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	mov	r0, r3
	bl	initQueue
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L52:
	ldr	r3, .L74+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	ble	.L53
	b	.L54
.L62:
	sub	r3, fp, #32
	ldr	r1, .L74+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L74+20
	ldr	r0, [fp, #-48]
	bl	__isoc99_fscanf
	sub	r3, fp, #32
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-40]
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L74+20
	ldr	r0, [fp, #-48]
	bl	__isoc99_fscanf
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldrb	r2, [fp, #-32]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	enqueue
	b	.L54
.L55:
	sub	r3, fp, #32
	ldr	r1, .L74+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L56
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L74+20
	ldr	r0, [fp, #-48]
	bl	__isoc99_fscanf
	sub	r3, fp, #32
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-40]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	mov	r0, r3
	bl	queue_empty
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L57
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	mov	r0, r3
	bl	dequeue
	mov	r3, r0
	strb	r3, [fp, #-89]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r1, [r3, #16]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r2, [r3, #20]
	add	r0, r2, #1
	str	r0, [r3, #20]
	mov	r3, r2
	add	r3, r1, r3
	ldrb	r2, [fp, #-89]
	strb	r2, [r3]
	b	.L54
.L57:
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #1
	str	r3, [fp, #-80]
	mov	r3, #1
	str	r3, [fp, #-76]
	b	.L58
.L60:
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	bge	.L59
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	str	r3, [fp, #-84]
.L59:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L58:
	ldr	r3, .L74+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	ble	.L60
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	ip, r3, r2
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r1, [r3, #16]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r2, [r3, #20]
	add	r0, r2, #1
	str	r0, [r3, #20]
	mov	r3, r2
	add	r4, r1, r3
	mov	r0, ip
	bl	pop
	mov	r3, r0
	strb	r3, [r4]
	b	.L54
.L56:
	sub	r3, fp, #32
	ldr	r1, .L74+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
.L54:
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L74+20
	ldr	r0, [fp, #-48]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L62
	b	.L61
.L73:
	nop
.L61:
	ldr	r0, [fp, #-48]
	bl	fclose
	ldr	r1, .L74+32
	ldr	r0, [fp, #-52]
	bl	fopen
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L74+36
	bl	fwrite
	mov	r3, #1
	str	r3, [fp, #-72]
	b	.L63
.L66:
	ldr	r2, [fp, #-72]
	ldr	r1, .L74+40
	ldr	r0, [fp, #-36]
	bl	fprintf
	ldr	r2, [fp, #-72]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	str	r3, [fp, #-68]
	b	.L64
.L65:
	ldr	r2, [fp, #-72]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #-68]
	add	r0, r3, #1
	ldr	r3, .L74+44
	smull	r2, r3, r0, r3
	add	r3, r3, r0
	asr	r2, r3, #19
	asr	r3, r0, #31
	sub	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r3, r0, r3
	str	r3, [fp, #-68]
.L64:
	ldr	r2, [fp, #-72]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	bne	.L65
	ldr	r2, [fp, #-72]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L74+48
	ldr	r0, [fp, #-36]
	bl	fprintf
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L63:
	ldr	r3, .L74+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	ble	.L66
	ldr	r3, [fp, #-36]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L74+52
	bl	fwrite
	mov	r3, #1
	str	r3, [fp, #-64]
	b	.L67
.L70:
	ldr	r2, [fp, #-64]
	ldr	r1, .L74+40
	ldr	r0, [fp, #-36]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L68
.L69:
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L68:
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L69
	ldr	r1, [fp, #-36]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L67:
	ldr	r3, .L74+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	ble	.L70
	ldr	r0, [fp, #-36]
	bl	fclose
	ldr	r0, [fp, #-44]
	bl	freeProcessor
	mov	r3, #0
	ldr	r2, .L74
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L72
	bl	__stack_chk_fail
.L72:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC18
	.word	.LC8
	.word	num_processor
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	-2043178741
	.word	.LC4
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
