	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_poll_rs
_rs_poll_rs:                            ## @rs_poll_rs
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	_SOCK_STREAM@GOTPCREL(%rip), %r12
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %r13
	movq	_rs_listening@GOTPCREL(%rip), %r15
	movq	_rs_opening@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rbx), %ecx
	movq	_rs_connected@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_rs_disconnected@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_rs_error@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_13
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	(%r13), %rax
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rbx), %ecx
	cmpl	(%r15), %ecx
	je	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ecx, (%r14)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_rs_do_connect
	testl	%eax, %eax
	je	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.10:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	8(%rbx), %ecx
LBB0_11:
	movq	_rs_connect_error@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_37
## %bb.12:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	andl	%edx, %ecx
	cmovnel	%eax, %ecx
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, %edx
	cmovnel	%eax, %edx
	movq	_POLLERR@GOTPCREL(%rip), %rax
	orw	(%rax), %cx
	orl	%edx, %ecx
	movswl	%cx, %eax
	jmp	LBB0_37
LBB0_13:
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_rs_process_cq
	movq	_POLLIN@GOTPCREL(%rip), %r14
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, (%r14)
	je	LBB0_22
## %bb.14:
	movq	%rbx, %rdi
	callq	_rs_conn_have_rdata
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	movzwl	(%r14), %r12d
	jmp	LBB0_23
LBB0_16:
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_ds_process_cqs
	movq	_POLLIN@GOTPCREL(%rip), %r14
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, (%r14)
	je	LBB0_29
## %bb.17:
	movq	%rbx, %rdi
	callq	_rs_have_rdata
	testq	%rax, %rax
	je	LBB0_29
## %bb.18:
	movzwl	(%r14), %r14d
	jmp	LBB0_30
LBB0_19:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)
	movl	$0, -60(%rbp)
	leaq	-64(%rbp), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_poll
	movl	-60(%rbp), %eax
	jmp	LBB0_37
LBB0_22:
	xorl	%r12d, %r12d
LBB0_23:
	movq	_POLLOUT@GOTPCREL(%rip), %r14
	testl	%r15d, (%r14)
	je	LBB0_26
## %bb.24:
	movq	%rbx, %rdi
	callq	_rs_can_send
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	orw	(%r14), %r12w
LBB0_26:
	movl	8(%rbx), %eax
	movq	_rs_connected@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_36
## %bb.27:
	movq	_rs_disconnected@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_34
## %bb.28:
	movq	_POLLHUP@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_29:
	xorl	%r14d, %r14d
LBB0_30:
	movq	_POLLOUT@GOTPCREL(%rip), %r15
	testl	%r12d, (%r15)
	je	LBB0_33
## %bb.31:
	movq	%rbx, %rdi
	callq	_ds_can_send
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	orw	(%r15), %r14w
LBB0_33:
	movswl	%r14w, %eax
	jmp	LBB0_37
LBB0_34:
	movq	_POLLERR@GOTPCREL(%rip), %rax
LBB0_35:
	orw	(%rax), %r12w
LBB0_36:
	movswl	%r12w, %eax
LBB0_37:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
	.comm	_rs_connected,4,2               ## @rs_connected
	.comm	_rs_disconnected,4,2            ## @rs_disconnected
	.comm	_rs_error,4,2                   ## @rs_error
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLHUP,2,1                    ## @POLLHUP
	.comm	_POLLERR,2,1                    ## @POLLERR
	.comm	_SOCK_DGRAM,8,3                 ## @SOCK_DGRAM
	.comm	_rs_listening,4,2               ## @rs_listening
	.comm	_rs_opening,4,2                 ## @rs_opening
	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
	.comm	_rs_connect_error,4,2           ## @rs_connect_error
	.no_dead_strip	_rs_poll_rs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_poll_rs
_rs_poll_rs:                            ; @rs_poll_rs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	str	w2, [sp, #4]                    ; 4-byte Folded Spill
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _SOCK_STREAM@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SOCK_STREAM@GOTPAGEOFF]
Lloh2:
	adrp	x24, _rs_connected@GOTPAGE
Lloh3:
	ldr	x24, [x24, _rs_connected@GOTPAGEOFF]
Lloh4:
	adrp	x26, _rs_error@GOTPAGE
Lloh5:
	ldr	x26, [x26, _rs_error@GOTPAGEOFF]
Lloh6:
	adrp	x27, _SOCK_DGRAM@GOTPAGE
Lloh7:
	ldr	x27, [x27, _SOCK_DGRAM@GOTPAGEOFF]
Lloh8:
	adrp	x20, _rs_listening@GOTPAGE
Lloh9:
	ldr	x20, [x20, _rs_listening@GOTPAGEOFF]
Lloh10:
	adrp	x21, _rs_opening@GOTPAGE
Lloh11:
	ldr	x21, [x21, _rs_opening@GOTPAGEOFF]
Lloh12:
	adrp	x28, _errno@GOTPAGE
Lloh13:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
Lloh14:
	adrp	x22, _EINPROGRESS@GOTPAGE
