	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_and_delete
_add_and_delete:                        ## @add_and_delete
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_test_begin
	movq	_kqfd@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_EVFILT_USER@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	_EV_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$1, %edx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_kevent_add
	addq	$16, %rsp
	xorl	%eax, %eax
	callq	_test_no_kevents
	movl	(%r14), %edi
	movl	(%r15), %ecx
	movq	_EV_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	movl	$1, %edx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_kevent_add
	addq	$16, %rsp
	xorl	%eax, %eax
	callq	_test_no_kevents
	xorl	%eax, %eax
	callq	_success
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kevent(EVFILT_USER, EV_ADD and EV_DELETE)"

	.comm	_kqfd,4,2                       ## @kqfd
	.comm	_EVFILT_USER,4,2                ## @EVFILT_USER
	.comm	_EV_ADD,4,2                     ## @EV_ADD
	.comm	_EV_DELETE,4,2                  ## @EV_DELETE
	.no_dead_strip	_add_and_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_and_delete
_add_and_delete:                        ; @add_and_delete
	.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	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]
	ldr	w3, [x20]
Lloh6:
	adrp	x8, _EV_ADD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_ADD@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	add	x1, sp, #8
	mov	w2, #1
	mov	w5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_kevent_add
	bl	_test_no_kevents
	ldr	w0, [x19]
	ldr	w3, [x20]
Lloh9:
	adrp	x8, _EV_DELETE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_DELETE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	add	x1, sp, #8
	mov	w2, #1
	mov	w5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_kevent_add
	bl	_test_no_kevents
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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_ADD and EV_DELETE)"

	.comm	_kqfd,4,2                       ; @kqfd
	.comm	_EVFILT_USER,4,2                ; @EVFILT_USER
	.comm	_EV_ADD,4,2                     ; @EV_ADD
	.comm	_EV_DELETE,4,2                  ; @EV_DELETE
	.no_dead_strip	_add_and_delete
.subsections_via_symbols
