	.file	"1254687.c"
	.intel_syntax noprefix
	.text
	.globl	proc
	.bss
	.align 32
	.type	proc, @object
	.size	proc, 16384
proc:
	.zero	16384
	.globl	path
	.align 32
	.type	path, @object
	.size	path, 4096
path:
	.zero	4096
	.globl	args
	.align 32
	.type	args, @object
	.size	args, 4096
args:
	.zero	4096
	.globl	dump
	.align 32
	.type	dump, @object
	.size	dump, 4096
dump:
	.zero	4096
	.globl	nProc
	.align 4
	.type	nProc, @object
	.size	nProc, 4
nProc:
	.zero	4
	.globl	result
	.align 4
	.type	result, @object
	.size	result, 4
result:
	.zero	4
	.text
	.globl	file_exist
	.type	file_exist, @function
file_exist:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	sete	al
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	file_exist, .-file_exist
	.section	.rodata
.LC0:
	.string	"Unwaited Child Processes:"
.LC1:
	.string	"%d\n"
	.text
	.globl	print_child_cmd
	.type	print_child_cmd, @function
print_child_cmd:
.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
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, proc[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR nProc[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_child_cmd, .-print_child_cmd
	.section	.rodata
.LC2:
	.string	"%d not a valid child\n"
	.text
	.globl	wait_cmd
	.type	wait_cmd, @function
wait_cmd:
.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	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, proc[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L9
	mov	eax, DWORD PTR nProc[rip]
	sub	eax, 1
	mov	DWORD PTR nProc[rip], eax
	mov	eax, DWORD PTR nProc[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, proc[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, proc[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L9:
	add	DWORD PTR -12[rbp], 1
.L8:
	mov	eax, DWORD PTR nProc[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L10
	mov	eax, DWORD PTR nProc[rip]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L11
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L11:
	lea	rcx, -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -16[rbp]
	sar	eax, 8
	mov	DWORD PTR result[rip], eax
.L7:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	wait_cmd, .-wait_cmd
	.globl	result_cmd
	.type	result_cmd, @function
result_cmd:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR result[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	result_cmd, .-result_cmd
	.section	.rodata
.LC3:
	.string	"printchild"
.LC4:
	.string	"wait"
.LC5:
	.string	"%d"
.LC6:
	.string	"result"
.LC7:
	.string	"%s not found\n"
.LC8:
	.string	"%[^\n]"
.LC9:
	.string	"Child %d in background\n"
.LC10:
	.string	"%[^\n] "
.LC11:
	.string	"YWIMC > "
.LC12:
	.string	"%s"
.LC13:
	.string	"quit"
.LC14:
	.string	"Goodbye!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	jmp	.L16
.L40:
	lea	rsi, .LC3[rip]
	lea	rdi, path[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	mov	eax, 0
	call	print_child_cmd
	jmp	.L18
.L17:
	lea	rsi, .LC4[rip]
	lea	rdi, path[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	lea	rax, -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, eax
	call	wait_cmd
	jmp	.L18
.L19:
	lea	rsi, .LC6[rip]
	lea	rdi, path[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	eax, 0
	call	result_cmd
	jmp	.L18
.L20:
	lea	rdi, path[rip]
	call	file_exist
	xor	eax, 1
	test	al, al
	je	.L21
	lea	rsi, path[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	mov	BYTE PTR args[rip], 0
	lea	rsi, args[rip]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, args[rip]
	call	strlen@PLT
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, args[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 38
	jne	.L22
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, 2
	cdqe
	lea	rdx, args[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	jne	.L22
	mov	eax, 1
	jmp	.L23
.L22:
	mov	eax, 0
.L23:
	mov	BYTE PTR -105[rbp], al
	and	BYTE PTR -105[rbp], 1
	cmp	BYTE PTR -105[rbp], 0
	je	.L24
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, 2
	cdqe
	lea	rdx, args[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, args[rip]
	mov	BYTE PTR [rax+rdx], 0
.L24:
	mov	DWORD PTR -92[rbp], 0
	mov	DWORD PTR -96[rbp], 1
	jmp	.L25
.L27:
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, args[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	jne	.L26
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, args[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	je	.L26
	add	DWORD PTR -92[rbp], 1
.L26:
	add	DWORD PTR -96[rbp], 1
.L25:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jl	.L27
	mov	eax, DWORD PTR -92[rbp]
	add	eax, 2
	mov	rdx, rsp
	mov	rbx, rdx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L28:
	cmp	rsp, rdx
	je	.L29
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L28
.L29:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L30
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L30:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, path[rip]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -92[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], 0
	mov	DWORD PTR -100[rbp], 1
	mov	DWORD PTR -88[rbp], 1
	jmp	.L31
.L33:
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, args[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	jne	.L32
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, args[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	je	.L32
	mov	eax, DWORD PTR -100[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -100[rbp], edx
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	lea	rcx, args[rip]
	add	rcx, rdx
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	mov	QWORD PTR [rdx+rax*8], rcx
.L32:
	add	DWORD PTR -88[rbp], 1
.L31:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jl	.L33
	mov	DWORD PTR -84[rbp], 0
	jmp	.L34
.L36:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, args[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	jne	.L35
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, args[rip]
	mov	BYTE PTR [rax+rdx], 0
.L35:
	add	DWORD PTR -84[rbp], 1
.L34:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jl	.L36
	call	fork@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L37
	mov	eax, DWORD PTR nProc[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR nProc[rip], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, proc[rip]
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	cmp	BYTE PTR -105[rbp], 0
	je	.L38
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L39
.L38:
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	wait_cmd
	jmp	.L39
.L37:
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, path[rip]
	call	execv@PLT
.L39:
	mov	rsp, rbx
.L18:
	mov	edi, 10
	call	putchar@PLT
	lea	rsi, dump[rip]
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L16:
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, path[rip]
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, .LC13[rip]
	lea	rdi, path[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"1254687.c"
	.text
	.comm	proc,16384,4
	.comm	path,4096,4
	.comm	args,4096,4
	.comm	dump,4096,4
	.global	nProc
	.bss
	.align	2
	.type	nProc, %object
	.size	nProc, 4
nProc:
	.space	4
	.comm	result,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	file_exist
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_exist, %function
file_exist:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	file_exist, .-file_exist
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Unwaited Child Processes:\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	print_child_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_child_cmd, %function
print_child_cmd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L9
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r2, .L9+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L9+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, .L9+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L8
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	proc
	.word	.LC2
	.word	nProc
	.size	print_child_cmd, .-print_child_cmd
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d not a valid child\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wait_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_cmd, %function
wait_cmd:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L12
.L14:
	ldr	r2, .L18+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L13
	ldr	r3, .L18+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L18+8
	str	r3, [r2]
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r2, .L18+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L18+4
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
.L13:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L12:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L14
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L15
	ldr	r1, [fp, #-24]
	ldr	r0, .L18+12
	bl	printf
	b	.L11
.L15:
	sub	r3, fp, #16
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	waitpid
	ldr	r3, [fp, #-16]
	asr	r3, r3, #8
	ldr	r2, .L18+16
	str	r3, [r2]
.L11:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC4
	.word	proc
	.word	nProc
	.word	.LC3
	.word	result
	.size	wait_cmd, .-wait_cmd
	.align	2
	.global	result_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	result_cmd, %function
result_cmd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L21
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+4
	bl	printf
	nop
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	result
	.word	.LC2
	.size	result_cmd, .-result_cmd
	.section	.rodata
	.align	2
.LC5:
	.ascii	"printchild\000"
	.align	2
.LC6:
	.ascii	"wait\000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"result\000"
	.align	2
.LC9:
	.ascii	"%s not found\012\000"
	.align	2
.LC10:
	.ascii	"%[^\012]\000"
	.align	2
.LC11:
	.ascii	"Child %d in background\012\000"
	.align	2
.LC12:
	.ascii	"%[^\012] \000"
	.align	2
.LC13:
	.ascii	"YWIMC > \000"
	.align	2
.LC14:
	.ascii	"%s\000"
	.align	2
.LC15:
	.ascii	"quit\000"
	.align	2
.LC16:
	.ascii	"Goodbye!\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	b	.L24
.L45:
	ldr	r1, .L48+4
	ldr	r0, .L48+8
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	bl	print_child_cmd
	b	.L26
.L25:
	ldr	r1, .L48+12
	ldr	r0, .L48+8
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L48+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	wait_cmd
	b	.L26
.L27:
	ldr	r1, .L48+20
	ldr	r0, .L48+8
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	bl	result_cmd
	b	.L26
.L28:
	ldr	r0, .L48+8
	bl	file_exist
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L29
	ldr	r1, .L48+8
	ldr	r0, .L48+24
	bl	printf
.L29:
	ldr	r3, .L48+28
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, .L48+28
	ldr	r0, .L48+32
	bl	__isoc99_scanf
	ldr	r0, .L48+28
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, .L48+28
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #38
	bne	.L30
	ldr	r3, [fp, #-32]
	sub	r3, r3, #2
	ldr	r2, .L48+28
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L30
	mov	r3, #1
	b	.L31
.L30:
	mov	r3, #0
.L31:
	strb	r3, [fp, #-57]
	ldrb	r3, [fp, #-57]
	and	r3, r3, #1
	strb	r3, [fp, #-57]
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-32]
	sub	r3, r3, #2
	ldr	r2, .L48+28
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, .L48+28
	mov	r1, #0
	strb	r1, [r2, r3]
.L32:
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-48]
	b	.L33
.L35:
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r2, .L48+28
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L34
	ldr	r2, .L48+28
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L34
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L34:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L33:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L35
	ldr	r3, [fp, #-44]
	add	ip, r3, #2
	mov	r3, sp
	mov	r4, r3
	sub	r3, ip, #1
	str	r3, [fp, #-28]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, .L48+8
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	mov	r3, #1
	str	r3, [fp, #-52]
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L36
.L38:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	ldr	r2, .L48+28
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L37
	ldr	r2, .L48+28
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L37
	ldr	r3, [fp, #-52]
	add	r2, r3, #1
	str	r2, [fp, #-52]
	ldr	r2, [fp, #-40]
	ldr	r1, .L48+28
	add	r1, r2, r1
	ldr	r2, [fp, #-24]
	str	r1, [r2, r3, lsl #2]
.L37:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L36:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L38
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L39
.L41:
	ldr	r2, .L48+28
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L40
	ldr	r2, .L48+28
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L40:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L39:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L41
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L42
	ldr	r3, .L48+36
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L48+36
	str	r2, [r1]
	ldr	r1, .L48+40
	ldr	r2, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L43
	ldr	r1, [fp, #-20]
	ldr	r0, .L48+44
	bl	printf
	b	.L44
.L43:
	ldr	r0, [fp, #-20]
	bl	wait_cmd
	b	.L44
.L42:
	ldr	r1, [fp, #-24]
	ldr	r0, .L48+8
	bl	execv
.L44:
	mov	sp, r4
.L26:
	mov	r0, #10
	bl	putchar
	ldr	r1, .L48+48
	ldr	r0, .L48+52
	bl	__isoc99_scanf
.L24:
	ldr	r0, .L48+56
	bl	printf
	ldr	r1, .L48+8
	ldr	r0, .L48+60
	bl	__isoc99_scanf
	ldr	r1, .L48+64
	ldr	r0, .L48+8
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	ldr	r0, .L48+68
	bl	puts
	mov	r3, #0
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC17
	.word	.LC5
	.word	path
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	args
	.word	.LC10
	.word	nProc
	.word	proc
	.word	.LC11
	.word	dump
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
