	.file	"111078622.c"
	.intel_syntax noprefix
	.text
	.globl	dir_path
	.section	.rodata
.LC0:
	.string	"/home/andrea/Scrivania/src"
	.section	.data.rel.local,"aw"
	.align 8
	.type	dir_path, @object
	.size	dir_path, 8
dir_path:
	.quad	.LC0
	.globl	fd
	.bss
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.zero	4
	.globl	pid_list
	.align 8
	.type	pid_list, @object
	.size	pid_list, 8
pid_list:
	.zero	8
	.globl	pid_list_length
	.align 4
	.type	pid_list_length, @object
	.size	pid_list_length, 4
pid_list_length:
	.zero	4
	.section	.rodata
.LC1:
	.string	"%s : exists\n"
.LC2:
	.string	"%s : do not exists\n"
.LC3:
	.string	"chdir()"
.LC4:
	.string	"hello_world.c"
.LC5:
	.string	"output.txt"
.LC6:
	.string	"open()"
.LC7:
	.string	"signal"
.LC8:
	.string	"inotify_init"
	.align 8
.LC9:
	.string	"read() from inotify fd returned 0!"
.LC10:
	.string	"read(): EINTR"
.LC11:
	.string	"read()"
.LC12:
	.string	"modificato"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	sub	rsp, 96
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR dir_path[rip]
	mov	rdi, rax
	call	check_file_existence
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR dir_path[rip]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	mov	rax, QWORD PTR dir_path[rip]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR dir_path[rip]
	mov	esi, 493
	mov	rdi, rax
	call	mkdir@PLT
.L3:
	mov	rax, QWORD PTR dir_path[rip]
	mov	rdi, rax
	call	chdir@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], -1
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rax, .LC4[rip]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	check_file_existence
	test	eax, eax
	jne	.L5
	mov	eax, 0
	call	create_hello_world
.L5:
	mov	edx, 384
	mov	esi, 577
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rsi, parent_process_signal_handler[rip]
	mov	edi, 17
	call	signal@PLT
	cmp	rax, -1
	jne	.L7
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	call	inotify_init@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], -1
	jne	.L8
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	rcx, QWORD PTR dir_path[rip]
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	inotify_add_watch@PLT
	mov	DWORD PTR -112[rbp], eax
	cmp	DWORD PTR -112[rbp], -1
	jne	.L9
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	DWORD PTR -108[rbp], 4096
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L10:
	cmp	rsp, rdx
	je	.L11
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L10
.L11:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L12
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L12:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	call	clock@PLT
	mov	QWORD PTR -88[rbp], rax
.L20:
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -104[rbp], eax
	cmp	DWORD PTR -104[rbp], 0
	jne	.L13
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	cmp	DWORD PTR -104[rbp], -1
	jne	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L15
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L16
.L15:
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -96[rbp], rax
	jmp	.L17
