	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_update_expired
_test_update_expired:                   ## @test_update_expired
	.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	$24, %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
	xorl	%eax, %eax
	callq	_test_no_kevents
	movq	_vnode_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_EVFILT_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_EV_ADD@GOTPCREL(%rip), %rax
	movq	_EV_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_NOTE_USECONDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$1, %edi
	callq	_MS_TO_US
	movq	$0, (%rsp)
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	movq	%rax, %r9
	callq	_EV_SET
	movq	_kqfd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r13, %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:
	movl	$2, %edi
	callq	_mssleep
	xorl	%eax, %eax
	callq	_now
	movq	%rax, %r14
	movl	(%rbx), %edi
	leaq	-56(%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:
	movq	_EV_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -48(%rbp)
	movq	_NOTE_USECONDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -52(%rbp)
	movl	$1, -56(%rbp)
	movl	(%rbx), %edi
	callq	_kevent_get
	leaq	-56(%rbp), %rdi
	movl	%eax, %esi
	callq	_kevent_cmp
	xorl	%eax, %eax
	callq	_now
	movq	%rax, %rbx
	subq	%r14, %rbx
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	movl	$1, %edi
	callq	_MS_TO_US
	cmpq	%rax, %rbx
	jge	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_errx
LBB0_6:
	movl	$2, %edi
	callq	_mssleep
	xorl	%eax, %eax
	callq	_test_no_kevents
	xorl	%eax, %eax
	callq	_success
	addq	$24, %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_TIMER (UPDATE EXP), EV_ADD | EV_ONESHOT)"

	.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	_NOTE_USECONDS,4,2              ## @NOTE_USECONDS
	.comm	_kqfd,4,2                       ## @kqfd
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_EV_CLEAR,4,2                   ## @EV_CLEAR
L_.str.2:                               ## @.str.2
	.asciz	"timer expired after %ld us\n"

L_.str.3:                               ## @.str.3
	.asciz	"early timer expiration: %ld us"

	.no_dead_strip	_test_update_expired
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_update_expired
_test_update_expired:                   ; @test_update_expired
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	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:
	adrp	x9, _EVFILT_TIMER@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EVFILT_TIMER@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
Lloh7:
	ldr	w20, [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	w21, w9, w8
Lloh14:
	adrp	x23, _NOTE_USECONDS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _NOTE_USECONDS@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	w0, #1
	bl	_MS_TO_US
	mov	x5, x0
	mov	x0, sp
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	mov	x6, #0
	bl	_EV_SET
Lloh16:
	adrp	x20, _kqfd@GOTPAGE
Lloh17:
	ldr	x20, [x20, _kqfd@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, sp
	mov	w2, #1
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_kevent
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	mov	w0, #2
	bl	_mssleep
	bl	_now
	mov	x19, x0
	ldr	w0, [x20]
	mov	w21, #1
	mov	x1, sp
	mov	w2, #1
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_kevent
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
Lloh26:
	adrp	x8, _EV_CLEAR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EV_CLEAR@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldp	w10, w9, [sp, #4]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w8, [x23]
	bic	w8, w10, w8
	stp	w21, w8, [sp]
	ldr	w0, [x20]
	bl	_kevent_get
	mov	x1, x0
	mov	x0, sp
	bl	_kevent_cmp
	bl	_now
	sub	x19, x0, x19
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	w0, #1
	bl	_MS_TO_US
	cmp	x19, x0
	b.ge	LBB0_6
; %bb.5:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_6:
	mov	w0, #2
	bl	_mssleep
	bl	_test_no_kevents
	bl	_success
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kevent(EVFILT_TIMER (UPDATE EXP), EV_ADD | EV_ONESHOT)"

	.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	_NOTE_USECONDS,4,2              ; @NOTE_USECONDS
	.comm	_kqfd,4,2                       ; @kqfd
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_EV_CLEAR,4,2                   ; @EV_CLEAR
l_.str.2:                               ; @.str.2
	.asciz	"timer expired after %ld us\n"

l_.str.3:                               ; @.str.3
	.asciz	"early timer expiration: %ld us"

	.no_dead_strip	_test_update_expired
.subsections_via_symbols
