	.file	"644732.c"
	.intel_syntax noprefix
	.text
	.local	queue
	.comm	queue,8,8
	.local	command
	.comm	command,8,8
	.local	av_task
	.comm	av_task,4,4
	.local	nb_task
	.comm	nb_task,4,4
	.section	.rodata
.LC0:
	.string	"cannot read queue"
	.text
	.type	qread, @function
qread:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jns	.L2
	lea	rsi, .LC0[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	qread, .-qread
	.section	.rodata
.LC1:
	.string	"cannot truncate queue"
.LC2:
	.string	"cannot write queue"
	.text
	.type	qwrite, @function
qwrite:
.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, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	cmp	QWORD PTR -16[rbp], 0
	jne	.L5
	mov	rdx, QWORD PTR size.0[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ftruncate@PLT
	test	eax, eax
	jns	.L6
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L6:
	mov	QWORD PTR size.0[rip], 0
	jmp	.L8
.L5:
	mov	rdx, QWORD PTR size.0[rip]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR size.0[rip], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	QWORD PTR -24[rbp], rax
	je	.L8
	lea	rsi, .LC2[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	qwrite, .-qwrite
	.section	.rodata
.LC3:
	.string	"cannot fork"
.LC4:
	.string	"cannot exec command"
	.text
	.type	exec_command, @function
exec_command:
.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
	call	fork@PLT
	cmp	eax, -1
	je	.L10
	test	eax, eax
	je	.L11
	jmp	.L14
.L10:
	lea	rsi, .LC3[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L11:
	mov	rsi, QWORD PTR command[rip]
	mov	rax, QWORD PTR command[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, 0
	mov	rdi, rax
	mov	eax, 0
	call	execl@PLT
	lea	rsi, .LC4[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	exec_command, .-exec_command
	.section	.rodata
.LC5:
	.string	"cannot open queue"
.LC6:
	.string	"cannot seek"
	.text
	.type	extract, @function
extract:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR av_task[rip]
	test	eax, eax
	jne	.L16
	mov	eax, 0
	jmp	.L27
.L16:
	mov	rax, QWORD PTR queue[rip]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8220[rbp], eax
	cmp	DWORD PTR -8220[rbp], 0
	jns	.L18
	lea	rsi, .LC5[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L18:
	lea	rdx, -4112[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	qread
	mov	QWORD PTR -8216[rbp], rax
	mov	DWORD PTR -8224[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -8224[rbp]
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	cmp	al, 10
	jne	.L20
	mov	eax, DWORD PTR -8224[rbp]
	cdqe
	mov	BYTE PTR -8208[rbp+rax], 0
	jmp	.L21
.L20:
	mov	eax, DWORD PTR -8224[rbp]
	cdqe
	movzx	edx, BYTE PTR -4112[rbp+rax]
	mov	eax, DWORD PTR -8224[rbp]
	cdqe
	mov	BYTE PTR -8208[rbp+rax], dl
	add	DWORD PTR -8224[rbp], 1
.L19:
	mov	eax, DWORD PTR -8224[rbp]
	cdqe
	cmp	QWORD PTR -8216[rbp], rax
	jg	.L22
.L21:
	mov	eax, DWORD PTR -8224[rbp]
	cdqe
	cmp	QWORD PTR -8216[rbp], rax
	jne	.L23
	mov	eax, 0
	jmp	.L27
.L23:
	mov	eax, DWORD PTR -8220[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	test	rax, rax
	jns	.L24
	lea	rsi, .LC6[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L24:
	mov	eax, DWORD PTR -8224[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8216[rbp]
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	eax, DWORD PTR -8224[rbp]
	cdqe
	lea	rcx, 1[rax]
	lea	rax, -4112[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -8220[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	qwrite
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -8224[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8216[rbp]
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	eax, DWORD PTR -8224[rbp]
	cdqe
	lea	rcx, -4112[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -8220[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	qwrite
.L25:
	lea	rdx, -4112[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	qread
	mov	QWORD PTR -8216[rbp], rax
	cmp	QWORD PTR -8216[rbp], 0
	jne	.L26
	mov	eax, DWORD PTR -8220[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	qwrite
	mov	eax, DWORD PTR -8220[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	exec_command
	mov	eax, DWORD PTR av_task[rip]
	sub	eax, 1
	mov	DWORD PTR av_task[rip], eax
	mov	eax, 1
.L27:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	extract, .-extract
	.type	sig_child, @function
sig_child:
.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	DWORD PTR -4[rbp], edi
	jmp	.L30
.L31:
	mov	eax, DWORD PTR av_task[rip]
	add	eax, 1
	mov	DWORD PTR av_task[rip], eax
	mov	edx, DWORD PTR av_task[rip]
	mov	eax, DWORD PTR nb_task[rip]
	cmp	edx, eax
	jle	.L30
	mov	eax, DWORD PTR nb_task[rip]
	mov	DWORD PTR av_task[rip], eax
.L30:
	mov	edx, 1
	mov	esi, 0
	mov	edi, -1
	call	waitpid@PLT
	test	eax, eax
	jg	.L31
	call	getpid@PLT
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sig_child, .-sig_child
	.type	sig_alrm, @function
sig_alrm:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	nop
.L33:
	call	extract
	test	eax, eax
	jne	.L33
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sig_alrm, .-sig_alrm
	.type	sig_term, @function
sig_term:
.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	DWORD PTR -4[rbp], edi
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE12:
	.size	sig_term, .-sig_term
	.section	.rodata
	.align 8
.LC7:
	.string	"expect options [wake-up-time] [par-task] [queue] [command]"
.LC8:
	.string	"invalid wake-up time"
	.align 8
.LC9:
	.string	"invalid simultaneous tasks number"
.LC10:
	.string	"too many simultaneous tasks"
	.text
	.type	init, @function
init:
.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, 544
	mov	DWORD PTR -532[rbp], edi
	mov	QWORD PTR -544[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -480[rbp]
	mov	eax, 0
	mov	ecx, 19
	mov	rdi, rdx
	rep stosq
	lea	rax, sig_alrm[rip]
	mov	QWORD PTR -480[rbp], rax
	lea	rdx, -320[rbp]
	mov	eax, 0
	mov	ecx, 19
	mov	rdi, rdx
	rep stosq
	lea	rax, sig_child[rip]
	mov	QWORD PTR -320[rbp], rax
	lea	rdx, -160[rbp]
	mov	eax, 0
	mov	ecx, 19
	mov	rdi, rdx
	rep stosq
	lea	rax, sig_term[rip]
	mov	QWORD PTR -160[rbp], rax
	cmp	DWORD PTR -532[rbp], 5
	je	.L36
	lea	rsi, .LC7[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L36:
	mov	rax, QWORD PTR -544[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -516[rbp], eax
	mov	rax, QWORD PTR -544[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR nb_task[rip], eax
	mov	rax, QWORD PTR -544[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR queue[rip], rax
	mov	rax, QWORD PTR -544[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR command[rip], rax
	mov	eax, DWORD PTR nb_task[rip]
	mov	DWORD PTR av_task[rip], eax
	cmp	DWORD PTR -516[rbp], 0
	jns	.L37
	lea	rsi, .LC8[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L37:
	mov	eax, DWORD PTR nb_task[rip]
	test	eax, eax
	jle	.L38
	mov	eax, DWORD PTR nb_task[rip]
	cmp	eax, 8092
	jle	.L39
.L38:
	lea	rsi, .LC9[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L39:
	mov	eax, DWORD PTR nb_task[rip]
	cmp	eax, 16
	jle	.L40
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	warn@PLT
.L40:
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 15
	call	sigaction@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	lea	rax, -480[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 14
	call	sigaction@PLT
	lea	rax, -480[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 10
	call	sigaction@PLT
	lea	rax, -320[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 17
	call	sigaction@PLT
	cmp	DWORD PTR -516[rbp], 0
	jle	.L43
	mov	eax, DWORD PTR -516[rbp]
	cdqe
	mov	QWORD PTR -512[rbp], rax
	mov	rax, QWORD PTR -512[rbp]
	mov	QWORD PTR -496[rbp], rax
	mov	QWORD PTR -504[rbp], 0
	mov	rax, QWORD PTR -504[rbp]
	mov	QWORD PTR -488[rbp], rax
	lea	rax, -512[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	setitimer@PLT
.L43:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	init, .-init
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	init
.L45:
	call	pause@PLT
	jmp	.L45
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.local	size.0
	.comm	size.0,8,8
	.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	"644732.c"
	.text
	.local	queue
	.comm	queue,4,4
	.local	command
	.comm	command,4,4
	.local	av_task
	.comm	av_task,4,4
	.local	nb_task
	.comm	nb_task,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cannot read queue\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qread, %function
qread:
	@ 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]
	mov	r2, #4096
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L2
	ldr	r1, .L4
	mov	r0, #1
	bl	err
.L2:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	qread, .-qread
	.section	.rodata
	.align	2
.LC1:
	.ascii	"cannot truncate queue\000"
	.align	2
.LC2:
	.ascii	"cannot write queue\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qwrite, %function
qwrite:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r1, .L11+4
	mov	r0, #1
	bl	err
.L8:
	ldr	r3, .L11
	mov	r2, #0
	str	r2, [r3]
	b	.L10
.L7:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L11
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	beq	.L10
	ldr	r1, .L11+8
	mov	r0, #1
	bl	err
.L10:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	size.6590
	.word	.LC1
	.word	.LC2
	.size	qwrite, .-qwrite
	.section	.rodata
	.align	2
.LC3:
	.ascii	"cannot fork\000"
	.align	2
.LC4:
	.ascii	"cannot exec command\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exec_command, %function
exec_command:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	bl	fork
	mov	r3, r0
	cmn	r3, #1
	beq	.L14
	cmp	r3, #0
	beq	.L15
	b	.L18
.L14:
	ldr	r1, .L19
	mov	r0, #1
	bl	err
.L15:
	ldr	r3, .L19+4
	ldr	r0, [r3]
	ldr	r3, .L19+4
	ldr	r1, [r3]
	mov	r3, #0
	ldr	r2, [fp, #-8]
	bl	execl
	ldr	r1, .L19+8
	mov	r0, #1
	bl	err
.L18:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	command
	.word	.LC4
	.size	exec_command, .-exec_command
	.section	.rodata
	.align	2
.LC5:
	.ascii	"cannot open queue\000"
	.align	2
.LC6:
	.ascii	"cannot seek\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract, %function
extract:
	@ args = 0, pretend = 0, frame = 8208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #20
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L35+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	mov	r3, #0
	b	.L33
.L22:
	ldr	r3, .L35+8
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [r4, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bge	.L24
	ldr	r1, .L35+12
	mov	r0, #1
	bl	err
.L24:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-12]
	bl	qread
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
	b	.L25
.L28:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L26
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r2, r3
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	b	.L27
.L26:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r1, r3
	sub	r3, r3, #4
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r3, #1
	str	r3, [r2, #-16]
.L25:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-8]
	cmp	r2, r3
	blt	.L28
.L27:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-8]
	cmp	r2, r3
	bne	.L29
	mov	r3, #0
	b	.L33
.L29:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-12]
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L30
	ldr	r1, .L35+16
	mov	r0, #1
	bl	err
.L30:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-8]
	ldr	r3, [r3, #-16]
	sub	r3, r2, r3
	sub	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r0, [r0, #-12]
	bl	qwrite
	b	.L31
.L32:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-8]
	ldr	r3, [r3, #-16]
	sub	r3, r2, r3
	sub	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r0, [r0, #-12]
	bl	qwrite
.L31:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-12]
	bl	qread
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L32
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-12]
	bl	qwrite
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	close
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	exec_command
	ldr	r3, .L35+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L35+4
	str	r3, [r2]
	mov	r3, #1
.L33:
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC7
	.word	av_task
	.word	queue
	.word	.LC5
	.word	.LC6
	.size	extract, .-extract
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_child, %function
sig_child:
	@ 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]
	b	.L38
.L39:
	ldr	r3, .L40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L40
	str	r3, [r2]
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, .L40+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L38
	ldr	r3, .L40+4
	ldr	r3, [r3]
	ldr	r2, .L40
	str	r3, [r2]
.L38:
	mov	r2, #1
	mov	r1, #0
	mvn	r0, #0
	bl	waitpid
	mov	r3, r0
	cmp	r3, #0
	bgt	.L39
	bl	getpid
	mov	r3, r0
	mov	r1, #10
	mov	r0, r3
	bl	kill
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	av_task
	.word	nb_task
	.size	sig_child, .-sig_child
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_alrm, %function
sig_alrm:
	@ 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]
	nop
.L43:
	bl	extract
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sig_alrm, .-sig_alrm
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_term, %function
sig_term:
	@ 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	r0, #0
	bl	exit
	.size	sig_term, .-sig_term
	.section	.rodata
	.align	2
.LC8:
	.ascii	"expect options [wake-up-time] [par-task] [queue] [c"
	.ascii	"ommand]\000"
	.align	2
.LC9:
	.ascii	"invalid wake-up time\000"
	.align	2
.LC10:
	.ascii	"invalid simultaneous tasks number\000"
	.align	2
.LC11:
	.ascii	"too many simultaneous tasks\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 456
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #456
	str	r0, [fp, #-456]
	str	r1, [fp, #-460]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #428
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L54+4
	str	r3, [fp, #-428]
	sub	r3, fp, #288
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L54+8
	str	r3, [fp, #-288]
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L54+12
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-456]
	cmp	r3, #5
	beq	.L46
	ldr	r1, .L54+16
	mov	r0, #1
	bl	errx
.L46:
	ldr	r3, [fp, #-460]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-448]
	ldr	r3, [fp, #-460]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L54+20
	str	r3, [r2]
	ldr	r3, [fp, #-460]
	ldr	r3, [r3, #12]
	ldr	r2, .L54+24
	str	r3, [r2]
	ldr	r3, [fp, #-460]
	ldr	r3, [r3, #16]
	ldr	r2, .L54+28
	str	r3, [r2]
	ldr	r3, .L54+20
	ldr	r3, [r3]
	ldr	r2, .L54+32
	str	r3, [r2]
	ldr	r3, [fp, #-448]
	cmp	r3, #0
	bge	.L47
	ldr	r1, .L54+36
	mov	r0, #1
	bl	errx
.L47:
	ldr	r3, .L54+20
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L48
	ldr	r3, .L54+20
	ldr	r3, [r3]
	ldr	r2, .L54+40
	cmp	r3, r2
	ble	.L49
.L48:
	ldr	r1, .L54+44
	mov	r0, #1
	bl	errx
.L49:
	ldr	r3, .L54+20
	ldr	r3, [r3]
	cmp	r3, #16
	ble	.L50
	ldr	r0, .L54+48
	bl	warn
.L50:
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #15
	bl	sigaction
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	sub	r3, fp, #428
	mov	r2, #0
	mov	r1, r3
	mov	r0, #14
	bl	sigaction
	sub	r3, fp, #428
	mov	r2, #0
	mov	r1, r3
	mov	r0, #10
	bl	sigaction
	sub	r3, fp, #288
	mov	r2, #0
	mov	r1, r3
	mov	r0, #17
	bl	sigaction
	ldr	r3, [fp, #-448]
	cmp	r3, #0
	ble	.L53
	ldr	r3, [fp, #-448]
	str	r3, [fp, #-444]
	ldr	r3, [fp, #-444]
	str	r3, [fp, #-436]
	mov	r3, #0
	str	r3, [fp, #-440]
	ldr	r3, [fp, #-440]
	str	r3, [fp, #-432]
	sub	r3, fp, #444
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	setitimer
.L53:
	nop
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC12
	.word	sig_alrm
	.word	sig_child
	.word	sig_term
	.word	.LC8
	.word	nb_task
	.word	queue
	.word	command
	.word	av_task
	.word	.LC9
	.word	8092
	.word	.LC10
	.word	.LC11
	.size	init, .-init
	.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
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	init
.L57:
	bl	pause
	b	.L57
	.size	main, .-main
	.local	size.6590
	.comm	size.6590,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
