	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function disable_and_enable
_disable_and_enable:                    ## @disable_and_enable
	.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	_vnode_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EVFILT_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EV_ADD@GOTPCREL(%rip), %r15
	movq	_EV_ONESHOT@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	orl	(%r15), %ecx
	movq	$0, (%rsp)
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movl	$2000, %r9d                     ## imm = 0x7D0
	callq	_EV_SET
	movq	_kqfd@GOTPCREL(%rip), %r12
	movl	(%r12), %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
	callq	_err
LBB0_2:
	movq	_EV_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	(%r12), %edi
	leaq	-40(%rbp), %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_kevent
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	callq	_err
LBB0_4:
	xorl	%eax, %eax
	callq	_test_no_kevents
	movq	_EV_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	(%r12), %edi
	leaq	-40(%rbp), %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_kevent
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	callq	_err
LBB0_6:
	movq	_EV_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r15), %eax
	orl	(%r14), %eax
	movl	%eax, -40(%rbp)
	movl	$1, -36(%rbp)
	movl	(%r12), %edi
	callq	_kevent_get
	leaq	-40(%rbp), %rdi
	movl	%eax, %esi
	callq	_kevent_cmp
	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_TIMER, EV_DISABLE and EV_ENABLE)"

	.comm	_vnode_fd,4,2                   ## @vnode_fd
	.comm	_EVFILT_TIMER,4,2               ## @EVFILT_TIMER
	.comm	_EV_ADD,4,2                     ## @EV_ADD
	.comm	_EV_ONESHOT,4,2                 ## @EV_ONESHOT
	.comm	_kqfd,4,2                       ## @kqfd
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_EV_DISABLE,4,2                 ## @EV_DISABLE
	.comm	_EV_ENABLE,4,2                  ## @EV_ENABLE
	.comm	_EV_CLEAR,4,2                   ## @EV_CLEAR
	.no_dead_strip	_disable_and_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function disable_and_enable
_disable_and_enable:                    ; @disable_and_enable
	.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	x8, _vnode_fd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vnode_fd@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _EVFILT_TIMER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVFILT_TIMER@GOTPAGEOFF]
Lloh7:
	adrp	x20, _EV_ADD@GOTPAGE
Lloh8:
	ldr	x20, [x20, _EV_ADD@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	w8, [x20]
Lloh10:
	adrp	x19, _EV_ONESHOT@GOTPAGE
Lloh11:
	ldr	x19, [x19, _EV_ONESHOT@GOTPAGEOFF]
	ldr	w9, [x19]
	orr	w3, w9, w8
	add	x0, sp, #8
	mov	w4, #0
	mov	w5, #2000
	mov	x6, #0
	bl	_EV_SET
Lloh12:
	adrp	x21, _kqfd@GOTPAGE
Lloh13:
	ldr	x21, [x21, _kqfd@GOTPAGEOFF]
	ldr	w0, [x21]
	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:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh18:
	adrp	x8, _EV_DISABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EV_DISABLE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x21]
	add	x1, sp, #8
	mov	w2, #1
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_kevent
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	bl	_test_no_kevents
Lloh25:
	adrp	x8, _EV_ENABLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EV_ENABLE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x21]
	mov	w22, #1
	add	x1, sp, #8
	mov	w2, #1
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_kevent
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh30:
	adrp	x2, l_.str@PAGE
Lloh31:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	ldr	w8, [x20]
Lloh32:
	adrp	x9, _EV_CLEAR@GOTPAGE
Lloh33:
	ldr	x9, [x9, _EV_CLEAR@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	stp	w8, w22, [sp, #8]
	ldr	w0, [x21]
	bl	_kevent_get
	mov	x1, x0
	add	x0, sp, #8
	bl	_kevent_cmp
	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 AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kevent(EVFILT_TIMER, EV_DISABLE and EV_ENABLE)"

	.comm	_vnode_fd,4,2                   ; @vnode_fd
	.comm	_EVFILT_TIMER,4,2               ; @EVFILT_TIMER
	.comm	_EV_ADD,4,2                     ; @EV_ADD
	.comm	_EV_ONESHOT,4,2                 ; @EV_ONESHOT
	.comm	_kqfd,4,2                       ; @kqfd
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_EV_DISABLE,4,2                 ; @EV_DISABLE
	.comm	_EV_ENABLE,4,2                  ; @EV_ENABLE
	.comm	_EV_CLEAR,4,2                   ; @EV_CLEAR
	.no_dead_strip	_disable_and_enable
.subsections_via_symbols
