	.file	"107876.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"read"
.LC1:
	.string	"IN_OPEN: "
.LC2:
	.string	"IN_CLOSE_NOWRITE: "
.LC3:
	.string	"IN_CLOSE_WRITE: "
.LC4:
	.string	"IN_MOVED_FROM: "
.LC5:
	.string	"IN_MOVED_TO: "
.LC6:
	.string	"%s/"
.LC7:
	.string	"%s"
.LC8:
	.string	" [directory]"
.LC9:
	.string	" [file]"
	.text
	.type	handle_events, @function
handle_events:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	DWORD PTR -4148[rbp], edi
	mov	QWORD PTR -4160[rbp], rsi
	mov	DWORD PTR -4152[rbp], edx
	mov	QWORD PTR -4168[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L19:
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4148[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -4128[rbp], rax
	cmp	QWORD PTR -4128[rbp], -1
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	cmp	QWORD PTR -4128[rbp], 0
	jle	.L22
	lea	rax, -4112[rbp]
	mov	QWORD PTR -4136[rbp], rax
	jmp	.L5
.L18:
	mov	rax, QWORD PTR -4136[rbp]
	mov	QWORD PTR -4120[rbp], rax
	mov	rax, QWORD PTR -4120[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 32
	test	eax, eax
	je	.L6
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	rax, QWORD PTR -4120[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 16
	test	eax, eax
	je	.L7
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	rax, QWORD PTR -4120[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 8
	test	eax, eax
	je	.L8
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	rax, QWORD PTR -4120[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 64
	test	eax, eax
	je	.L9
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	mov	rax, QWORD PTR -4120[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 128
	test	eax, eax
	je	.L10
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	DWORD PTR -4140[rbp], 1
	jmp	.L11
.L14:
	mov	eax, DWORD PTR -4140[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4160[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -4120[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L12
	mov	eax, DWORD PTR -4140[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -4168[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L12:
	add	DWORD PTR -4140[rbp], 1
.L11:
	mov	eax, DWORD PTR -4140[rbp]
	cmp	eax, DWORD PTR -4152[rbp]
	jl	.L14
.L13:
	mov	rax, QWORD PTR -4120[rbp]
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -4120[rbp]
	add	rax, 16
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	mov	rax, QWORD PTR -4120[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 1073741824
	test	eax, eax
	je	.L16
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L17
.L16:
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L17:
	mov	rax, QWORD PTR -4120[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	eax, eax
	add	rax, 16
	add	QWORD PTR -4136[rbp], rax
.L5:
	mov	rax, QWORD PTR -4128[rbp]
	lea	rdx, -4112[rbp]
	add	rax, rdx
	cmp	QWORD PTR -4136[rbp], rax
	jb	.L18
	jmp	.L19
.L22:
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	handle_events, .-handle_events
	.section	.rodata
.LC10:
	.string	"Usage: %s PATH [PATH ...]\n"
.LC11:
	.string	"Press ENTER key to exit."
.LC12:
	.string	"inotify_init1"
.LC13:
	.string	"calloc"
.LC14:
	.string	"Cannot watch '%s'\n"
.LC15:
	.string	"inotify_add_watch"
.LC16:
	.string	"Listening for events."
.LC17:
	.string	"poll"
.LC18:
	.string	"Listening for events stopped."
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -84[rbp], 1
	jg	.L24
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, 2048
	call	inotify_init1@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], -1
	jne	.L25
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L26
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	DWORD PTR -76[rbp], 1
	jmp	.L27
.L29:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	lea	rbx, [rdx+rax]
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, 248
	mov	rsi, rcx
	mov	edi, eax
	call	inotify_add_watch@PLT
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L28
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	add	DWORD PTR -76[rbp], 1
.L27:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L29
	mov	QWORD PTR -56[rbp], 2
	mov	DWORD PTR -48[rbp], 0
	mov	WORD PTR -44[rbp], 1
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	WORD PTR -36[rbp], 1
	lea	rdi, .LC16[rip]
	call	puts@PLT
.L38:
	mov	rcx, QWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], -1
	jne	.L30
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L40
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	cmp	DWORD PTR -68[rbp], 0
	jle	.L38
	movzx	eax, WORD PTR -42[rbp]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L33
	jmp	.L34
.L36:
	nop
.L34:
	lea	rax, -77[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	test	rax, rax
	jle	.L41
	movzx	eax, BYTE PTR -77[rbp]
	cmp	al, 10
	jne	.L36
	jmp	.L41
.L33:
	movzx	eax, WORD PTR -34[rbp]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L38
	mov	rcx, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -84[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	edi, eax
	call	handle_events
	jmp	.L38
.L40:
	nop
	jmp	.L38
.L41:
	nop
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -72[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.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	"107876.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"read\000"
	.align	2
.LC1:
	.ascii	"IN_OPEN: \000"
	.align	2
.LC2:
	.ascii	"IN_CLOSE_NOWRITE: \000"
	.align	2
.LC3:
	.ascii	"IN_CLOSE_WRITE: \000"
	.align	2
.LC4:
	.ascii	"IN_MOVED_FROM: \000"
	.align	2
.LC5:
	.ascii	"IN_MOVED_TO: \000"
	.align	2
.LC6:
	.ascii	"%s/\000"
	.align	2
.LC7:
	.ascii	"%s\000"
	.align	2
.LC8:
	.ascii	" [directory]\000"
	.align	2
.LC9:
	.ascii	" [file]\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_events, %function
handle_events:
	@ args = 0, pretend = 0, frame = 4136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #44
	sub	ip, fp, #4096
	sub	ip, ip, #12
	str	r0, [ip, #-28]
	sub	r0, fp, #4096
	sub	r0, r0, #12
	str	r1, [r0, #-32]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	str	r2, [r1, #-36]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-40]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [r0, #-28]
	bl	read
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmn	r3, #1
	bne	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L2
	ldr	r0, .L23+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	ble	.L22
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-16]
	b	.L5
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	str	r3, [r2, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r3, [r3, #4]
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L23+8
	bl	printf
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r3, [r3, #4]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L23+12
	bl	printf
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r3, [r3, #4]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L23+16
	bl	printf
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r3, [r3, #4]
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L9
	ldr	r0, .L23+20
	bl	printf
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r3, [r3, #4]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L23+24
	bl	printf
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-20]
	b	.L11
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+28
	bl	printf
	b	.L13
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	add	r3, r3, #1
	str	r3, [r2, #-20]
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-20]
	ldr	r3, [r3, #-36]
	cmp	r2, r3
	blt	.L14
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L23+32
	bl	printf
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r3, [r3, #4]
	and	r3, r3, #1073741824
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L23+36
	bl	puts
	b	.L17
.L16:
	ldr	r0, .L23+40
	bl	puts
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldr	r3, [r3, #12]
	add	r3, r3, #16
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	add	r3, r2, r3
	str	r3, [r1, #-16]
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	cmp	r2, r3
	bcc	.L18
	b	.L19
.L22:
	nop
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	handle_events, .-handle_events
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Usage: %s PATH [PATH ...]\012\000"
	.align	2
.LC12:
	.ascii	"Press ENTER key to exit.\000"
	.align	2
.LC13:
	.ascii	"inotify_init1\000"
	.align	2
.LC14:
	.ascii	"calloc\000"
	.align	2
.LC15:
	.ascii	"Cannot watch '%s'\012\000"
	.align	2
.LC16:
	.ascii	"inotify_add_watch\000"
	.align	2
.LC17:
	.ascii	"Listening for events.\000"
	.align	2
.LC18:
	.ascii	"poll\000"
	.align	2
.LC19:
	.ascii	"Listening for events stopped.\000"
	.align	2
.LC20:
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	bgt	.L26
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L44+4
	bl	printf
	mov	r0, #1
	bl	exit
.L26:
	ldr	r0, .L44+8
	bl	puts
	mov	r0, #2048
	bl	inotify_init1
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L27
	ldr	r0, .L44+12
	bl	perror
	mov	r0, #1
	bl	exit
.L27:
	ldr	r3, [fp, #-64]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L44+16
	bl	perror
	mov	r0, #1
	bl	exit
.L28:
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L29
.L31:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r4, r2, r3
	mov	r2, #248
	ldr	r0, [fp, #-48]
	bl	inotify_add_watch
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L30
	ldr	r3, .L44+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L44+24
	bl	fprintf
	ldr	r0, .L44+28
	bl	perror
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L29:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L31
	mov	r3, #2
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #1
	strh	r3, [fp, #-28]	@ movhi
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-24]
	mov	r3, #1
	strh	r3, [fp, #-20]	@ movhi
	ldr	r0, .L44+32
	bl	puts
.L40:
	sub	r3, fp, #32
	mvn	r2, #0
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L32
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L42
	ldr	r0, .L44+36
	bl	perror
	mov	r0, #1
	bl	exit
.L32:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L40
	ldrsh	r3, [fp, #-26]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L35
	b	.L36
.L38:
	nop
.L36:
	sub	r3, fp, #53
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	mov	r3, r0
	cmp	r3, #0
	ble	.L43
	ldrb	r3, [fp, #-53]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L38
	b	.L43
.L35:
	ldrsh	r3, [fp, #-18]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	handle_events
	b	.L40
.L42:
	nop
	b	.L40
.L43:
	nop
	ldr	r0, .L44+40
	bl	puts
	ldr	r0, [fp, #-48]
	bl	close
	ldr	r0, [fp, #-44]
	bl	free
	mov	r0, #0
	bl	exit
.L45:
	.align	2
.L44:
	.word	.LC20
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	stderr
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
