	.file	"103496.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Wrong command\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
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	cmp	DWORD PTR -52[rbp], 2
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	read_file
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -36[rbp], 0
	jmp	.L3
.L4:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	get_commands_from_string
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	execute_cmds
	add	DWORD PTR -36[rbp], 1
.L3:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L4
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"|\n"
	.align 8
.LC2:
	.string	"Toom many commands in one line\n"
	.text
	.globl	get_commands_from_string
	.type	get_commands_from_string, @function
get_commands_from_string:
.LFB7:
	.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, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	esi, 16
	mov	edi, 10
	call	calloc@PLT
	mov	QWORD PTR -56[rbp], rax
	lea	rdx, -72[rbp]
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -76[rbp], 0
	jmp	.L7
.L10:
	cmp	DWORD PTR -76[rbp], 9
	jg	.L8
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	parse_command
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 8[rbx], rdx
	jmp	.L9
.L8:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
.L9:
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, -72[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -64[rbp], rax
	add	DWORD PTR -76[rbp], 1
.L7:
	cmp	QWORD PTR -64[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_commands_from_string, .-get_commands_from_string
	.section	.rodata
.LC3:
	.string	" "
	.align 8
.LC4:
	.string	"Toom many arguments in one command\n"
	.text
	.globl	parse_command
	.type	parse_command, @function
parse_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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 8
	mov	edi, 21
	call	calloc@PLT
	mov	QWORD PTR -40[rbp], rax
	lea	rdx, -56[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L14
.L18:
	cmp	DWORD PTR -60[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -32[rbp], rax
.L15:
	cmp	DWORD PTR -60[rbp], 19
	jg	.L16
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rdx], rax
	jmp	.L17
.L16:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
.L17:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, -56[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -48[rbp], rax
	add	DWORD PTR -60[rbp], 1
.L14:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parse_command, .-parse_command
	.globl	execute_cmds
	.type	execute_cmds, @function
execute_cmds:
.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, 80
	mov	rax, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L22
.L27:
	mov	rdx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	cmp	DWORD PTR -56[rbp], 0
	jle	.L23
	mov	eax, DWORD PTR -56[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*8]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -56[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cdqe
	mov	eax, DWORD PTR -28[rbp+rax*8]
	mov	edi, eax
	call	close@PLT
.L23:
	mov	eax, DWORD PTR -56[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	lea	rdx, -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jne	.L24
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, 1
	cmp	DWORD PTR -56[rbp], eax
	je	.L25
	mov	eax, DWORD PTR -56[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*8]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -56[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cdqe
	mov	eax, DWORD PTR -28[rbp+rax*8]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
.L25:
	cmp	DWORD PTR -56[rbp], 0
	je	.L26
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 1
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cdqe
	mov	eax, DWORD PTR -28[rbp+rax*8]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 1
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*8]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
.L26:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	edi, 0
	call	exit@PLT
.L24:
	add	DWORD PTR -56[rbp], 1
.L22:
	mov	eax, DWORD PTR -72[rbp]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L27
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 1
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*8]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 1
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cdqe
	mov	eax, DWORD PTR -28[rbp+rax*8]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	wait@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	execute_cmds, .-execute_cmds
	.section	.rodata
.LC5:
	.string	"r"
.LC6:
	.string	"Too many lines in file\n"
	.text
	.globl	read_file
	.type	read_file, @function
read_file:
.LFB10:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L30
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	rdi, rdx
	call	fputs@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	mov	esi, 8
	mov	edi, 200
	call	calloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	esi, 1
	mov	edi, 2001
	call	calloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L31
.L33:
	cmp	DWORD PTR -60[rbp], 200
	jne	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
.L32:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -60[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	add	DWORD PTR -60[rbp], 1
.L31:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 2000
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L33
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	read_file, .-read_file
	.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	"103496.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Wrong command\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L7+4
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L7+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	read_file
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L3
.L4:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	get_commands_from_string
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	bl	execute_cmds
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L3:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L4
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	stderr
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"|\012\000"
	.align	2
.LC3:
	.ascii	"Toom many commands in one line\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_commands_from_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_commands_from_string, %function
get_commands_from_string:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #8
	mov	r0, #10
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-28]
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L16+4
	ldr	r0, [fp, #-52]
	bl	strtok_r
	str	r0, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L10
.L13:
	ldr	r3, [fp, #-32]
	cmp	r3, #9
	bgt	.L11
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	sub	r3, fp, #60
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	parse_command
	mov	r2, r4
	sub	r3, fp, #60
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	b	.L12
.L11:
	ldr	r3, .L16+8
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L16+12
	bl	fwrite
.L12:
	ldr	r3, [fp, #-40]
	sub	r2, fp, #40
	ldr	r1, .L16+4
	mov	r0, r3
	bl	strtok_r
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L10:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	mov	r2, r3
	sub	r3, fp, #24
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	ldr	r0, [fp, #-48]
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC2
	.word	stderr
	.word	.LC3
	.size	get_commands_from_string, .-get_commands_from_string
	.section	.rodata
	.align	2
.LC5:
	.ascii	" \000"
	.align	2
.LC6:
	.ascii	"Toom many arguments in one command\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_command
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_command, %function
parse_command:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #4
	mov	r0, #21
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L26+4
	ldr	r0, [fp, #-44]
	bl	strtok_r
	str	r0, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L19
.L23:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-16]
.L20:
	ldr	r3, [fp, #-24]
	cmp	r3, #19
	bgt	.L21
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	b	.L22
.L21:
	ldr	r3, .L26+8
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L26+12
	bl	fwrite
.L22:
	ldr	r3, [fp, #-32]
	sub	r2, fp, #32
	ldr	r1, .L26+4
	mov	r0, r3
	bl	strtok_r
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L19:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	mov	r2, r3
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	ldr	r0, [fp, #-40]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	.LC5
	.word	stderr
	.word	.LC6
	.size	parse_command, .-parse_command
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute_cmds
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_cmds, %function
execute_cmds:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	sub	r3, fp, #52
	stm	r3, {r0, r1}
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L29
.L34:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	add	r2, r2, r3
	sub	r3, fp, #32
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	ble	.L30
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-20]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-16]
	mov	r0, r3
	bl	close
.L30:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	sub	r2, fp, #24
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	beq	.L32
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-20]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-16]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
.L32:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
.L33:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	mov	r1, r2
	mov	r0, r3
	bl	execvp
	mov	r0, #0
	bl	exit
.L31:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L29:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L34
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-20]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-16]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	wait
	nop
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC8
	.size	execute_cmds, .-execute_cmds
	.section	.rodata
	.align	2
.LC9:
	.ascii	"r\000"
	.align	2
.LC10:
	.ascii	"Too many lines in file\012\000"
	.text
	.align	2
	.global	read_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_file, %function
read_file:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r1, .L44
	ldr	r0, [fp, #-44]
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L39
	ldr	r3, .L44+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r4
	mov	r0, r3
	bl	fputs
	mov	r0, #1
	bl	exit
.L39:
	mov	r1, #4
	mov	r0, #200
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r1, #1
	ldr	r0, .L44+8
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L40
.L42:
	ldr	r3, [fp, #-36]
	cmp	r3, #200
	bne	.L41
	ldr	r3, .L44+4
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L44+12
	bl	fwrite
.L41:
	ldr	r0, [fp, #-24]
	bl	strlen
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	mov	r1, #1
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L40:
	ldr	r2, [fp, #-32]
	mov	r1, #2000
	ldr	r0, [fp, #-24]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r0, [fp, #-32]
	bl	fclose
	ldr	r3, [fp, #-40]
	mov	r2, r3
	sub	r3, fp, #20
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-40]
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC9
	.word	stderr
	.word	2001
	.word	.LC10
	.size	read_file, .-read_file
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
