	.file	"34506.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Expected 1 parameter: directory"
.LC1:
	.string	"Directory %s  already exist"
.LC2:
	.string	"Error mkdir"
.LC3:
	.string	"inotify_init"
.LC4:
	.string	"read"
.LC5:
	.string	"The file %s was created.\n"
.LC6:
	.string	"The file %s was deleted.\n"
.LC7:
	.string	"The file %s was modified.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -32768[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 208
	mov	DWORD PTR -32964[rbp], edi
	mov	QWORD PTR -32976[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -32964[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	rax, QWORD PTR -32976[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -32944[rbp], rax
	lea	rdx, -32928[rbp]
	mov	rax, QWORD PTR -32944[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR -32944[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	mov	rax, QWORD PTR -32944[rbp]
	mov	esi, 448
	mov	rdi, rax
	call	mkdir@PLT
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	mov	DWORD PTR -32960[rbp], 0
	call	inotify_init@PLT
	mov	DWORD PTR -32956[rbp], eax
	cmp	DWORD PTR -32956[rbp], 0
	jns	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
.L5:
	mov	rcx, QWORD PTR -32944[rbp]
	mov	eax, DWORD PTR -32956[rbp]
	mov	edx, 770
	mov	rsi, rcx
	mov	edi, eax
	call	inotify_add_watch@PLT
	mov	DWORD PTR -32952[rbp], eax
.L12:
	lea	rcx, -32784[rbp]
	mov	eax, DWORD PTR -32956[rbp]
	mov	edx, 32768
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -32948[rbp], eax
	cmp	DWORD PTR -32948[rbp], 0
	jns	.L7
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L7
.L11:
	lea	rdx, -32784[rbp]
	mov	eax, DWORD PTR -32960[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -32936[rbp], rax
	mov	rax, QWORD PTR -32936[rbp]
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR -32936[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 256
	test	eax, eax
	je	.L9
	mov	rax, QWORD PTR -32936[rbp]
	add	rax, 16
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -32936[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 512
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -32936[rbp]
	add	rax, 16
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L10:
	mov	rax, QWORD PTR -32936[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 2
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR -32936[rbp]
	add	rax, 16
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	rax, QWORD PTR -32936[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR -32960[rbp]
	add	eax, edx
	add	eax, 16
	mov	DWORD PTR -32960[rbp], eax
.L7:
	mov	eax, DWORD PTR -32960[rbp]
	cmp	eax, DWORD PTR -32948[rbp]
	jl	.L11
	jmp	.L12
	.cfi_endproc
.LFE6:
	.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	"34506.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Expected 1 parameter: directory\000"
	.align	2
.LC1:
	.ascii	"Directory %s  already exist\000"
	.align	2
.LC2:
	.ascii	"Error mkdir\000"
	.align	2
.LC3:
	.ascii	"inotify_init\000"
	.align	2
.LC4:
	.ascii	"read\000"
	.align	2
.LC5:
	.ascii	"The file %s was created.\012\000"
	.align	2
.LC6:
	.ascii	"The file %s was deleted.\012\000"
	.align	2
.LC7:
	.ascii	"The file %s was modified.\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32896
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #32768
	sub	sp, sp, #132
	sub	r3, fp, #32768
	sub	r3, r3, #12
	str	r0, [r3, #-124]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	str	r1, [r3, #-128]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L14+4
	bl	printf
.L2:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-128]
	ldr	r3, [r3, #4]
	str	r3, [r2, #-116]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #96
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-116]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r1, [r3, #-116]
	ldr	r0, .L14+8
	bl	printf
.L3:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r1, #448
	ldr	r0, [r3, #-116]
	bl	mkdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L14+12
	bl	printf
.L4:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-120]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r4, r3
	bl	inotify_init
	str	r0, [r4, #-112]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L14+16
	bl	perror
.L5:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, .L14+20
	ldr	r1, [r1, #-116]
	ldr	r0, [r3, #-112]
	bl	inotify_add_watch
	str	r0, [r4, #-108]
.L12:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #32768
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #32768
	mov	r1, r3
	ldr	r0, [r0, #-112]
	bl	read
	str	r0, [r4, #-104]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L14+24
	bl	perror
	b	.L7
.L11:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #32768
	sub	r2, r2, #12
	ldr	r2, [r2, #-120]
	add	r3, r3, r2
	str	r3, [r1, #-100]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	ldr	r3, [r3, #4]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L14+28
	bl	printf
	b	.L8
.L9:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	ldr	r3, [r3, #4]
	and	r3, r3, #512
	cmp	r3, #0
	beq	.L10
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L14+32
	bl	printf
	b	.L8
.L10:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	ldr	r3, [r3, #4]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L14+36
	bl	printf
.L8:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	ldr	r2, [r3, #12]
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r2, r3
	add	r3, r3, #16
	sub	r2, fp, #32768
	sub	r2, r2, #12
	str	r3, [r2, #-120]
.L7:
	sub	r3, fp, #32768
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #12
	ldr	r2, [r2, #-120]
	ldr	r3, [r3, #-104]
	cmp	r2, r3
	blt	.L11
	b	.L12
.L15:
	.align	2
.L14:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	770
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
