	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serio_raw_poll
_serio_raw_poll:                        ## @serio_raw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rdx
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	leaq	24(%rbx), %rsi
	callq	_poll_wait
	movq	_EPOLLOUT@GOTPCREL(%rip), %rax
	movq	_EPOLLHUP@GOTPCREL(%rip), %rcx
	movq	_EPOLLWRNORM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_EPOLLERR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rax), %edx
	orl	(%rcx), %esi
	cmpq	$0, 16(%rbx)
	cmovel	%edx, %esi
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%rbx), %rdx
	xorl	%eax, %eax
	cmpq	8(%rbx), %rdx
	cmovnel	%ecx, %eax
	orl	%esi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLHUP,4,2                   ## @EPOLLHUP
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.comm	_EPOLLOUT,4,2                   ## @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ## @EPOLLWRNORM
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.no_dead_strip	_serio_raw_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serio_raw_poll
_serio_raw_poll:                        ; @serio_raw_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	x8, [x0]
	ldr	x19, [x8]
	add	x1, x19, #24
	bl	_poll_wait
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _EPOLLOUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EPOLLOUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _EPOLLHUP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EPOLLHUP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _EPOLLWRNORM@GOTPAGE
Lloh7:
	ldr	x11, [x11, _EPOLLWRNORM@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _EPOLLERR@GOTPAGE
Lloh10:
	ldr	x12, [x12, _EPOLLERR@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	orr	w9, w11, w9
	orr	w10, w12, w10
	cmp	x8, #0
	csel	w8, w9, w10, eq
	ldp	x9, x10, [x19]
Lloh12:
	adrp	x11, _EPOLLIN@GOTPAGE
Lloh13:
	ldr	x11, [x11, _EPOLLIN@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
Lloh15:
	adrp	x12, _EPOLLRDNORM@GOTPAGE
Lloh16:
	ldr	x12, [x12, _EPOLLRDNORM@GOTPAGEOFF]
Lloh17:
	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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLHUP,4,2                   ; @EPOLLHUP
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.comm	_EPOLLOUT,4,2                   ; @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ; @EPOLLWRNORM
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.no_dead_strip	_serio_raw_poll
.subsections_via_symbols
