	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_kevent_vnode_note_write   ## -- Begin function test_kevent_vnode_note_write
	.p2align	4, 0x90
_test_kevent_vnode_note_write:          ## @test_kevent_vnode_note_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	callq	_test_begin
	movq	_vnode_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EVFILT_VNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EV_ADD@GOTPCREL(%rip), %rax
	movq	_EV_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NOTE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	$0, (%rsp)
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_EV_SET
	movq	_kqfd@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_kevent
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	callq	_system
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movq	_EV_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -20(%rbp)
	movq	_NOTE_EXTEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -24(%rbp)
	movl	(%r14), %edi
	callq	_kevent_get
	leaq	-24(%rbp), %rdi
	movl	%eax, %esi
	callq	_kevent_cmp
	xorl	%eax, %eax
	callq	_success
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kevent(EVFILT_VNODE, NOTE_WRITE)"

	.comm	_vnode_fd,4,2                   ## @vnode_fd
	.comm	_EVFILT_VNODE,4,2               ## @EVFILT_VNODE
	.comm	_EV_ADD,4,2                     ## @EV_ADD
	.comm	_EV_ONESHOT,4,2                 ## @EV_ONESHOT
	.comm	_NOTE_WRITE,4,2                 ## @NOTE_WRITE
	.comm	_kqfd,4,2                       ## @kqfd
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"echo hello >> ./kqueue-test.tmp"

L_.str.3:                               ## @.str.3
	.asciz	"system"

	.comm	_EV_ENABLE,4,2                  ## @EV_ENABLE
	.comm	_NOTE_EXTEND,4,2                ## @NOTE_EXTEND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_kevent_vnode_note_write   ; -- Begin function test_kevent_vnode_note_write
	.p2align	2
_test_kevent_vnode_note_write:          ; @test_kevent_vnode_note_write
	.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	x19, l_.str@PAGE
Lloh1:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	bl	_test_begin
Lloh2:
	adrp	x8, _vnode_fd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vnode_fd@GOTPAGEOFF]
Lloh4:
	adrp	x9, _EVFILT_VNODE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EVFILT_VNODE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	ldr	w2, [x9]
Lloh8:
	adrp	x8, _EV_ADD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_ADD@GOTPAGEOFF]
Lloh10:
	adrp	x9, _EV_ONESHOT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EV_ONESHOT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh14:
	adrp	x8, _NOTE_WRITE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NOTE_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	add	x0, sp, #8
	mov	w5, #0
	mov	x6, #0
	bl	_EV_SET
Lloh17:
	adrp	x20, _kqfd@GOTPAGE
Lloh18:
	ldr	x20, [x20, _kqfd@GOTPAGEOFF]
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	w2, #1
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_kevent
	tbz	x0, #63, LBB0_2
; %bb.1:
	str	x19, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_system
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
Lloh25:
	adrp	x8, _EV_ENABLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EV_ENABLE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _NOTE_EXTEND@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NOTE_EXTEND@GOTPAGEOFF]
	ldp	w11, w10, [sp, #8]
	bic	w8, w10, w8
Lloh30:
	ldr	w9, [x9]
	orr	w9, w11, w9
	stp	w9, w8, [sp, #8]
	ldr	w0, [x20]
	bl	_kevent_get
	mov	x1, x0
	add	x0, sp, #8
	bl	_kevent_cmp
	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	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kevent(EVFILT_VNODE, NOTE_WRITE)"

	.comm	_vnode_fd,4,2                   ; @vnode_fd
	.comm	_EVFILT_VNODE,4,2               ; @EVFILT_VNODE
	.comm	_EV_ADD,4,2                     ; @EV_ADD
	.comm	_EV_ONESHOT,4,2                 ; @EV_ONESHOT
	.comm	_NOTE_WRITE,4,2                 ; @NOTE_WRITE
	.comm	_kqfd,4,2                       ; @kqfd
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"echo hello >> ./kqueue-test.tmp"

l_.str.3:                               ; @.str.3
	.asciz	"system"

	.comm	_EV_ENABLE,4,2                  ; @EV_ENABLE
	.comm	_NOTE_EXTEND,4,2                ; @NOTE_EXTEND
.subsections_via_symbols
