	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_epoll_fetch_events             ## -- Begin function epoll_fetch_events
	.p2align	4, 0x90
_epoll_fetch_events:                    ## @epoll_fetch_events
	.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
	movl	%edi, %ecx
	movq	_epoll_fd@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_new_ev_list@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_MAX_EVENTS@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_epoll_wait
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EINTR@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	cmpq	(%rdx), %rcx
	cmovnel	%eax, %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	testl	%r12d, %r12d
	js	LBB0_1
LBB0_2:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_5
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %edx
	callq	_kprintf
LBB0_5:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.6:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movslq	4(%rax,%r14,8), %r13
	testl	%r13d, %r13d
	setns	%al
	cmpl	(%r15), %r13d
	setl	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_Events@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r13, %r12
	shlq	$4, %r12
	leaq	(%r15,%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	%r13d, (%r15,%r12)
	sete	%dil
	callq	_assert
	movq	(%rbx), %rax
	movl	(%rax,%r14,8), %edi
	movl	%edi, 8(%r15,%r12)
	callq	_epoll_unconv_flags
	orl	%eax, 12(%r15,%r12)
	movq	_ev_timestamp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15,%r12)
	movq	_MAX_EVENTS@GOTPCREL(%rip), %r15
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_put_event_into_heap
	incq	%r14
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_7
LBB0_8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_epoll_fd,4,2                   ## @epoll_fd
	.comm	_new_ev_list,8,3                ## @new_ev_list
	.comm	_MAX_EVENTS,4,2                 ## @MAX_EVENTS
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"epoll_wait()"

	.comm	_verbosity,4,2                  ## @verbosity
L_.str.1:                               ## @.str.1
	.asciz	"epoll_wait(%d, ...) = %d\n"

	.comm	_Events,8,3                     ## @Events
	.comm	_ev_timestamp,4,2               ## @ev_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_epoll_fetch_events             ; -- Begin function epoll_fetch_events
	.p2align	2
_epoll_fetch_events:                    ; @epoll_fetch_events
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x3, x0
Lloh0:
	adrp	x20, _epoll_fd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _epoll_fd@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _new_ev_list@GOTPAGE
Lloh3:
	ldr	x21, [x21, _new_ev_list@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh4:
	adrp	x22, _MAX_EVENTS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MAX_EVENTS@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_epoll_wait
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _EINTR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w0, #0, #0, eq
	csel	w19, wzr, w0, lt
	tbnz	w19, #31, LBB0_7
LBB0_1:
Lloh12:
	adrp	x8, _verbosity@GOTPAGE
Lloh13:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, #1
	ccmp	w19, #0, #4, gt
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x20]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_kprintf
LBB0_3:
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x23, #0
	lsl	x24, x19, #3
Lloh17:
	adrp	x25, _Events@GOTPAGE
Lloh18:
	ldr	x25, [x25, _Events@GOTPAGEOFF]
Lloh19:
	adrp	x26, _ev_timestamp@GOTPAGE
Lloh20:
	ldr	x26, [x26, _ev_timestamp@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x8, x8, x23
	ldrsw	x27, [x8, #4]
	cmp	w27, #0
	ldr	w8, [x22]
	ccmp	w27, w8, #0, ge
	cset	w0, lt
	bl	_assert
	ldr	x8, [x25]
	add	x20, x8, x27, lsl #4
	ldr	w8, [x20]
	cmp	w8, w27
	cset	w0, eq
	bl	_assert
	ldr	x8, [x21]
	ldr	w0, [x8, x23]
	str	w0, [x20, #8]
	bl	_epoll_unconv_flags
	ldr	w8, [x20, #12]
	orr	w8, w8, w0
	str	w8, [x20, #12]
	ldr	w8, [x26]
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_put_event_into_heap
	add	x23, x23, #8
	cmp	x24, x23
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_epoll_fd,4,2                   ; @epoll_fd
	.comm	_new_ev_list,8,3                ; @new_ev_list
	.comm	_MAX_EVENTS,4,2                 ; @MAX_EVENTS
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"epoll_wait()"

	.comm	_verbosity,4,2                  ; @verbosity
l_.str.1:                               ; @.str.1
	.asciz	"epoll_wait(%d, ...) = %d\n"

	.comm	_Events,8,3                     ; @Events
	.comm	_ev_timestamp,4,2               ; @ev_timestamp
.subsections_via_symbols
