	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_kevent_vnode_add          ## -- Begin function test_kevent_vnode_add
	.p2align	4, 0x90
_test_kevent_vnode_add:                 ## @test_kevent_vnode_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdi
	callq	_test_begin
	leaq	L_.str.2(%rip), %rdi
	callq	_system
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_open
	movq	_vnode_fd@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	callq	_err
LBB0_3:
	movq	(%rbx), %rsi
	movq	_EVFILT_VNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NOTE_WRITE@GOTPCREL(%rip), %rax
	movq	_NOTE_ATTRIB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	_EV_ADD@GOTPCREL(%rip), %rax
	movq	_NOTE_RENAME@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movl	(%rax), %ecx
	movq	_NOTE_DELETE@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	$0, (%rsp)
	leaq	-16(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_EV_SET
	movq	_kqfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_kevent
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	callq	_err
LBB0_5:
	xorl	%eax, %eax
	callq	_success
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kevent(EVFILT_VNODE, EV_ADD)"

L_.str.1:                               ## @.str.1
	.asciz	"./kqueue-test.tmp"

L_.str.2:                               ## @.str.2
	.asciz	"touch ./kqueue-test.tmp"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_vnode_fd,8,3                   ## @vnode_fd
L_.str.3:                               ## @.str.3
	.asciz	"open of %s"

L_.str.4:                               ## @.str.4
	.asciz	"vnode_fd = %d\n"

	.comm	_EVFILT_VNODE,4,2               ## @EVFILT_VNODE
	.comm	_EV_ADD,4,2                     ## @EV_ADD
	.comm	_NOTE_WRITE,4,2                 ## @NOTE_WRITE
	.comm	_NOTE_ATTRIB,4,2                ## @NOTE_ATTRIB
	.comm	_NOTE_RENAME,4,2                ## @NOTE_RENAME
	.comm	_NOTE_DELETE,4,2                ## @NOTE_DELETE
	.comm	_kqfd,4,2                       ## @kqfd
L_.str.5:                               ## @.str.5
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_kevent_vnode_add          ; -- Begin function test_kevent_vnode_add
	.p2align	2
_test_kevent_vnode_add:                 ; @test_kevent_vnode_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_test_begin
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_system
Lloh4:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_open
Lloh9:
	adrp	x19, _vnode_fd@GOTPAGE
Lloh10:
	ldr	x19, [x19, _vnode_fd@GOTPAGEOFF]
	str	x0, [x19]
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	ldr	x1, [x19]
Lloh17:
	adrp	x8, _EVFILT_VNODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EVFILT_VNODE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _EV_ADD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EV_ADD@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
Lloh23:
	adrp	x8, _NOTE_WRITE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NOTE_WRITE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _NOTE_ATTRIB@GOTPAGE
Lloh27:
	ldr	x9, [x9, _NOTE_ATTRIB@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _NOTE_RENAME@GOTPAGE
Lloh30:
	ldr	x9, [x9, _NOTE_RENAME@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _NOTE_DELETE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _NOTE_DELETE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w4, w8, w9
	add	x0, sp, #8
	mov	w5, #0
	mov	x6, #0
	bl	_EV_SET
Lloh35:
	adrp	x8, _kqfd@GOTPAGE
Lloh36:
	ldr	x8, [x8, _kqfd@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #1
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_kevent
	tbz	x0, #63, LBB0_5
; %bb.4:
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
Lloh40:
	adrp	x2, l_.str@PAGE
Lloh41:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
	bl	_success
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kevent(EVFILT_VNODE, EV_ADD)"

l_.str.1:                               ; @.str.1
	.asciz	"./kqueue-test.tmp"

l_.str.2:                               ; @.str.2
	.asciz	"touch ./kqueue-test.tmp"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_vnode_fd,8,3                   ; @vnode_fd
l_.str.3:                               ; @.str.3
	.asciz	"open of %s"

l_.str.4:                               ; @.str.4
	.asciz	"vnode_fd = %d\n"

	.comm	_EVFILT_VNODE,4,2               ; @EVFILT_VNODE
	.comm	_EV_ADD,4,2                     ; @EV_ADD
	.comm	_NOTE_WRITE,4,2                 ; @NOTE_WRITE
	.comm	_NOTE_ATTRIB,4,2                ; @NOTE_ATTRIB
	.comm	_NOTE_RENAME,4,2                ; @NOTE_RENAME
	.comm	_NOTE_DELETE,4,2                ; @NOTE_DELETE
	.comm	_kqfd,4,2                       ; @kqfd
l_.str.5:                               ; @.str.5
	.asciz	"%s"

.subsections_via_symbols
