	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evdev_poll
_evdev_poll:                            ## @evdev_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	24(%r14), %rbx
	leaq	8(%rbx), %rsi
	callq	_poll_wait
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.1:
	cmpl	$0, 16(%r14)
	je	LBB0_2
LBB0_3:
	movq	_EPOLLERR@GOTPCREL(%rip), %rcx
	movq	_EPOLLHUP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_EPOLLWRNORM@GOTPCREL(%rip), %rcx
	movq	_EPOLLOUT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	(%r14), %rsi
	xorl	%eax, %eax
	cmpq	8(%r14), %rsi
	cmovnel	%edx, %eax
	orl	%ecx, %eax
	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	_evdev_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evdev_poll
_evdev_poll:                            ; @evdev_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, #24]
	add	x1, x20, #8
	bl	_poll_wait
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EPOLLERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPOLLERR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EPOLLHUP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EPOLLHUP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _EPOLLWRNORM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPOLLWRNORM@GOTPAGEOFF]
Lloh6:
	adrp	x9, _EPOLLOUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EPOLLOUT@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	ldr	w8, [x8]
	orr	w8, w8, w9
	ldp	x9, x10, [x19]
Lloh8:
	adrp	x11, _EPOLLIN@GOTPAGE
Lloh9:
	ldr	x11, [x11, _EPOLLIN@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
Lloh11:
	adrp	x12, _EPOLLRDNORM@GOTPAGE
Lloh12:
	ldr	x12, [x12, _EPOLLRDNORM@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	orr	w11, w12, w11
	cmp	x9, x10
	csel	w9, wzr, w11, eq
	orr	w0, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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	_evdev_poll
.subsections_via_symbols
