	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mousedev_poll
_mousedev_poll:                         ## @mousedev_poll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rdx
	movq	(%rdi), %r14
	movq	16(%r14), %rbx
	leaq	8(%rbx), %rsi
	callq	_poll_wait
	movq	_EPOLLHUP@GOTPCREL(%rip), %rcx
	movq	_EPOLLOUT@GOTPCREL(%rip), %rdx
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EPOLLWRNORM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %esi
	orl	(%rdx), %eax
	cmpq	$0, (%rbx)
	cmovel	%esi, %eax
	cmpq	$0, 8(%r14)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, (%r14)
	je	LBB0_3
LBB0_2:
	movq	_EPOLLIN@GOTPCREL(%rip), %rcx
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLOUT,4,2                   ## @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ## @EPOLLWRNORM
	.comm	_EPOLLHUP,4,2                   ## @EPOLLHUP
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.no_dead_strip	_mousedev_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mousedev_poll
_mousedev_poll:                         ; @mousedev_poll
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x1
	ldr	x19, [x0]
	ldr	x20, [x19, #16]
	add	x1, x20, #8
	bl	_poll_wait
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _EPOLLHUP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EPOLLHUP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _EPOLLOUT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EPOLLOUT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _EPOLLERR@GOTPAGE
Lloh7:
	ldr	x11, [x11, _EPOLLERR@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _EPOLLWRNORM@GOTPAGE
Lloh10:
	ldr	x12, [x12, _EPOLLWRNORM@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	orr	w9, w11, w9
	orr	w10, w12, w10
	cmp	x8, #0
	csel	w0, w9, w10, eq
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _EPOLLIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPOLLIN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _EPOLLRDNORM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EPOLLRDNORM@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLOUT,4,2                   ; @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ; @EPOLLWRNORM
	.comm	_EPOLLHUP,4,2                   ; @EPOLLHUP
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.no_dead_strip	_mousedev_poll
.subsections_via_symbols
