	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kqueue_main                    ## -- Begin function kqueue_main
	.p2align	4, 0x90
_kqueue_main:                           ## @kqueue_main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	cmpl	$2, %edi
	jge	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_2:
	movq	%rsi, %r12
	leal	-1(%rdi), %r14d
	shll	$4, %edi
	addl	$-32, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %r15d
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_EV_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_EV_ADD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_EVFILT_VNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EV_ONESHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NOTE_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_NOTE_ATTRIB@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_NOTE_EXTEND@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_NOTE_LINK@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_NOTE_RENAME@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_NOTE_REVOKE@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_NOTE_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	xorl	%r9d, %r9d
	callq	_EV_SET
	incq	%r14
	addq	$16, %rbx
	cmpq	%r14, %r15
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12,%r14,8), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r13d
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12,%r14,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_kqueue
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_10:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rsi
	callq	_fgetln
	testq	%rax, %rax
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_18
## %bb.11:
	movq	%rax, %r13
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rsi
	callq	_fgetln
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_18
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_24 Depth 3
	movq	$0, -80(%rbp)
	movl	$100000, -88(%rbp)              ## imm = 0x186A0
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	leaq	-64(%rbp), %rcx
	movl	$1, %r8d
	leaq	-88(%rbp), %r9
	callq	_kevent
	xorl	%edi, %edi
	cmpq	$0, -72(%rbp)
	setne	%dil
	callq	_assert
	movq	-72(%rbp), %rax
	xorl	%edi, %edi
	cmpb	$10, -1(%rax,%r13)
	sete	%dil
	callq	_assert
	movq	-72(%rbp), %rax
	movb	$0, -1(%rax,%r13)
	movq	%r13, %rdi
	callq	_system
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errx
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_15 Depth=2
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
LBB0_15:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_24 Depth 3
	movl	%r13d, %edx
	leaq	-64(%rbp), %rcx
	movl	$1, %r8d
	leaq	-88(%rbp), %r9
	callq	_kevent
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=2
	testl	%eax, %eax
	jle	LBB0_17
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	-64(%rbp), %rax
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	(%rdx), %rax
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=3
	incq	%rcx
	addq	$16, %rdx
	cmpq	%rcx, %r15
	jne	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	%r13d, %ecx
LBB0_27:                                ##   in Loop: Header=BB0_15 Depth=2
	movl	-56(%rbp), %eax
	movl	%ecx, %ebx
	movq	_NOTE_ATTRIB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	8(%r12,%rbx,8), %rsi
	leaq	L_.str.5(%rip), %rdi
	callq	_printf
	movl	-56(%rbp), %eax
LBB0_29:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	_NOTE_DELETE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	8(%r12,%rbx,8), %rsi
	leaq	L_.str.6(%rip), %rdi
	callq	_printf
	movl	-56(%rbp), %eax
LBB0_31:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	_NOTE_EXTEND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	8(%r12,%rbx,8), %rsi
	leaq	L_.str.7(%rip), %rdi
	callq	_printf
	movl	-56(%rbp), %eax
LBB0_33:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	_NOTE_LINK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	8(%r12,%rbx,8), %rsi
	leaq	L_.str.8(%rip), %rdi
	callq	_printf
	movl	-56(%rbp), %eax
LBB0_35:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	_NOTE_RENAME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	8(%r12,%rbx,8), %rsi
	leaq	L_.str.9(%rip), %rdi
	callq	_printf
	movl	-56(%rbp), %eax
LBB0_37:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	_NOTE_REVOKE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	8(%r12,%rbx,8), %rsi
	leaq	L_.str.10(%rip), %rdi
	callq	_printf
	movl	-56(%rbp), %eax
LBB0_39:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	_NOTE_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	8(%r12,%rbx,8), %rsi
	leaq	L_.str.11(%rip), %rdi
	callq	_printf
	jmp	LBB0_41
LBB0_18:
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_close
	addq	$16, %rbx
	decq	%r15
	jne	LBB0_19
## %bb.20:
	movq	%r14, %rdi
	callq	_free
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not enough memory"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"cannot open %s"

	.comm	_EVFILT_VNODE,4,2               ## @EVFILT_VNODE
	.comm	_EV_ADD,4,2                     ## @EV_ADD
	.comm	_EV_ENABLE,4,2                  ## @EV_ENABLE
	.comm	_EV_ONESHOT,4,2                 ## @EV_ONESHOT
	.comm	_NOTE_ATTRIB,4,2                ## @NOTE_ATTRIB
	.comm	_NOTE_DELETE,4,2                ## @NOTE_DELETE
	.comm	_NOTE_EXTEND,4,2                ## @NOTE_EXTEND
	.comm	_NOTE_LINK,4,2                  ## @NOTE_LINK
	.comm	_NOTE_RENAME,4,2                ## @NOTE_RENAME
	.comm	_NOTE_REVOKE,4,2                ## @NOTE_REVOKE
	.comm	_NOTE_WRITE,4,2                 ## @NOTE_WRITE