.L19:
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -56[rbp], rax
	call	clock@PLT
	sub	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rcx, QWORD PTR -48[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	DWORD PTR -100[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	jne	.L18
	cmp	DWORD PTR -100[rbp], 1000
	jle	.L18
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, 0
	call	fork_and_compile
	call	clock@PLT
	mov	QWORD PTR -88[rbp], rax
.L18:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	eax, eax
	add	rax, 16
	add	QWORD PTR -96[rbp], rax
.L17:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	cmp	QWORD PTR -96[rbp], rax
	jb	.L19
.L16:
	jmp	.L20
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	check_file_existence
	.type	check_file_existence, @function
check_file_existence:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	cmp	eax, -1
	je	.L23
	mov	eax, 1
	jmp	.L24
.L23:
	mov	eax, 0
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check_file_existence, .-check_file_existence
	.section	.rodata
.LC13:
	.string	"malloc()"
	.text
	.globl	concat
	.type	concat, @function
concat:
.LFB8:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L26
	lea	rdi, .LC13[rip]
	call	perror@PLT
.L26:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	concat, .-concat
	.section	.rodata
.LC14:
	.string	"#include <stdio.h>"
.LC15:
	.string	"int main() {"
.LC16:
	.string	"\tprintf(\"Hello, World!\");"
.LC17:
	.string	"\treturn 0;"
.LC18:
	.string	"}"
.LC19:
	.string	"\n"
.LC20:
	.string	"write()"
	.text
	.globl	create_hello_world
	.type	create_hello_world, @function
create_hello_world:
.LFB9:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edx, 384
	mov	esi, 577
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], -1
	jne	.L29
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	lea	rax, .LC14[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC15[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC16[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC17[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC18[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -72[rbp], 5
	mov	DWORD PTR -80[rbp], 0
	jmp	.L30
.L32:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	rax, QWORD PTR -64[rbp+rax*8]
	mov	rdi, rax
	call	strlen@PLT
	lea	rbx, 1[rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	rax, QWORD PTR -64[rbp+rax*8]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	concat
	mov	rcx, rax
	mov	eax, DWORD PTR -76[rbp]
	mov	rdx, rbx
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], -1
	jne	.L31
	lea	rdi, .LC20[rip]
	call	perror@PLT
.L31:
	add	DWORD PTR -80[rbp], 1
.L30:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L32
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	create_hello_world, .-create_hello_world
	.section	.rodata
.LC21:
	.string	"[process_signal_handler]"
.LC22:
	.string	"zombie"
	.align 8
.LC23:
	.string	"pid_list_length before wait: %d\n"
	.align 8
.LC24:
	.string	"pid_list_length after wait: %d\n"
	.text
	.globl	parent_process_signal_handler
	.type	parent_process_signal_handler, @function
parent_process_signal_handler:
.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
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	eax, DWORD PTR pid_list_length[rip]
	test	eax, eax
	jle	.L36
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	eax, DWORD PTR pid_list_length[rip]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR pid_list[rip]
	mov	eax, DWORD PTR pid_list_length[rip]
	cdqe
	sal	rax, 2
	sub	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR pid_list_length[rip]
	sub	eax, 1
	mov	DWORD PTR pid_list_length[rip], eax
	mov	eax, DWORD PTR pid_list_length[rip]
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
.L36:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	parent_process_signal_handler, .-parent_process_signal_handler
	.section	.rodata
.LC25:
	.string	"gcc"
.LC26:
	.string	"-o"
.LC27:
	.string	"hello"
.LC28:
	.string	"/usr/bin/gcc"
.LC29:
	.string	"execve()"
.LC30:
	.string	"fork() failed"
.LC31:
	.string	"[parent] waitpid"
	.align 8
.LC32:
	.string	"[parent] child process killed by signal %d\n"
	.align 8
.LC33:
	.string	"[parent] child process stopped by signal %d\n"
	.align 8
.LC34:
	.string	"[parent] child process continued"
	.align 8
.LC35:
	.string	"[parent] compilation exit value: %d\n"
	.text
	.globl	fork_and_compile
	.type	fork_and_compile, @function
fork_and_compile:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -60[rbp], -1
	call	fork@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], -1
	je	.L38
	cmp	DWORD PTR -56[rbp], 0
	jne	.L39
	lea	rax, .LC25[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC26[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC27[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	rdx, QWORD PTR environ[rip]
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC28[rip]
	call	execve@PLT
	lea	rdi, .LC29[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L38:
	lea	rdi, .LC30[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L48:
	nop
.L39:
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], -1
	jne	.L40
	lea	rdi, .LC31[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L40:
	mov	eax, DWORD PTR -64[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L41
	mov	eax, DWORD PTR -64[rbp]
	sar	eax, 8
	and	eax, 255
	mov	DWORD PTR -60[rbp], eax
	jmp	.L42
.L41:
	mov	eax, DWORD PTR -64[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L43
	mov	eax, DWORD PTR -64[rbp]
	and	eax, 127
	mov	esi, eax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L42
.L43:
	mov	eax, DWORD PTR -64[rbp]
	movzx	eax, al
	cmp	eax, 127
	jne	.L44
	mov	eax, DWORD PTR -64[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L42
.L44:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, 65535
	jne	.L42
	lea	rdi, .LC34[rip]
	call	puts@PLT
.L42:
	mov	eax, DWORD PTR -64[rbp]
	and	eax, 127
	test	eax, eax
	je	.L45
	mov	eax, DWORD PTR -64[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L48
.L45:
	cmp	DWORD PTR -60[rbp], -1
	je	.L49
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -60[rbp], 0
	jne	.L49
	mov	eax, 0
	call	fork_and_execute
.L49:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	fork_and_compile, .-fork_and_compile
	.section	.rodata
.LC36:
	.string	"realloc()"
.LC37:
	.string	"problema con dup2"
.LC38:
	.string	"./hello "
.LC39:
	.string	"/hello"
	.text
	.globl	fork_and_execute
	.type	fork_and_execute, @function
fork_and_execute:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR pid_list_length[rip]
	add	eax, 1
	mov	DWORD PTR pid_list_length[rip], eax
	mov	eax, DWORD PTR pid_list_length[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR pid_list[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR pid_list[rip], rax
	mov	rax, QWORD PTR pid_list[rip]
	test	rax, rax
	jne	.L51
	lea	rdi, .LC36[rip]
	call	perror@PLT
.L51:
	call	fork@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	je	.L52
	cmp	DWORD PTR -44[rbp], 0
	je	.L53
	jmp	.L57
.L52:
	lea	rdi, .LC30[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L53:
	mov	rdx, QWORD PTR pid_list[rip]
	mov	eax, DWORD PTR pid_list_length[rip]
	cdqe
	sal	rax, 2
	sub	rax, 4
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR fd[rip]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	cmp	eax, -1
	jne	.L55
	lea	rdi, .LC37[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L55:
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	lea	rax, .LC38[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR dir_path[rip]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	concat
	mov	rcx, rax
	lea	rdx, -40[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	execve@PLT
	lea	rdi, .LC29[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L57:
	mov	rdx, QWORD PTR pid_list[rip]
	mov	eax, DWORD PTR pid_list_length[rip]
	cdqe
	sal	rax, 2
	sub	rax, 4
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	fork_and_execute, .-fork_and_execute
	.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	"111078622.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"#include <stdio.h>\000"
	.align	2
.LC1:
	.ascii	"int main() {\000"
	.align	2
.LC2:
	.ascii	"\011printf(\"Hello, World!\");\000"
	.align	2
.LC3:
	.ascii	"\011return 0;\000"
	.align	2
.LC4:
	.ascii	"}\000"
	.align	2
.LC6:
	.ascii	"gcc\000"
	.align	2
.LC7:
	.ascii	"hello_world.c\000"
	.align	2
.LC8:
	.ascii	"-o\000"
	.align	2
.LC9:
	.ascii	"hello\000"
	.text
	.global	dir_path
	.section	.rodata
	.align	2
.LC11:
	.ascii	"/home/andrea/Scrivania/src\000"
	.data
	.align	2
	.type	dir_path, %object
	.size	dir_path, 4
dir_path:
	.word	.LC11
	.comm	fd,4,4
	.comm	pid_list,4,4
	.global	pid_list_length
	.bss
	.align	2
	.type	pid_list_length, %object
	.size	pid_list_length, 4
pid_list_length:
	.space	4
	.section	.rodata
	.align	2
.LC12:
	.ascii	"%s : exists\012\000"
	.align	2
.LC13:
	.ascii	"%s : do not exists\012\000"
	.align	2
.LC14:
	.ascii	"chdir()\000"
	.align	2
.LC15:
	.ascii	"output.txt\000"
	.align	2
.LC16:
	.ascii	"open()\000"
	.align	2
.LC17:
	.ascii	"signal\000"
	.align	2
.LC18:
	.ascii	"inotify_init\000"
	.align	2
.LC19:
	.ascii	"read() from inotify fd returned 0!\000"
	.align	2
.LC20:
	.ascii	"read(): EINTR\000"
	.align	2
.LC21:
	.ascii	"read()\000"
	.align	2
.LC22:
	.ascii	"modificato\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	check_file_existence
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+8
	bl	printf
	b	.L3
.L2:
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+12
	bl	printf
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r1, .L19+16
	mov	r0, r3
	bl	mkdir
.L3:
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L19+20
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, .L19+24
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-48]
	bl	check_file_existence
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	bl	create_hello_world
.L5:
	mov	r2, #384
	ldr	r1, .L19+28
	ldr	r0, .L19+32
	bl	open
	mov	r3, r0
	ldr	r2, .L19+36
	str	r3, [r2]
	ldr	r3, .L19+36
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L19+40
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r1, .L19+44
	mov	r0, #17
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L19+48
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	bl	inotify_init
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L19+52
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	inotify_add_watch
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L19+52
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	mov	r3, #4096
	str	r3, [fp, #-36]
	ldr	ip, [fp, #-36]
	sub	r3, ip, #1
	str	r3, [fp, #-32]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-28]
	bl	clock
	str	r0, [fp, #-56]
.L17:
	ldr	r3, [fp, #-36]
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-44]
	bl	read
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L19+56
	bl	printf
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L12
	ldr	r0, .L19+60
	bl	puts
	b	.L13
.L12:
	ldr	r0, .L19+64
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-60]
	b	.L14
.L16:
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-20]
	bl	clock
	mov	r2, r0
	ldr	r3, [fp, #-56]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, .L19+68
	smull	r1, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	bne	.L15
	ldr	r3, [fp, #-12]
	cmp	r3, #1000
	ble	.L15
	ldr	r0, .L19+72
	bl	puts
	bl	fork_and_compile
	bl	clock
	str	r0, [fp, #-56]
.L15:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	add	r3, r3, #16
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	str	r3, [fp, #-60]
.L14:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	bcc	.L16
.L13:
	b	.L17
.L20:
	.align	2
.L19:
	.word	.LC23
	.word	dir_path
	.word	.LC12
	.word	.LC13
	.word	493
	.word	.LC14
	.word	.LC7
	.word	577
	.word	.LC15
	.word	fd
	.word	.LC16
	.word	parent_process_signal_handler
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	274877907
	.word	.LC22
	.size	main, .-main
	.align	2
	.global	check_file_existence
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_file_existence, %function
check_file_existence:
	@ 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	r1, #0
	ldr	r0, [fp, #-8]
	bl	access
	mov	r3, r0
	cmn	r3, #1
	beq	.L22
	mov	r3, #1
	b	.L23
.L22:
	mov	r3, #0
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	check_file_existence, .-check_file_existence
	.section	.rodata
	.align	2
.LC24:
	.ascii	"malloc()\000"
	.text
	.align	2
	.global	concat
	.syntax unified
	.arm
	.fpu softvfp
	.type	concat, %function
concat:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L27
	bl	perror
.L25:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	strcpy
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	strcat
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC24
	.size	concat, .-concat
	.section	.rodata
	.align	2
.LC26:
	.ascii	"\012\000"
	.align	2
.LC27:
	.ascii	"write()\000"
	.align	2
.LC25:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create_hello_world
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_hello_world, %function
create_hello_world:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #384
	ldr	r1, .L35+4
	ldr	r0, .L35+8
	bl	open
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L35+12
	bl	perror
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, .L35+16
	sub	ip, fp, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #5
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L31
.L33:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-24]
	ldr	r1, .L35+20
	mov	r0, r3
	bl	concat
	mov	r4, r0
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-24]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-48]
	bl	write
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L32
	ldr	r0, .L35+24
	bl	perror
.L32:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L31:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L33
	ldr	r0, [fp, #-48]
	bl	close
	nop
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC28
	.word	577
	.word	.LC7
	.word	.LC16
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	create_hello_world, .-create_hello_world
	.section	.rodata
	.align	2
.LC29:
	.ascii	"[process_signal_handler]\000"
	.align	2
.LC30:
	.ascii	"zombie\000"
	.align	2
.LC31:
	.ascii	"pid_list_length before wait: %d\012\000"
	.align	2
.LC32:
	.ascii	"pid_list_length after wait: %d\012\000"
	.text
	.align	2
	.global	parent_process_signal_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	parent_process_signal_handler, %function
parent_process_signal_handler:
	@ 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	r0, .L40
	bl	puts
	ldr	r3, .L40+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L39
	ldr	r0, .L40+8
	bl	puts
	ldr	r3, .L40+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L40+12
	bl	printf
	ldr	r3, .L40+16
	ldr	r2, [r3]
	ldr	r3, .L40+4
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	ldr	r3, .L40+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L40+4
	str	r3, [r2]
	ldr	r3, .L40+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L40+20
	bl	printf
.L39:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC29
	.word	pid_list_length
	.word	.LC30
	.word	.LC31
	.word	pid_list
	.word	.LC32
	.size	parent_process_signal_handler, .-parent_process_signal_handler
	.section	.rodata
	.align	2
.LC34:
	.ascii	"/usr/bin/gcc\000"
	.align	2
.LC35:
	.ascii	"execve()\000"
	.align	2
.LC36:
	.ascii	"fork() failed\000"
	.align	2
.LC37:
	.ascii	"[parent] waitpid\000"
	.align	2
.LC38:
	.ascii	"[parent] child process killed by signal %d\012\000"
	.align	2
.LC39:
	.ascii	"[parent] child process stopped by signal %d\012\000"
	.align	2
.LC40:
	.ascii	"[parent] child process continued\000"
	.align	2
.LC41:
	.ascii	"[parent] compilation exit value: %d\012\000"
	.align	2
.LC33:
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	0
	.align	2
.LC42:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fork_and_compile
	.syntax unified
	.arm
	.fpu softvfp
	.type	fork_and_compile, %function
fork_and_compile:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-40]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	beq	.L43
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L44
	ldr	r3, .L55+4
	sub	ip, fp, #28
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r3, .L55+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L55+12
	ldr	r2, [r3]
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L55+16
	bl	execve
	ldr	r0, .L55+20
	bl	perror
	mov	r0, #1
	bl	exit
.L43:
	ldr	r0, .L55+24
	bl	puts
	mov	r0, #1
	bl	exit
.L53:
	nop
.L44:
	sub	r3, fp, #44
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	waitpid
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L45
	ldr	r0, .L55+28
	bl	perror
	mov	r0, #1
	bl	exit
.L45:
	ldr	r3, [fp, #-44]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L46
	ldr	r3, [fp, #-44]
	asr	r3, r3, #8
	and	r3, r3, #255
	str	r3, [fp, #-40]
	b	.L47
.L46:
	ldr	r3, [fp, #-44]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L48
	ldr	r3, [fp, #-44]
	and	r3, r3, #127
	mov	r1, r3
	ldr	r0, .L55+32
	bl	printf
	b	.L47
.L48:
	ldr	r3, [fp, #-44]
	and	r3, r3, #255
	cmp	r3, #127
	bne	.L49
	ldr	r3, [fp, #-44]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L55+36
	bl	printf
	b	.L47
.L49:
	ldr	r3, [fp, #-44]
	ldr	r2, .L55+40
	cmp	r3, r2
	bne	.L47
	ldr	r0, .L55+44
	bl	puts
.L47:
	ldr	r3, [fp, #-44]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-44]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L53
.L50:
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	beq	.L54
	ldr	r1, [fp, #-40]
	ldr	r0, .L55+48
	bl	printf
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L54
	bl	fork_and_execute
.L54:
	nop
	ldr	r3, .L55
	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}
.L56:
	.align	2
.L55:
	.word	.LC42
	.word	.LC33
	.word	fd
	.word	environ
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	65535
	.word	.LC40
	.word	.LC41
	.size	fork_and_compile, .-fork_and_compile
	.section	.rodata
	.align	2
.LC43:
	.ascii	"realloc()\000"
	.align	2
.LC44:
	.ascii	"problema con dup2\000"
	.align	2
.LC45:
	.ascii	"./hello \000"
	.align	2
.LC46:
	.ascii	"/hello\000"
	.align	2
.LC47:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fork_and_execute
	.syntax unified
	.arm
	.fpu softvfp
	.type	fork_and_execute, %function
fork_and_execute:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L65+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L65+4
	str	r3, [r2]
	ldr	r3, .L65+8
	ldr	r3, [r3]
	ldr	r2, .L65+4
	ldr	r2, [r2]
	lsl	r2, r2, #2
	mov	r1, r2
	mov	r0, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L65+8
	str	r3, [r2]
	ldr	r3, .L65+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L58
	ldr	r0, .L65+12
	bl	perror
.L58:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	beq	.L59
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L60
	b	.L64
.L59:
	ldr	r0, .L65+16
	bl	puts
	mov	r0, #1
	bl	exit
.L60:
	ldr	r3, .L65+8
	ldr	r2, [r3]
	ldr	r3, .L65+4
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, .L65+20
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	mov	r3, r0
	cmn	r3, #1
	bne	.L62
	ldr	r0, .L65+24
	bl	perror
	mov	r0, #1
	bl	exit
.L62:
	ldr	r3, .L65+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L65+28
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, .L65+32
	ldr	r3, [r3]
	ldr	r1, .L65+36
	mov	r0, r3
	bl	concat
	sub	r2, fp, #20
	sub	r3, fp, #16
	mov	r1, r3
	bl	execve
	ldr	r0, .L65+40
	bl	perror
	mov	r0, #1
	bl	exit
.L64:
	ldr	r3, .L65+8
	ldr	r2, [r3]
	ldr	r3, .L65+4
	ldr	r3, [r3]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	nop
	ldr	r3, .L65
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC47
	.word	pid_list_length
	.word	pid_list
	.word	.LC43
	.word	.LC36
	.word	fd
	.word	.LC44
	.word	.LC45
	.word	dir_path
	.word	.LC46
	.word	.LC35
	.size	fork_and_execute, .-fork_and_execute
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
