	.file	"454241.c"
	.intel_syntax noprefix
	.text
	.local	inotify_fd
	.comm	inotify_fd,4,4
	.local	monitors
	.comm	monitors,8,8
	.local	monitors_size
	.comm	monitors_size,8,8
	.section	.rodata
	.align 8
.LC0:
	.string	"malloc failed to allocate %zu bytes. terminating..."
	.text
	.globl	emalloc
	.type	emalloc, @function
emalloc:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	setne	al
	movzx	eax, al
	test	rax, rax
	je	.L2
	cmp	QWORD PTR -8[rbp], 0
	sete	al
	movzx	eax, al
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	emalloc, .-emalloc
	.section	.rodata
	.align 8
.LC1:
	.string	"realloc failed to allocate %zu bytes. terminating..."
	.text
	.globl	erealloc
	.type	erealloc, @function
erealloc:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	setne	al
	movzx	eax, al
	test	rax, rax
	je	.L5
	cmp	QWORD PTR -8[rbp], 0
	sete	al
	movzx	eax, al
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	erealloc, .-erealloc
	.section	.rodata
	.align 8
.LC2:
	.string	"calloc failed to allocate %zu bytes. terminating..."
	.text
	.globl	ecalloc
	.type	ecalloc, @function
ecalloc:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	setne	al
	movzx	eax, al
	test	rax, rax
	je	.L8
	cmp	QWORD PTR -32[rbp], 0
	setne	al
	movzx	eax, al
	test	rax, rax
	je	.L8
	mov	eax, 1
	jmp	.L9
.L8:
	mov	eax, 0
.L9:
	test	eax, eax
	je	.L10
	cmp	QWORD PTR -8[rbp], 0
	sete	al
	movzx	eax, al
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	ecalloc, .-ecalloc
	.globl	safe_realpath
	.type	safe_realpath, @function
safe_realpath:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 4097
	call	emalloc
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realpath@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	erealloc
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	safe_realpath, .-safe_realpath
	.section	.rodata
.LC3:
	.string	"the_stack_data/454241.c"
.LC4:
	.string	"index < size"
	.text
	.globl	remove_from_array
	.type	remove_from_array, @function
remove_from_array:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L15
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 84
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L15:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -16[rbp]
	sal	rdx, 3
	lea	rcx, -8[rdx]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	add	QWORD PTR -16[rbp], 1
.L16:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L17
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	erealloc
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	remove_from_array, .-remove_from_array
	.globl	add_to_array
	.type	add_to_array, @function
add_to_array:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	erealloc
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	add_to_array, .-add_to_array
	.globl	is_dir
	.type	is_dir, @function
is_dir:
.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, 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	lstat@PLT
	cmp	eax, -1
	jne	.L22
	mov	eax, 0
	jmp	.L24
.L22:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	sete	al
.L24:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	is_dir, .-is_dir
	.globl	get_index_of_monitored_dir
	.type	get_index_of_monitored_dir, @function
get_index_of_monitored_dir:
.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
	mov	QWORD PTR -8[rbp], 0
	jmp	.L27
.L30:
	mov	rdx, QWORD PTR monitors[rip]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L28
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L29
.L28:
	add	QWORD PTR -8[rbp], 1
