	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_revents
_compute_revents:                       ## @compute_revents
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r12
	movl	%esi, %r15d
	movl	%edi, %r13d
	movq	%rdx, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_recv
	movl	%eax, -44(%rbp)
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	sarl	$31, %ebx
	andl	(%rcx), %ebx
	movq	_ENOTSOCK@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	cmpl	(%rcx), %ebx
	jne	LBB0_6
LBB0_4:
	movq	_FIONREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movl	%r13d, %edi
	callq	_ioctl
	movq	_ENOTSOCK@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	testl	%eax, %eax
	jg	LBB0_8
## %bb.7:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_8
## %bb.9:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.10:
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.11:
	movq	_ECONNABORTED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.12:
	movq	_ENETRESET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.13:
	cmpl	(%rcx), %ebx
	jne	LBB0_14
LBB0_8:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	andl	%r15d, %ebx
	jmp	LBB0_16
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_5:
	movq	_POLLHUP@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_POLLERR@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
LBB0_16:
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_POLLWRBAND@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	andl	%r15d, %ecx
	orl	%ecx, %ebx
LBB0_18:
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	_POLLPRI@GOTPCREL(%rip), %rax
	movq	_POLLRDBAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	%r15d, %ecx
	orl	%ecx, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_PEEK,4,2                   ## @MSG_PEEK
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOTSOCK,4,2                   ## @ENOTSOCK
	.comm	_FIONREAD,4,2                   ## @FIONREAD
	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_ECONNABORTED,4,2               ## @ECONNABORTED
	.comm	_ENETRESET,4,2                  ## @ENETRESET
	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.comm	_POLLWRBAND,4,2                 ## @POLLWRBAND
	.comm	_POLLPRI,4,2                    ## @POLLPRI
	.comm	_POLLRDBAND,4,2                 ## @POLLRDBAND
	.no_dead_strip	_compute_revents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_revents
_compute_revents:                       ; @compute_revents
	.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
	mov	x20, x4
	mov	x22, x3
	mov	x19, x1
	mov	x21, x0
	mov	x1, x2
	bl	_FD_ISSET
	cbz	x0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	bl	_recv
	str	w0, [sp, #12]
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w23, w8, w0, asr #31
Lloh6:
	adrp	x24, _ENOTSOCK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ENOTSOCK@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, #0
	ccmp	w23, w8, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _FIONREAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FIONREAD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_ioctl
	ldr	w0, [sp, #12]
	cbz	w0, LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w23, w8, #4, le
	b.eq	LBB0_8
; %bb.4:
Lloh14:
	adrp	x8, _ESHUTDOWN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ESHUTDOWN@GOTPAGEOFF]
Lloh16:
	adrp	x9, _ECONNRESET@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ECONNRESET@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _ECONNABORTED@GOTPAGE
Lloh21:
	ldr	x10, [x10, _ECONNABORTED@GOTPAGEOFF]
Lloh22:
	adrp	x11, _ENETRESET@GOTPAGE
Lloh23:
	ldr	x11, [x11, _ENETRESET@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
Lloh25:
	ldr	w11, [x11]
	cmp	w23, w8
	ccmp	w23, w9, #4, ne
	ccmp	w23, w10, #4, ne
	ccmp	w23, w11, #4, ne
	b.ne	LBB0_7
LBB0_5:
Lloh26:
	adrp	x8, _POLLHUP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _POLLHUP@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	mov	w23, #0
	b	LBB0_11
LBB0_7:
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_9
LBB0_8:
Lloh28:
	adrp	x8, _POLLIN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh32:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w23, w8, w19
	b	LBB0_11
LBB0_9:
Lloh34:
	adrp	x8, _POLLERR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _POLLERR@GOTPAGEOFF]
LBB0_10:
	ldr	w23, [x8]
LBB0_11:
	mov	x0, x21
	mov	x1, x22
	bl	_FD_ISSET
	cbz	x0, LBB0_13
; %bb.12:
Lloh36:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh40:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh42:
	adrp	x9, _POLLWRBAND@GOTPAGE
Lloh43:
	ldr	x9, [x9, _POLLWRBAND@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w8, w8, w19
	orr	w23, w8, w23
LBB0_13:
	mov	x0, x21
	mov	x1, x20
	bl	_FD_ISSET
	cbz	x0, LBB0_15
; %bb.14:
Lloh45:
	adrp	x8, _POLLPRI@GOTPAGE
Lloh46:
	ldr	x8, [x8, _POLLPRI@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
Lloh48:
	adrp	x9, _POLLRDBAND@GOTPAGE
Lloh49:
	ldr	x9, [x9, _POLLRDBAND@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w8, w8, w19
	orr	w23, w8, w23
LBB0_15:
	mov	x0, x23
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_PEEK,4,2                   ; @MSG_PEEK
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOTSOCK,4,2                   ; @ENOTSOCK
	.comm	_FIONREAD,4,2                   ; @FIONREAD
	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_ECONNABORTED,4,2               ; @ECONNABORTED
	.comm	_ENETRESET,4,2                  ; @ENETRESET
	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.comm	_POLLWRBAND,4,2                 ; @POLLWRBAND
	.comm	_POLLPRI,4,2                    ; @POLLPRI
	.comm	_POLLRDBAND,4,2                 ; @POLLRDBAND
	.no_dead_strip	_compute_revents
.subsections_via_symbols
