	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_rfds_wfds
_set_rfds_wfds:                         ## @set_rfds_wfds
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	movl	(%rcx), %edi
	cmpl	$-1, %edi
	je	LBB0_3
## %bb.1:
	movq	_WS_SENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_3
## %bb.2:
	movq	_fdstate@GOTPCREL(%rip), %rsi
	callq	_FD_SET
LBB0_3:
	movl	(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_5
## %bb.4:
	movq	_fdstate@GOTPCREL(%rip), %rsi
	addq	$4, %rsi
	callq	_FD_SET
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_fdstate@GOTPCREL(%rip), %rax
	leaq	4(%rax), %r15
	movq	%r15, %rsi
	callq	_FD_SET
	movl	%r12d, %edi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	callq	_FD_SET
	movq	_FD_SETSIZE@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_17
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$12, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r13d
	cmpl	(%r12), %r13d
	jge	LBB0_17
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rbx), %r13d
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	(%r14), %r13d
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_ws_get_client_from_list
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 8(%rax)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_FD_SET
	movq	_max_file_fd@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_max_file_fd@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_WS_SENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, %edi
	movq	_fdstate@GOTPCREL(%rip), %rsi
	callq	_FD_SET
	movq	_max_file_fd@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_max_file_fd@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	jmp	LBB0_16
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WS_SENDING,4,2                 ## @WS_SENDING
	.comm	_fdstate,8,2                    ## @fdstate
	.comm	_FD_SETSIZE,4,2                 ## @FD_SETSIZE
	.comm	_max_file_fd,4,2                ## @max_file_fd
	.no_dead_strip	_set_rfds_wfds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_rfds_wfds
_set_rfds_wfds:                         ; @set_rfds_wfds
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
	ldr	w0, [x3]
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _WS_SENDING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WS_SENDING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, _fdstate@GOTPAGE
Lloh4:
	ldr	x1, [x1, _fdstate@GOTPAGEOFF]
	bl	_FD_SET
LBB0_3:
Lloh5:
	adrp	x22, _fdstate@GOTPAGE
Lloh6:
	ldr	x22, [x22, _fdstate@GOTPAGEOFF]
	ldr	w0, [x20]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	add	x1, x22, #4
	bl	_FD_SET
LBB0_5:
	ldr	x8, [x21]
	ldr	w0, [x8]
	add	x23, x22, #4
	mov	x1, x23
	bl	_FD_SET
	mov	x0, x24
	mov	x1, x23
	bl	_FD_SET
Lloh7:
	adrp	x28, _FD_SETSIZE@GOTPAGE
Lloh8:
	ldr	x28, [x28, _FD_SETSIZE@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.6:
	mov	w24, #0
	add	x25, x21, #12
Lloh9:
	adrp	x27, _max_file_fd@GOTPAGE
Lloh10:
	ldr	x27, [x27, _max_file_fd@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w24, w24, #1
	ldr	w8, [x28]
	cmp	w24, w8
	b.ge	LBB0_17
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w24, w8
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	cmp	w24, w8
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	mov	x1, x25
	bl	_ws_get_client_from_list
	cbz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x26, x0
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_FD_SET
	ldr	w8, [x27]
	cmp	w24, w8
	b.le	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	str	w24, [x27]
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x26]
Lloh11:
	adrp	x9, _WS_SENDING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WS_SENDING@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_FD_SET
	ldr	w8, [x27]
	cmp	w24, w8
	b.le	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	str	w24, [x27]
	b	LBB0_7
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_WS_SENDING,4,2                 ; @WS_SENDING
	.comm	_fdstate,8,2                    ; @fdstate
	.comm	_FD_SETSIZE,4,2                 ; @FD_SETSIZE
	.comm	_max_file_fd,4,2                ; @max_file_fd
	.no_dead_strip	_set_rfds_wfds
.subsections_via_symbols
