	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p9_fd_poll
_p9_fd_poll:                            ## @p9_fd_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	(%rdi), %rax
	movq	_Connected@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.5:
	movq	8(%r15), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.9:
	cmpq	$0, (%rcx)
	je	LBB0_7
## %bb.10:
	movq	%rsi, %r14
	callq	*%rax
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	movq	(%r15), %rdi
	cmpq	%rdi, 8(%r15)
	je	LBB0_15
## %bb.12:
	movq	(%rdi), %rax
	movq	%r14, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	_POLLOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %ebx
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	orl	%eax, %ebx
	jmp	LBB0_15
LBB0_3:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_Connected,8,3                  ## @Connected
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_EIO,4,2                        ## @EIO
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLIN,4,2                     ## @POLLIN
	.no_dead_strip	_p9_fd_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p9_fd_poll
_p9_fd_poll:                            ; @p9_fd_poll
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_11
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _Connected@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Connected@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.2:
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_11
; %bb.3:
	ldr	x0, [x21, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_14
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.5:
	ldr	x9, [x21]
	ldr	x9, [x9]
	cbz	x9, LBB0_14
; %bb.6:
	ldr	x9, [x9]
	cbz	x9, LBB0_14
; %bb.7:
	mov	x19, x1
	blr	x8
	mov	x20, x0
	tbnz	w0, #31, LBB0_13
; %bb.8:
	ldp	x0, x8, [x21]
	cmp	x8, x0
	b.eq	LBB0_13
; %bb.9:
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, x19
	blr	x8
	tbnz	w0, #31, LBB0_15
; %bb.10:
Lloh3:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w8, w20, w8
Lloh6:
	adrp	x9, _POLLIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bic	w9, w0, w9
	orr	w20, w9, w8
	b	LBB0_13
LBB0_11:
Lloh9:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_15:
	mov	x20, x0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_Connected,8,3                  ; @Connected
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_EIO,4,2                        ; @EIO
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLIN,4,2                     ; @POLLIN
	.no_dead_strip	_p9_fd_poll
.subsections_via_symbols
