	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oneshot
_oneshot:                               ## @oneshot
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_test_begin
	xorl	%eax, %eax
	callq	_test_no_kevents
	movq	_kqfd@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_EVFILT_USER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_EV_ADD@GOTPCREL(%rip), %rax
	movq	_EV_ONESHOT@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	orl	(%rax), %r8d
	leaq	-40(%rbp), %r12
	movq	%r12, %rsi
	movl	$2, %edx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_kevent_add
	addq	$16, %rsp
	leaq	L_.str.1(%rip), %rdi
	callq	_puts
	movl	(%r14), %edi
	movl	(%rbx), %ecx
	movq	_NOTE_TRIGGER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r9d
	movq	%r12, %rsi
	movl	$2, %edx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	$0
	callq	_kevent_add
	addq	$16, %rsp
	movl	(%r15), %eax
	movl	%eax, -40(%rbp)
	movq	_NOTE_FFCTRLMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rbx), %eax
	notl	%eax
	andl	%eax, -36(%rbp)
	movl	(%r14), %edi
	callq	_kevent_get
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_kevent_cmp
	xorl	%eax, %eax
	callq	_test_no_kevents
	xorl	%eax, %eax
	callq	_success
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kevent(EVFILT_USER, EV_ONESHOT)"

	.comm	_kqfd,4,2                       ## @kqfd
	.comm	_EVFILT_USER,4,2                ## @EVFILT_USER
	.comm	_EV_ADD,4,2                     ## @EV_ADD
	.comm	_EV_ONESHOT,4,2                 ## @EV_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"  -- event 1"

	.comm	_NOTE_TRIGGER,4,2               ## @NOTE_TRIGGER
	.comm	_NOTE_FFCTRLMASK,4,2            ## @NOTE_FFCTRLMASK
	.no_dead_strip	_oneshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oneshot
_oneshot:                               ; @oneshot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_test_begin
	bl	_test_no_kevents
Lloh2:
	adrp	x19, _kqfd@GOTPAGE
Lloh3:
	ldr	x19, [x19, _kqfd@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh4:
	adrp	x20, _EVFILT_USER@GOTPAGE
Lloh5:
	ldr	x20, [x20, _EVFILT_USER@GOTPAGEOFF]
Lloh6:
	adrp	x8, _EV_ADD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_ADD@GOTPAGEOFF]
	ldr	w3, [x20]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x21, _EV_ONESHOT@GOTPAGE
Lloh10:
	ldr	x21, [x21, _EV_ONESHOT@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w4, w9, w8
	add	x1, sp, #8
	mov	w2, #2
	mov	w5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_kevent_add
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_puts
	ldr	w0, [x19]
	ldr	w3, [x20]
Lloh13:
	adrp	x20, _NOTE_TRIGGER@GOTPAGE
Lloh14:
	ldr	x20, [x20, _NOTE_TRIGGER@GOTPAGEOFF]
	ldr	w5, [x20]
	add	x1, sp, #8
	mov	w2, #2
	mov	w4, #0
	mov	w6, #0
	mov	x7, #0
	bl	_kevent_add
	ldr	w8, [x21]
Lloh15:
	adrp	x9, _NOTE_FFCTRLMASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NOTE_FFCTRLMASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [sp, #12]
	ldr	w11, [x20]
	orr	w9, w9, w11
	bic	w9, w10, w9
	stp	w8, w9, [sp, #8]
	ldr	w0, [x19]
	bl	_kevent_get
	mov	x1, x0
	add	x0, sp, #8
	bl	_kevent_cmp
	bl	_test_no_kevents
	bl	_success
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kevent(EVFILT_USER, EV_ONESHOT)"

	.comm	_kqfd,4,2                       ; @kqfd
	.comm	_EVFILT_USER,4,2                ; @EVFILT_USER
	.comm	_EV_ADD,4,2                     ; @EV_ADD
	.comm	_EV_ONESHOT,4,2                 ; @EV_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"  -- event 1"

	.comm	_NOTE_TRIGGER,4,2               ; @NOTE_TRIGGER
	.comm	_NOTE_FFCTRLMASK,4,2            ; @NOTE_FFCTRLMASK
	.no_dead_strip	_oneshot
.subsections_via_symbols
