	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_add_fd                      ## -- Begin function sm_add_fd
	.p2align	4, 0x90
_sm_add_fd:                             ## @sm_add_fd
	.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
	movl	%r8d, %r12d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movl	28(%rbx), %esi
	movl	%r14d, %edi
	callq	_FD_ISSET
	movq	_SM_ERROR@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	movl	%r14d, %ebx
	movl	36(%r15), %r14d
	movl	%ebx, %edi
	callq	_HT_KEY
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_ht_put
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_SM_ERROR@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:
	movl	32(%r15), %r14d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_HT_KEY
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_ht_put
	movq	_SM_ERROR@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_9
LBB0_5:
	testl	%r12d, %r12d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_sm_on_debug
	movl	28(%r15), %esi
	movl	%ebx, %edi
	callq	_FD_SET
	movl	24(%r15), %esi
	movl	%ebx, %edi
	callq	_FD_CLR
	movl	20(%r15), %esi
	movl	%ebx, %edi
	callq	_FD_SET
	movl	16(%r15), %esi
	movl	%ebx, %edi
	callq	_FD_CLR
	movl	12(%r15), %esi
	movl	%ebx, %edi
	callq	_FD_CLR
	movl	8(%r15), %esi
	movl	%ebx, %edi
	callq	_FD_CLR
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	movl	4(%r15), %esi
	movl	%ebx, %edi
	callq	_FD_SET
LBB0_7:
	movq	_SM_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%r15)
	jge	LBB0_9
## %bb.8:
	movl	%ebx, (%r15)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SM_ERROR,4,2                   ## @SM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ss.add%s_fd(%d)"

L_.str.1:                               ## @.str.1
	.asciz	"_server"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_SM_SUCCESS,4,2                 ## @SM_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_add_fd                      ; -- Begin function sm_add_fd
	.p2align	2
_sm_add_fd:                             ; @sm_add_fd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x4
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x25, [x0]
	ldr	w1, [x25, #28]
	mov	x0, x19
	bl	_FD_ISSET
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w24, [x25, #36]
	mov	x0, x19
	bl	_HT_KEY
	mov	x1, x0
	mov	x0, x24
	mov	x2, x23
	bl	_ht_put
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _SM_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SM_ERROR@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	cbz	x22, LBB0_6
; %bb.5:
	ldr	w23, [x25, #32]
	mov	x0, x19
	bl	_HT_KEY
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_ht_put
	cbnz	x0, LBB0_2
LBB0_6:
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh4:
	adrp	x9, l_.str.2@PAGE
Lloh5:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x19
	bl	_sm_on_debug
	ldr	w1, [x25, #28]
	mov	x0, x19
	bl	_FD_SET
	ldr	w1, [x25, #24]
	mov	x0, x19
	bl	_FD_CLR
	ldr	w1, [x25, #20]
	mov	x0, x19
	bl	_FD_SET
	ldr	w1, [x25, #16]
	mov	x0, x19
	bl	_FD_CLR
	ldr	w1, [x25, #12]
	mov	x0, x19
	bl	_FD_CLR
	ldr	w1, [x25, #8]
	mov	x0, x19
	bl	_FD_CLR
	cbz	w20, LBB0_8
; %bb.7:
	ldr	w1, [x25, #4]
	mov	x0, x19
	bl	_FD_SET
LBB0_8:
	ldr	w8, [x25]
	cmp	w8, w19
	b.ge	LBB0_10
; %bb.9:
	str	w19, [x25]
LBB0_10:
Lloh8:
	adrp	x8, _SM_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SM_SUCCESS@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SM_ERROR,4,2                   ; @SM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ss.add%s_fd(%d)"

l_.str.1:                               ; @.str.1
	.asciz	"_server"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_SM_SUCCESS,4,2                 ; @SM_SUCCESS
.subsections_via_symbols
