	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_kevent_vnode_note_attrib  ## -- Begin function test_kevent_vnode_note_attrib
	.p2align	4, 0x90
_test_kevent_vnode_note_attrib:         ## @test_kevent_vnode_note_attrib
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_test_begin
	movq	_vnode_fd@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	_EVFILT_VNODE@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	_EV_ADD@GOTPCREL(%rip), %rax
	movq	_EV_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NOTE_ATTRIB@GOTPCREL(%rip), %r12
	movq	(%r12), %r8
	movq	$0, (%rsp)
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_EV_SET
	movq	_kqfd@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_kevent
	testl	%eax, %eax
	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:
	movl	(%r13), %edi
	leaq	-72(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_kevent
	testl	%eax, %eax
	jg	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_6:
	movq	-72(%rbp), %rcx
	movq	-64(%rbp), %r8
	cmpq	(%r15), %rcx
	jne	LBB0_9
## %bb.7:
	cmpq	(%r14), %r8
	jne	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rax
	cmpq	(%r12), %rax
	je	LBB0_10
LBB0_9:
	movl	-48(%rbp), %r9d
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_err
LBB0_10:
	xorl	%eax, %eax
	callq	_success
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kevent(EVFILT_VNODE, NOTE_ATTRIB)"

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

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

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

L_.str.4:                               ## @.str.4
	.asciz	"%s - incorrect event (sig=%u; filt=%d; flags=%d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_kevent_vnode_note_attrib  ; -- Begin function test_kevent_vnode_note_attrib
	.p2align	2
_test_kevent_vnode_note_attrib:         ; @test_kevent_vnode_note_attrib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x19, l_.str@PAGE
Lloh1:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	bl	_test_begin
Lloh2:
	adrp	x20, _vnode_fd@GOTPAGE
Lloh3:
	ldr	x20, [x20, _vnode_fd@GOTPAGEOFF]
Lloh4:
	adrp	x21, _EVFILT_VNODE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _EVFILT_VNODE@GOTPAGEOFF]
	ldr	x1, [x20]
	ldr	x2, [x21]
Lloh6:
	adrp	x8, _EV_ADD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_ADD@GOTPAGEOFF]
Lloh8:
	adrp	x9, _EV_ONESHOT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EV_ONESHOT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh12:
	adrp	x22, _NOTE_ATTRIB@GOTPAGE
Lloh13:
	ldr	x22, [x22, _NOTE_ATTRIB@GOTPAGEOFF]
	ldr	x4, [x22]
	add	x0, sp, #32
	mov	w5, #0
	mov	x6, #0
	bl	_EV_SET
Lloh14:
	adrp	x23, _kqfd@GOTPAGE
Lloh15:
	ldr	x23, [x23, _kqfd@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x1, sp, #32
	mov	w2, #1
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_kevent
	tbz	w0, #31, LBB0_2
; %bb.1:
	str	x19, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_system
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	ldr	w0, [x23]
	add	x3, sp, #32
	mov	x1, #0
	mov	w2, #0
	mov	w4, #1
	mov	x5, #0
	bl	_kevent
	cmp	w0, #0
	b.gt	LBB0_6
; %bb.5:
	str	x19, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	ldr	x10, [x20]
	ldp	x8, x9, [sp, #32]
	ldr	x11, [x21]
	cmp	x8, x10
	ccmp	x9, x11, #0, eq
	b.ne	LBB0_8
; %bb.7:
	ldr	x10, [sp, #48]
	ldr	x11, [x22]
	cmp	x10, x11
	b.eq	LBB0_9
LBB0_8:
	ldr	w10, [sp, #56]
	stp	x9, x10, [sp, #16]
	stp	x19, x8, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	bl	_success
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kevent(EVFILT_VNODE, NOTE_ATTRIB)"

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

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

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

l_.str.4:                               ; @.str.4
	.asciz	"%s - incorrect event (sig=%u; filt=%d; flags=%d)"

.subsections_via_symbols