.L27:
	mov	rax, QWORD PTR monitors_size[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L30
	mov	eax, -1
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	get_index_of_monitored_dir, .-get_index_of_monitored_dir
	.section	.rodata
.LC5:
	.string	"len > 1"
	.text
	.globl	get_indexes_of_monitored_dirs
	.type	get_indexes_of_monitored_dirs, @function
get_indexes_of_monitored_dirs:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	esi, 8
	mov	edi, 0
	call	ecalloc
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 1
	jg	.L32
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 119
	lea	rsi, .LC3[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L32:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L33
.L35:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR monitors[rip]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L34
	add	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	erealloc
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
.L34:
	add	QWORD PTR -8[rbp], 1
.L33:
	mov	rax, QWORD PTR monitors_size[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L35
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	get_indexes_of_monitored_dirs, .-get_indexes_of_monitored_dirs
	.globl	is_monitored
	.type	is_monitored, @function
is_monitored:
.LFB15:
	.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	rdi, rax
	call	get_index_of_monitored_dir
	cmp	eax, -1
	jne	.L38
	mov	eax, 0
	jmp	.L39
.L38:
	mov	eax, 1
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	is_monitored, .-is_monitored
	.section	.rodata
	.align 8
.LC6:
	.string	"Warning, failed to monitor \"%s\"...\n"
	.text
	.globl	monitor_dir
	.type	monitor_dir, @function
monitor_dir:
.LFB16:
	.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	is_monitored
	test	al, al
	je	.L41
	mov	eax, 1
	jmp	.L42
.L41:
	mov	edi, 16
	call	emalloc
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	emalloc
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR inotify_fd[rip]
	mov	edx, 67112898
	mov	rsi, rcx
	mov	edi, eax
	call	inotify_add_watch@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L42
.L43:
	mov	rax, QWORD PTR monitors[rip]
	mov	rcx, QWORD PTR -8[rbp]
	lea	rdx, monitors_size[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	add_to_array
	mov	QWORD PTR monitors[rip], rax
	mov	eax, 1
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	monitor_dir, .-monitor_dir
	.section	.rodata
	.align 8
.LC7:
	.string	"warning, failed to open dir \"%s\". ignoring dir. error: %s\n"
.LC8:
	.string	"."
.LC9:
	.string	".."
.LC10:
	.string	"%s/%s"
	.align 8
.LC11:
	.string	"some kind of super weird error... screw this. get your CPU chip checked or something.\n"
	.align 8
.LC12:
	.string	"warning, failed to monitor \"%s\"...\n"
.LC13:
	.string	"monitoring \"%s\"\n"
	.text
	.globl	monitor_dir_r
	.type	monitor_dir_r, @function
monitor_dir_r:
.LFB17:
	.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, 360
	.cfi_offset 3, -24
	mov	QWORD PTR -360[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -360[rbp]
	mov	rdi, rax
	call	is_dir
	xor	eax, 1
	test	al, al
	je	.L45
	mov	eax, 0
	jmp	.L57
.L45:
	mov	rax, QWORD PTR -360[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	safe_realpath
	mov	QWORD PTR -328[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	is_monitored
	test	al, al
	je	.L47
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	jmp	.L57
.L47:
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	monitor_dir
	xor	eax, 1
	test	al, al
	je	.L48
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L57
.L48:
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -320[rbp], rax
	cmp	QWORD PTR -320[rbp], 0
	jne	.L49
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -328[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L57
.L49:
	lea	rdx, -304[rbp]
	mov	eax, 0
	mov	ecx, 35
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -344[rbp], 1
	mov	QWORD PTR -336[rbp], 0
	jmp	.L50
.L56:
	add	QWORD PTR -336[rbp], 1
	lea	rax, -304[rbp]
	add	rax, 19
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L50
	lea	rax, -304[rbp]
	add	rax, 19
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L52
	jmp	.L50
.L52:
	lea	rax, -304[rbp]
	lea	rdx, 19[rax]
	mov	rax, QWORD PTR -328[rbp]
	mov	r8, rdx
	mov	rcx, rax
	lea	rdx, .LC10[rip]
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	snprintf@PLT
	add	eax, 1
	mov	DWORD PTR -348[rbp], eax
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	mov	rdi, rax
	call	emalloc
	mov	QWORD PTR -312[rbp], rax
	mov	eax, DWORD PTR -348[rbp]
	lea	ebx, -1[rax]
	mov	eax, DWORD PTR -348[rbp]
	movsx	rsi, eax
	lea	rax, -304[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -328[rbp]
	mov	rax, QWORD PTR -312[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	cmp	ebx, eax
	je	.L53
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 86
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L53:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	is_dir
	test	al, al
	je	.L54
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	monitor_dir_r
	xor	eax, 1
	test	al, al
	je	.L54
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -312[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L54:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	free@PLT
.L50:
	lea	rdx, -344[rbp]
	lea	rcx, -304[rbp]
	mov	rax, QWORD PTR -320[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	readdir_r@PLT
	mov	DWORD PTR -352[rbp], eax
	cmp	DWORD PTR -352[rbp], 0
	jne	.L55
	mov	rax, QWORD PTR -344[rbp]
	test	rax, rax
	jne	.L56
.L55:
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
.L57:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	monitor_dir_r, .-monitor_dir_r
	.section	.rodata
	.align 8
.LC14:
	.string	"Warning, could not remove monitor of \"%s\", this will likely result in memory leaks.."
	.text
	.globl	unmonitor_dir
	.type	unmonitor_dir, @function
unmonitor_dir:
.LFB18:
	.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	QWORD PTR -56[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -60[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -45[rbp], 0
	movzx	eax, BYTE PTR -60[rbp]
	xor	eax, 1
	movzx	eax, al
	test	rax, rax
	je	.L60
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	get_index_of_monitored_dir
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L61
	mov	eax, 0
	jmp	.L62
.L61:
	mov	rdx, QWORD PTR monitors[rip]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR inotify_fd[rip]
	mov	esi, edx
	mov	edi, eax
	call	inotify_rm_watch@PLT
	test	eax, eax
	je	.L63
	mov	rdx, QWORD PTR monitors[rip]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L63:
	mov	rdx, QWORD PTR monitors[rip]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -44[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR monitors[rip]
	lea	rdx, monitors_size[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	remove_from_array
	mov	QWORD PTR monitors[rip], rax
	mov	eax, 1
	jmp	.L62
.L60:
	lea	rdx, -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_indexes_of_monitored_dirs
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	jne	.L64
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L62
.L64:
	mov	BYTE PTR -45[rbp], 1
	mov	QWORD PTR -32[rbp], 0
	jmp	.L65
.L67:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR monitors[rip]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR inotify_fd[rip]
	mov	esi, edx
	mov	edi, eax
	call	inotify_rm_watch@PLT
	test	eax, eax
	je	.L66
	mov	rdx, QWORD PTR monitors[rip]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L66:
	mov	rdx, QWORD PTR monitors[rip]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR monitors[rip]
	mov	rcx, QWORD PTR -16[rbp]
	lea	rdx, monitors_size[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	remove_from_array
	mov	QWORD PTR monitors[rip], rax
	add	QWORD PTR -32[rbp], 1
.L65:
	mov	rax, QWORD PTR -40[rbp]
	cmp	QWORD PTR -32[rbp], rax
	jb	.L67
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	movzx	eax, BYTE PTR -45[rbp]
.L62:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	unmonitor_dir, .-unmonitor_dir
	.section	.rodata
.LC15:
	.string	"shutting down"
	.align 8
.LC16:
	.string	"Warning, failed to remove watcher for \"%s\"\n"
	.text
	.globl	shutdown_cleanup
	.type	shutdown_cleanup, @function
shutdown_cleanup:
.LFB19:
	.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, .LC15[rip]
	call	puts@PLT
	mov	QWORD PTR -8[rbp], 0
	jmp	.L70
.L72:
	mov	rdx, QWORD PTR monitors[rip]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR inotify_fd[rip]
	mov	esi, edx
	mov	edi, eax
	call	inotify_rm_watch@PLT
	test	eax, eax
	je	.L71
	mov	rdx, QWORD PTR monitors[rip]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L71:
	mov	rdx, QWORD PTR monitors[rip]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rdx, QWORD PTR monitors[rip]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	QWORD PTR -8[rbp], 1
.L70:
	mov	rax, QWORD PTR monitors_size[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L72
	mov	rax, QWORD PTR monitors[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR inotify_fd[rip]
	mov	edi, eax
	call	close@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	shutdown_cleanup, .-shutdown_cleanup
	.section	.rodata
	.align 8
.LC17:
	.string	"Error, inotify_init1 failed. exiting.. error: %s\n"
	.align 8
.LC18:
	.string	"usage: %s \"dir\" \"dir\" \"dir\"... \"targetdir\"\n"
	.align 8
.LC19:
	.string	"Error, could not monitor dir \"%s\", exiting..\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB20:
	.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
	lea	rdi, shutdown_cleanup[rip]
	call	atexit@PLT
	mov	edi, 0
	call	inotify_init1@PLT
	mov	DWORD PTR inotify_fd[rip], eax
	mov	eax, DWORD PTR inotify_fd[rip]
	cmp	eax, -1
	jne	.L74
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L74:
	mov	esi, 8
	mov	edi, 0
	call	ecalloc
	mov	QWORD PTR monitors[rip], rax
	cmp	DWORD PTR -20[rbp], 2
	jg	.L75
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L75:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L76
.L78:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	monitor_dir_r
	xor	eax, 1
	test	al, al
	je	.L77
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L77:
	add	DWORD PTR -4[rbp], 1
.L76:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L78
	nop
	mov	rax, QWORD PTR monitors_size[rip]
	test	rax, rax
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 18
__PRETTY_FUNCTION__.1:
	.string	"remove_from_array"
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 30
__PRETTY_FUNCTION__.0:
	.string	"get_indexes_of_monitored_dirs"
	.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	"454241.c"
	.text
	.local	inotify_fd
	.comm	inotify_fd,4,4
	.local	monitors
	.comm	monitors,4,4
	.local	monitors_size
	.comm	monitors_size,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"malloc failed to allocate %zu bytes. terminating..."
	.ascii	"\000"
	.text
	.align	2
	.global	emalloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	emalloc, %function
emalloc:
	@ 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	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L4+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	stderr
	.word	.LC0
	.size	emalloc, .-emalloc
	.section	.rodata
	.align	2
.LC1:
	.ascii	"realloc failed to allocate %zu bytes. terminating.."
	.ascii	".\000"
	.text
	.align	2
	.global	erealloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	erealloc, %function
erealloc:
	@ 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]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	realloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L9+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	stderr
	.word	.LC1
	.size	erealloc, .-erealloc
	.section	.rodata
	.align	2
.LC2:
	.ascii	"calloc failed to allocate %zu bytes. terminating..."
	.ascii	"\000"
	.text
	.align	2
	.global	ecalloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	ecalloc, %function
ecalloc:
	@ 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]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L12
	mov	r3, #1
	b	.L13
.L12:
	mov	r3, #0
.L13:
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L16
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L16+4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	stderr
	.word	.LC2
	.size	ecalloc, .-ecalloc
	.align	2
	.global	safe_realpath
	.syntax unified
	.arm
	.fpu softvfp
	.type	safe_realpath, %function
safe_realpath:
	@ 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]
	ldr	r0, .L20
	bl	emalloc
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	realpath
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	erealloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	4097
	.size	safe_realpath, .-safe_realpath
	.section	.rodata
	.align	2
.LC3:
	.ascii	"the_stack_data/454241.c\000"
	.align	2
.LC4:
	.ascii	"index < size\000"
	.text
	.align	2
	.global	remove_from_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_from_array, %function
remove_from_array:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L23
	ldr	r3, .L27
	mov	r2, #84
	ldr	r1, .L27+4
	ldr	r0, .L27+8
	bl	__assert_fail
.L23:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L24
.L25:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L24:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L25
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	erealloc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	__PRETTY_FUNCTION__.6508
	.word	.LC3
	.word	.LC4
	.size	remove_from_array, .-remove_from_array
	.align	2
	.global	add_to_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_to_array, %function
add_to_array:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	erealloc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add_to_array, .-add_to_array
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	is_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_dir, %function
is_dir:
	@ 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, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	lstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L32
	mov	r3, #0
	b	.L34
.L32:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
.L34:
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC5
	.size	is_dir, .-is_dir
	.align	2
	.global	get_index_of_monitored_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_index_of_monitored_dir, %function
get_index_of_monitored_dir:
	@ 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	.L39
.L42:
	ldr	r3, .L43
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-8]
	b	.L41
.L40:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L39:
	ldr	r3, .L43+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L42
	mvn	r3, #0
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	monitors
	.word	monitors_size
	.size	get_index_of_monitored_dir, .-get_index_of_monitored_dir
	.section	.rodata
	.align	2
.LC6:
	.ascii	"len > 1\000"
	.text
	.align	2
	.global	get_indexes_of_monitored_dirs
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_indexes_of_monitored_dirs, %function
get_indexes_of_monitored_dirs:
	@ 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]
	str	r1, [fp, #-28]
	mov	r1, #4
	mov	r0, #0
	bl	ecalloc
	str	r0, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L46
	ldr	r3, .L51
	mov	r2, #119
	ldr	r1, .L51+4
	ldr	r0, .L51+8
	bl	__assert_fail
.L46:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L47
.L49:
	ldr	r3, .L51+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L48
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	erealloc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
.L48:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L47:
	ldr	r3, .L51+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L49
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	__PRETTY_FUNCTION__.6537
	.word	.LC3
	.word	.LC6
	.word	monitors
	.word	monitors_size
	.size	get_indexes_of_monitored_dirs, .-get_indexes_of_monitored_dirs
	.align	2
	.global	is_monitored
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_monitored, %function
is_monitored:
	@ 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, [fp, #-8]
	bl	get_index_of_monitored_dir
	mov	r3, r0
	cmn	r3, #1
	bne	.L54
	mov	r3, #0
	b	.L55
.L54:
	mov	r3, #1
.L55:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	is_monitored, .-is_monitored
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Warning, failed to monitor \"%s\"...\012\000"
	.text
	.align	2
	.global	monitor_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	monitor_dir, %function
monitor_dir:
	@ 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	is_monitored
	mov	r3, r0
	cmp	r3, #0
	beq	.L57
	mov	r3, #1
	b	.L58
.L57:
	mov	r0, #8
	bl	emalloc
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	emalloc
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L60
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, .L60+4
	mov	r1, r3
	bl	inotify_add_watch
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L59
	ldr	r3, .L60+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, .L60+12
	bl	fprintf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	b	.L58
.L59:
	ldr	r3, .L60+16
	ldr	r3, [r3]
	ldr	r2, .L60+20
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	add_to_array
	mov	r3, r0
	ldr	r2, .L60+16
	str	r3, [r2]
	mov	r3, #1
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	inotify_fd
	.word	67112898
	.word	stderr
	.word	.LC7
	.word	monitors
	.word	monitors_size
	.size	monitor_dir, .-monitor_dir
	.section	.rodata
	.align	2
.LC8:
	.ascii	"warning, failed to open dir \"%s\". ignoring dir. e"
	.ascii	"rror: %s\012\000"
	.align	2
.LC9:
	.ascii	".\000"
	.align	2
.LC10:
	.ascii	"..\000"
	.align	2
.LC11:
	.ascii	"%s/%s\000"
	.align	2
.LC12:
	.ascii	"some kind of super weird error... screw this. get y"
	.ascii	"our CPU chip checked or something.\012\000"
	.align	2
.LC13:
	.ascii	"warning, failed to monitor \"%s\"...\012\000"
	.align	2
.LC14:
	.ascii	"monitoring \"%s\"\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	monitor_dir_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	monitor_dir_r, %function
monitor_dir_r:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #324
	str	r0, [fp, #-320]
	ldr	r3, .L77
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-320]
	bl	is_dir
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L63
	mov	r3, #0
	b	.L75
.L63:
	mov	r1, #0
	ldr	r0, [fp, #-320]
	bl	safe_realpath
	str	r0, [fp, #-304]
	ldr	r0, [fp, #-304]
	bl	is_monitored
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
	ldr	r0, [fp, #-304]
	bl	free
	mov	r3, #1
	b	.L75
.L65:
	ldr	r0, [fp, #-304]
	bl	monitor_dir
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L66
	ldr	r0, [fp, #-304]
	bl	free
	mov	r3, #0
	b	.L75
.L66:
	ldr	r0, [fp, #-304]
	bl	opendir
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bne	.L67
	ldr	r3, .L77+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-304]
	ldr	r1, .L77+8
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-304]
	bl	free
	mov	r3, #0
	b	.L75
.L67:
	sub	r3, fp, #284
	mov	r2, #268
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-312]
	mov	r3, #0
	str	r3, [fp, #-308]
	b	.L68
.L74:
	ldr	r3, [fp, #-308]
	add	r3, r3, #1
	str	r3, [fp, #-308]
	sub	r3, fp, #284
	add	r3, r3, #11
	ldr	r1, .L77+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	sub	r3, fp, #284
	add	r3, r3, #11
	ldr	r1, .L77+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	b	.L68
.L70:
	sub	r3, fp, #284
	add	r3, r3, #11
	str	r3, [sp]
	ldr	r3, [fp, #-304]
	ldr	r2, .L77+20
	mov	r1, #0
	mov	r0, #0
	bl	snprintf
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-292]
	mov	r0, r3
	bl	emalloc
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-292]
	sub	r4, r3, #1
	ldr	r1, [fp, #-292]
	sub	r3, fp, #284
	add	r3, r3, #11
	str	r3, [sp]
	ldr	r3, [fp, #-304]
	ldr	r2, .L77+20
	ldr	r0, [fp, #-288]
	bl	snprintf
	mov	r3, r0
	cmp	r4, r3
	beq	.L71
	ldr	r3, .L77+4
	ldr	r3, [r3]
	mov	r2, #86
	mov	r1, #1
	ldr	r0, .L77+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L71:
	ldr	r0, [fp, #-288]
	bl	is_dir
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	ldr	r0, [fp, #-288]
	bl	monitor_dir_r
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L72
	ldr	r3, .L77+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-288]
	ldr	r1, .L77+28
	mov	r0, r3
	bl	fprintf
.L72:
	ldr	r0, [fp, #-288]
	bl	free
.L68:
	sub	r2, fp, #312
	sub	r3, fp, #284
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	readdir_r
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L73
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bne	.L74
.L73:
	ldr	r1, [fp, #-304]
	ldr	r0, .L77+32
	bl	printf
	ldr	r0, [fp, #-300]
	bl	closedir
	ldr	r0, [fp, #-304]
	bl	free
	mov	r3, #1
.L75:
	ldr	r2, .L77
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L76
	bl	__stack_chk_fail
.L76:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC15
	.word	stderr
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	monitor_dir_r, .-monitor_dir_r
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Warning, could not remove monitor of \"%s\", this w"
	.ascii	"ill likely result in memory leaks..\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	unmonitor_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	unmonitor_dir, %function
unmonitor_dir:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-41]
	ldr	r3, .L89
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-41]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L80
	ldr	r0, [fp, #-40]
	bl	get_index_of_monitored_dir
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L81
	mov	r3, #0
	b	.L82
.L81:
	ldr	r3, .L89+4
	ldr	r0, [r3]
	ldr	r3, .L89+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	bl	inotify_rm_watch
	mov	r3, r0
	cmp	r3, #0
	beq	.L83
	ldr	r3, .L89+12
	ldr	r0, [r3]
	ldr	r3, .L89+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, .L89+16
	bl	fprintf
.L83:
	ldr	r3, .L89+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r3, .L89+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	ldr	r2, .L89+20
	mov	r0, r3
	bl	remove_from_array
	mov	r3, r0
	ldr	r2, .L89+8
	str	r3, [r2]
	mov	r3, #1
	b	.L82
.L80:
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	get_indexes_of_monitored_dirs
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L84
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #0
	b	.L82
.L84:
	mov	r3, #1
	strb	r3, [fp, #-29]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L85
.L87:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, .L89+4
	ldr	r0, [r3]
	ldr	r3, .L89+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	bl	inotify_rm_watch
	mov	r3, r0
	cmp	r3, #0
	beq	.L86
	ldr	r3, .L89+12
	ldr	r0, [r3]
	ldr	r3, .L89+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, .L89+16
	bl	fprintf
.L86:
	ldr	r3, .L89+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r3, .L89+8
	ldr	r3, [r3]
	ldr	r2, .L89+20
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	remove_from_array
	mov	r3, r0
	ldr	r2, .L89+8
	str	r3, [r2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L85:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bcc	.L87
	ldr	r0, [fp, #-20]
	bl	free
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
.L82:
	ldr	r2, .L89
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L88
	bl	__stack_chk_fail
.L88:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	.LC17
	.word	inotify_fd
	.word	monitors
	.word	stderr
	.word	.LC16
	.word	monitors_size
	.size	unmonitor_dir, .-unmonitor_dir
	.section	.rodata
	.align	2
.LC18:
	.ascii	"shutting down\000"
	.align	2
.LC19:
	.ascii	"Warning, failed to remove watcher for \"%s\"\012\000"
	.text
	.align	2
	.global	shutdown_cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	shutdown_cleanup, %function
shutdown_cleanup:
	@ 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, .L95
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L92
.L94:
	ldr	r3, .L95+4
	ldr	r0, [r3]
	ldr	r3, .L95+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	bl	inotify_rm_watch
	mov	r3, r0
	cmp	r3, #0
	beq	.L93
	ldr	r3, .L95+12
	ldr	r0, [r3]
	ldr	r3, .L95+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, .L95+16
	bl	fprintf
.L93:
	ldr	r3, .L95+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r3, .L95+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L92:
	ldr	r3, .L95+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L94
	ldr	r3, .L95+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L95+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L96:
	.align	2
.L95:
	.word	.LC18
	.word	inotify_fd
	.word	monitors
	.word	stderr
	.word	.LC19
	.word	monitors_size
	.size	shutdown_cleanup, .-shutdown_cleanup
	.section	.rodata
	.align	2
.LC20:
	.ascii	"Error, inotify_init1 failed. exiting.. error: %s\012"
	.ascii	"\000"
	.align	2
.LC21:
	.ascii	"usage: %s \"dir\" \"dir\" \"dir\"... \"targetdir\"\012"
	.ascii	"\000"
	.align	2
.LC22:
	.ascii	"Error, could not monitor dir \"%s\", exiting..\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L107
	bl	atexit
	mov	r0, #0
	bl	inotify_init1
	mov	r3, r0
	ldr	r2, .L107+4
	str	r3, [r2]
	ldr	r3, .L107+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L98
	ldr	r3, .L107+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L107+12
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L98:
	mov	r1, #4
	mov	r0, #0
	bl	ecalloc
	mov	r3, r0
	ldr	r2, .L107+16
	str	r3, [r2]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bgt	.L99
	ldr	r3, .L107+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L107+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L99:
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L100
.L102:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	monitor_dir_r
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L101
	ldr	r3, .L107+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L107+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L101:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L100:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L102
	nop
	ldr	r3, .L107+28
	ldr	r3, [r3]
	cmp	r3, #0
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L108:
	.align	2
.L107:
	.word	shutdown_cleanup
	.word	inotify_fd
	.word	stderr
	.word	.LC20
	.word	monitors
	.word	.LC21
	.word	.LC22
	.word	monitors_size
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6508, %object
	.size	__PRETTY_FUNCTION__.6508, 18
__PRETTY_FUNCTION__.6508:
	.ascii	"remove_from_array\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6537, %object
	.size	__PRETTY_FUNCTION__.6537, 30
__PRETTY_FUNCTION__.6537:
	.ascii	"get_indexes_of_monitored_dirs\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