L_.str.2:                               ## @.str.2
	.asciz	"kqueue"

	.comm	_stdin,4,2                      ## @stdin
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
L_.str.3:                               ## @.str.3
	.asciz	"%s returned %d"

L_.str.4:                               ## @.str.4
	.asciz	"kevent"

L_.str.5:                               ## @.str.5
	.asciz	"%s - NOTE_ATTRIB\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s - NOTE_DELETE\n"

L_.str.7:                               ## @.str.7
	.asciz	"%s - NOTE_EXTEND\n"

L_.str.8:                               ## @.str.8
	.asciz	"%s - NOTE_LINK\n"

L_.str.9:                               ## @.str.9
	.asciz	"%s - NOTE_RENAME\n"

L_.str.10:                              ## @.str.10
	.asciz	"%s - NOTE_REVOKE\n"

L_.str.11:                              ## @.str.11
	.asciz	"%s - NOTE_WRITE\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kqueue_main                    ; -- Begin function kqueue_main
	.p2align	2
_kqueue_main:                           ; @kqueue_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x21, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EXIT_FAILURE@GOTPAGEOFF]
	cmp	w0, #2
	b.lt	LBB0_38
; %bb.1:
	mov	x22, x1
	sub	w19, w0, #1
	lsl	w8, w0, #4
	sub	w0, w8, #32
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
LBB0_3:
	add	x28, x22, #8
	mov	x21, x19
Lloh4:
	adrp	x24, _NOTE_RENAME@GOTPAGE
Lloh5:
	ldr	x24, [x24, _NOTE_RENAME@GOTPAGEOFF]
Lloh6:
	adrp	x25, _NOTE_REVOKE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _NOTE_REVOKE@GOTPAGEOFF]
	mov	x27, x28
	mov	x22, x20
Lloh8:
	adrp	x26, _NOTE_WRITE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _NOTE_WRITE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x8, _EVFILT_VNODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EVFILT_VNODE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _EV_ADD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EV_ADD@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _EV_ENABLE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EV_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _EV_ONESHOT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EV_ONESHOT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh22:
	adrp	x8, _NOTE_ATTRIB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NOTE_ATTRIB@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _NOTE_DELETE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NOTE_DELETE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh28:
	adrp	x9, _NOTE_EXTEND@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NOTE_EXTEND@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _NOTE_LINK@GOTPAGE
Lloh32:
	ldr	x9, [x9, _NOTE_LINK@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x26]
	orr	w4, w8, w9
	mov	x0, x22
	mov	x1, x23
	mov	w5, #0
	mov	w6, #0
	bl	_EV_SET
	add	x22, x22, #16
	add	x27, x27, #8
	subs	x21, x21, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x27]
Lloh34:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	bl	_open
	mov	x23, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh37:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldr	x8, [x27]
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
	b	LBB0_4
LBB0_7:
	bl	_kqueue
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh42:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_9:
Lloh47:
	adrp	x8, _stdin@GOTPAGE
Lloh48:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
	mov	x27, x8
	ldr	w0, [x8]
	add	x1, sp, #56
	bl	_fgetln
	cbz	x0, LBB0_35
; %bb.10:
	mov	x23, x0
Lloh49:
	adrp	x22, l_.str.5@PAGE
Lloh50:
	add	x22, x22, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh51:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
Lloh54:
	adrp	x1, l_.str.4@PAGE
