	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_select_add                     ## -- Begin function select_add
	.p2align	4, 0x90
_select_add:                            ## @select_add
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_EV_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.15:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evsignal_add                   ## TAILCALL
LBB0_1:
	movq	%rdi, %r14
	callq	_check_selectop
	movl	4(%r15), %edi
	cmpl	%edi, (%r14)
	jge	LBB0_9
## %bb.2:
	movl	4(%r14), %eax
	cmpl	$5, %eax
	movl	$4, %ebx
	cmovael	%eax, %ebx
	movslq	%ebx, %r13
	incl	%edi
	movq	_NFDBITS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	callq	_howmany
	cltq
	shlq	$2, %rax
	cmpq	%r13, %rax
	jbe	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%ebx, %ebx
	movl	4(%r15), %edi
	movslq	%ebx, %r13
	incl	%edi
	movl	(%r12), %esi
	jmp	LBB0_4
LBB0_5:
	cmpl	4(%r14), %ebx
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_select_resize
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_check_selectop
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_8:
	movl	4(%r15), %edi
	movl	%edi, (%r14)
LBB0_9:
	movl	(%r15), %eax
	movq	_EV_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movl	32(%r14), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_FD_SET
	movq	24(%r14), %rax
	movslq	4(%r15), %rdi
	movq	%r15, (%rax,%rdi,8)
	movl	(%r15), %eax
LBB0_11:
	movq	_EV_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movl	16(%r14), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_FD_SET
	movq	8(%r14), %rax
	movslq	4(%r15), %rcx
	movq	%r15, (%rax,%rcx,8)
LBB0_13:
	movq	%r14, %rdi
	callq	_check_selectop
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_SIGNAL,4,2                  ## @EV_SIGNAL
	.comm	_NFDBITS,4,2                    ## @NFDBITS
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_select_add                     ; -- Begin function select_add
	.p2align	2
_select_add:                            ; @select_add
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _EV_SIGNAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EV_SIGNAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_evsignal_add
LBB0_2:
	mov	x19, x0
	bl	_check_selectop
	ldr	w8, [x19]
	ldr	w0, [x20, #4]
	cmp	w8, w0
	b.ge	LBB0_10
; %bb.3:
	ldr	w8, [x19, #4]
	mov	w9, #4
	cmp	w8, #4
	csel	w21, w8, w9, hi
	mov	x8, x21
	sxtw	x23, w8
	add	w0, w0, #1
Lloh3:
	adrp	x22, _NFDBITS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NFDBITS@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	bl	_howmany
	cmp	x23, w0, sxtw #2
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w21, w21, #1
	ldr	w8, [x20, #4]
	sxtw	x23, w21
	add	w0, w8, #1
	b	LBB0_4
LBB0_6:
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_select_resize
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_check_selectop
	mov	w0, #-1
	b	LBB0_15
LBB0_9:
	ldr	w0, [x20, #4]
	str	w0, [x19]
LBB0_10:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _EV_READ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EV_READ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w1, [x19, #32]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_FD_SET
	ldr	x9, [x19, #24]
	ldp	w8, w0, [x20]
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	str	x20, [x9, x0, lsl #3]
LBB0_12:
Lloh8:
	adrp	x9, _EV_WRITE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EV_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	w1, [x19, #16]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_FD_SET
	ldr	x8, [x19, #8]
	ldrsw	x9, [x20, #4]
	str	x20, [x8, x9, lsl #3]
LBB0_14:
	mov	x0, x19
	bl	_check_selectop
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_SIGNAL,4,2                  ; @EV_SIGNAL
	.comm	_NFDBITS,4,2                    ; @NFDBITS
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
.subsections_via_symbols
