	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpserver_UpdateSet
_mpserver_UpdateSet:                    ## @mpserver_UpdateSet
	.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	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_descriptor2mpserver
	movq	%rax, %r15
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rax), %rdi
	addq	$4, %rdi
	callq	_link_QueueLen
	movq	8(%r15), %rdi
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
LBB0_4:
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_datalink_RemoveFromSet
	movq	%rax, %rbx
	negl	%ebx
	jmp	LBB0_10
LBB0_5:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_10
## %bb.6:
	movl	(%r15), %edi
	testl	%edi, %edi
	js	LBB0_10
## %bb.7:
	cmpl	%edi, (%r13)
	jg	LBB0_9
## %bb.8:
	incl	%edi
	movl	%edi, (%r13)
	movl	(%r15), %edi
LBB0_9:
	movq	%r14, %rsi
	callq	_FD_SET
	movq	_LogTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_log_Printf
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_3:
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_datalink_RemoveFromSet
	movq	%rax, %rbx
	negl	%ebx
	movq	8(%r15), %rdi
	movl	(%r15), %esi
	movq	%r15, %rdx
	addq	$16, %rdx
	callq	_bundle_SendDatalink
	movq	$0, 8(%r15)
	movl	$-1, (%r15)
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogTIMER,4,2                   ## @LogTIMER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mp: fdset(r) %d\n"

	.no_dead_strip	_mpserver_UpdateSet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpserver_UpdateSet
_mpserver_UpdateSet:                    ; @mpserver_UpdateSet
	.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	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	bl	_descriptor2mpserver
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x8]
	add	x0, x8, #4
	bl	_link_QueueLen
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cbz	w8, LBB0_9
LBB0_3:
	mov	x1, x20
	mov	x2, #0
	mov	x3, #0
	bl	_datalink_RemoveFromSet
	neg	w20, w0
	b	LBB0_11
LBB0_4:
	cbz	x20, LBB0_11
; %bb.5:
	ldr	w0, [x19]
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldr	w8, [x23]
	cmp	w8, w0
	b.gt	LBB0_8
; %bb.7:
	add	w8, w0, #1
	str	w8, [x23]
	ldr	w0, [x19]
LBB0_8:
	mov	x1, x20
	bl	_FD_SET
Lloh0:
	adrp	x8, _LogTIMER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LogTIMER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	mov	w20, #1
	b	LBB0_11
LBB0_9:
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_datalink_RemoveFromSet
	neg	w20, w0
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	add	x2, x19, #16
	bl	_bundle_SendDatalink
	str	xzr, [x19, #8]
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	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
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LogTIMER,4,2                   ; @LogTIMER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mp: fdset(r) %d\n"

	.no_dead_strip	_mpserver_UpdateSet
.subsections_via_symbols