Lloh55:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x27]
	add	x1, sp, #56
	bl	_fgetln
	mov	x23, x0
	cbz	x0, LBB0_35
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
	str	xzr, [sp, #32]
	mov	w8, #34464
	movk	w8, #1, lsl #16
	str	w8, [sp, #24]
	add	x3, sp, #40
	add	x5, sp, #24
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #1
	bl	_kevent
	ldr	x8, [sp, #56]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [sp, #56]
	add	x8, x8, x23
	ldurb	w8, [x8, #-1]
	cmp	w8, #10
	cset	w0, eq
	bl	_assert
	ldr	x8, [sp, #56]
	add	x8, x8, x23
	sturb	wzr, [x8, #-1]
	mov	x0, x23
	bl	_system
                                        ; kill: def $w0 killed $w0 def $x0
Lloh56:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	stp	x23, x0, [sp]
                                        ; kill: def $w0 killed $w0 killed $x0
Lloh59:
	adrp	x1, l_.str.3@PAGE
Lloh60:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
	add	x3, sp, #40
	add	x5, sp, #24
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #1
	bl	_kevent
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x23, #0
	ldr	x8, [sp, #40]
	mov	x9, x20
LBB0_18:                                ;   Parent Loop BB0_13 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x10, [x9]
	cmp	x8, x10
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=3
	add	x23, x23, #1
	add	x9, x9, #16
	cmp	x19, x23
	b.ne	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x23, x19
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	w8, [sp, #48]
Lloh61:
	adrp	x9, _NOTE_ATTRIB@GOTPAGE
Lloh62:
	ldr	x9, [x9, _NOTE_ATTRIB@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x1, [x28, w23, uxtw #3]
	mov	x0, x22
	bl	_printf
	ldr	w8, [sp, #48]
LBB0_23:                                ;   in Loop: Header=BB0_15 Depth=2
Lloh64:
	adrp	x9, _NOTE_DELETE@GOTPAGE
Lloh65:
	ldr	x9, [x9, _NOTE_DELETE@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x1, [x28, w23, uxtw #3]
Lloh67:
	adrp	x0, l_.str.6@PAGE
Lloh68:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	ldr	w8, [sp, #48]
LBB0_25:                                ;   in Loop: Header=BB0_15 Depth=2
Lloh69:
	adrp	x9, _NOTE_EXTEND@GOTPAGE
Lloh70:
	ldr	x9, [x9, _NOTE_EXTEND@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x1, [x28, w23, uxtw #3]
Lloh72:
	adrp	x0, l_.str.7@PAGE
Lloh73:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	ldr	w8, [sp, #48]
LBB0_27:                                ;   in Loop: Header=BB0_15 Depth=2
Lloh74:
	adrp	x9, _NOTE_LINK@GOTPAGE
Lloh75:
	ldr	x9, [x9, _NOTE_LINK@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x1, [x28, w23, uxtw #3]
Lloh77:
	adrp	x0, l_.str.8@PAGE
Lloh78:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	ldr	w8, [sp, #48]
LBB0_29:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x1, [x28, w23, uxtw #3]
Lloh79:
	adrp	x0, l_.str.9@PAGE
Lloh80:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	ldr	w8, [sp, #48]
LBB0_31:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x1, [x28, w23, uxtw #3]
Lloh81:
	adrp	x0, l_.str.10@PAGE
Lloh82:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
	ldr	w8, [sp, #48]
LBB0_33:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.34:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x1, [x28, w23, uxtw #3]
Lloh83:
	adrp	x0, l_.str.11@PAGE
Lloh84:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
	b	LBB0_15
LBB0_35:
	mov	x21, x20
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21], #16
	bl	_close
	subs	x19, x19, #1
	b.ne	LBB0_36
; %bb.37:
	mov	x0, x20
	bl	_free
Lloh85:
	adrp	x21, _EXIT_SUCCESS@GOTPAGE
Lloh86:
	ldr	x21, [x21, _EXIT_SUCCESS@GOTPAGEOFF]
LBB0_38:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh85, Lloh86
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not enough memory"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"cannot open %s"

	.comm	_EVFILT_VNODE,4,2               ; @EVFILT_VNODE
	.comm	_EV_ADD,4,2                     ; @EV_ADD
	.comm	_EV_ENABLE,4,2                  ; @EV_ENABLE
	.comm	_EV_ONESHOT,4,2                 ; @EV_ONESHOT
	.comm	_NOTE_ATTRIB,4,2                ; @NOTE_ATTRIB
	.comm	_NOTE_DELETE,4,2                ; @NOTE_DELETE
	.comm	_NOTE_EXTEND,4,2                ; @NOTE_EXTEND
	.comm	_NOTE_LINK,4,2                  ; @NOTE_LINK
	.comm	_NOTE_RENAME,4,2                ; @NOTE_RENAME
	.comm	_NOTE_REVOKE,4,2                ; @NOTE_REVOKE
	.comm	_NOTE_WRITE,4,2                 ; @NOTE_WRITE
l_.str.2:                               ; @.str.2
	.asciz	"kqueue"

	.comm	_stdin,4,2                      ; @stdin
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
l_.str.3:                               ; @.str.3
	.asciz	"%s returned %d"

l_.str.4:                               ; @.str.4
	.asciz	"kevent"

l_.str.5:                               ; @.str.5
	.asciz	"%s - NOTE_ATTRIB\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s - NOTE_DELETE\n"

l_.str.7:                               ; @.str.7
	.asciz	"%s - NOTE_EXTEND\n"

l_.str.8:                               ; @.str.8
	.asciz	"%s - NOTE_LINK\n"

l_.str.9:                               ; @.str.9
	.asciz	"%s - NOTE_RENAME\n"

l_.str.10:                              ; @.str.10
	.asciz	"%s - NOTE_REVOKE\n"

l_.str.11:                              ; @.str.11
	.asciz	"%s - NOTE_WRITE\n"

.subsections_via_symbols