Lloh15:
	ldr	x22, [x22, _EINPROGRESS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x19, #8]
	ldr	w10, [x24]
	and	w10, w10, w9
Lloh16:
	adrp	x11, _rs_disconnected@GOTPAGE
Lloh17:
	ldr	x11, [x11, _rs_disconnected@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	cmp	w10, #0
	ccmp	w9, w11, #4, eq
	b.eq	LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w10, [x26]
	tst	w10, w9
	b.ne	LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x20]
	cmp	w8, w9
	b.eq	LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_rs_do_connect
	cbz	w0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x28]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.9:
	str	xzr, [x28]
	ldr	w8, [x19, #8]
LBB0_10:
Lloh19:
	adrp	x9, _rs_connect_error@GOTPAGE
Lloh20:
	ldr	x9, [x9, _rs_connect_error@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.11:
Lloh22:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w23
	csel	w8, wzr, w8, eq
Lloh25:
	adrp	x9, _POLLIN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w23
	csel	w9, wzr, w9, eq
Lloh28:
	adrp	x10, _POLLERR@GOTPAGE
Lloh29:
	ldr	x10, [x10, _POLLERR@GOTPAGEOFF]
	ldrh	w10, [x10]
	orr	w8, w8, w10
	orr	w8, w8, w9
	sxth	w0, w8
	b	LBB0_35
LBB0_12:
	mov	x0, x19
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	bl	_rs_process_cq
Lloh30:
	adrp	x20, _POLLIN@GOTPAGE
Lloh31:
	ldr	x20, [x20, _POLLIN@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w23
	b.eq	LBB0_20
; %bb.13:
	mov	x0, x19
	bl	_rs_conn_have_rdata
	cbz	x0, LBB0_20
; %bb.14:
	ldr	w21, [x20]
	b	LBB0_21
LBB0_15:
	mov	x0, x19
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	bl	_ds_process_cqs
Lloh32:
	adrp	x20, _POLLIN@GOTPAGE
Lloh33:
	ldr	x20, [x20, _POLLIN@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w23
	b.eq	LBB0_27
; %bb.16:
	mov	x0, x19
	bl	_rs_have_rdata
	cbz	x0, LBB0_27
; %bb.17:
	ldr	w20, [x20]
	b	LBB0_28
LBB0_18:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #20]
	str	w23, [sp, #16]
	add	x0, sp, #16
	mov	w1, #1
	mov	w2, #0
	bl	_poll
	ldr	w0, [sp, #20]
	b	LBB0_35
LBB0_19:
	mov	w0, #0
	b	LBB0_35
LBB0_20:
	mov	w21, #0
LBB0_21:
Lloh34:
	adrp	x20, _POLLOUT@GOTPAGE
Lloh35:
	ldr	x20, [x20, _POLLOUT@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w23
	b.eq	LBB0_24
; %bb.22:
	mov	x0, x19
	bl	_rs_can_send
	cbz	x0, LBB0_24
; %bb.23:
	ldr	w8, [x20]
	orr	w21, w21, w8
LBB0_24:
	ldr	w8, [x19, #8]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_34
; %bb.25:
Lloh36:
	adrp	x9, _rs_disconnected@GOTPAGE
Lloh37:
	ldr	x9, [x9, _rs_disconnected@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_32
; %bb.26:
Lloh39:
	adrp	x8, _POLLHUP@GOTPAGE
Lloh40:
	ldr	x8, [x8, _POLLHUP@GOTPAGEOFF]
	b	LBB0_33
LBB0_27:
	mov	w20, #0
LBB0_28:
Lloh41:
	adrp	x21, _POLLOUT@GOTPAGE
Lloh42:
	ldr	x21, [x21, _POLLOUT@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w23
	b.eq	LBB0_31
; %bb.29:
	mov	x0, x19
	bl	_ds_can_send
	cbz	x0, LBB0_31
; %bb.30:
	ldr	w8, [x21]
	orr	w20, w20, w8
LBB0_31:
	sxth	w0, w20
	b	LBB0_35
LBB0_32:
Lloh43:
	adrp	x8, _POLLERR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _POLLERR@GOTPAGEOFF]
LBB0_33:
	ldrh	w8, [x8]
	orr	w21, w8, w21
LBB0_34:
	sxth	w0, w21
LBB0_35:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
	.comm	_rs_connected,4,2               ; @rs_connected
	.comm	_rs_disconnected,4,2            ; @rs_disconnected
	.comm	_rs_error,4,2                   ; @rs_error
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLHUP,2,1                    ; @POLLHUP
	.comm	_POLLERR,2,1                    ; @POLLERR
	.comm	_SOCK_DGRAM,8,3                 ; @SOCK_DGRAM
	.comm	_rs_listening,4,2               ; @rs_listening
	.comm	_rs_opening,4,2                 ; @rs_opening
	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
	.comm	_rs_connect_error,4,2           ; @rs_connect_error
	.no_dead_strip	_rs_poll_rs
.subsections_via_symbols
