	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_server                 ## -- Begin function process_server
	.p2align	4, 0x90
_process_server:                        ## @process_server
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_RS_REPL_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_21
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 88(%rdi)
	je	LBB0_21
## %bb.2:
	movq	%rbx, %rdi
	callq	_get_buffer_bytes
	testq	%rax, %rax
	je	LBB0_21
## %bb.3:
	movq	%rax, %r14
	movq	56(%rbx), %rax
	movq	8(%rax), %rcx
	addq	(%rax), %rcx
	movq	_MAX_NET_OUT_QUEUE_BYTES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jg	LBB0_21
## %bb.4:
	movq	8(%rbx), %r12
	subq	16(%rbx), %r12
	movq	%r12, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	_DIRTY_THRESHOLD_LOW@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jge	LBB0_21
## %bb.5:
	movq	24(%rbx), %rcx
	leaq	(%rcx,%r14), %rax
	movq	_DIRTY_THRESHOLD_HIGH@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %r15
	movslq	%r12d, %rdx
	subq	%rdx, %r15
	movl	(%rbx), %esi
	movq	_RS_ZIPPED@GOTPCREL(%rip), %rdi
	movq	64(%rbx), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	testl	%esi, (%rdi)
	je	LBB0_8
## %bb.6:
	cmpq	%rdx, %rax
	jne	LBB0_19
## %bb.7:
	movq	_RS_LOGROTATE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, (%rbx)
	movq	8(%rbx), %rax
	addq	%r14, %rax
	movq	%rax, 32(%rbx)
	jmp	LBB0_19
LBB0_8:
	cmpq	%rdx, %rax
	jge	LBB0_10
## %bb.9:
	addq	$-36, %rdx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	cmpq	%rdx, %rax
	cmovgq	%rsi, %r14
	jmp	LBB0_19
LBB0_10:
	leaq	-36(%r14), %r12
	cmpq	%r15, %r12
	jg	LBB0_19
## %bb.11:
	xorl	%edi, %edi
	cmpq	%rdx, %rax
	sete	%dil
	callq	_assert
	movq	64(%rbx), %rax
	movq	80(%rbx), %rcx
	movq	(%rax), %rax
	movq	(%rcx), %rcx
	cmpq	%rcx, 8(%rax)
	jne	LBB0_17
## %bb.12:
	movq	%rbx, %rdi
	callq	_check_last36_bytes
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:
	movq	%rbx, %rdi
	callq	_load_data
	movq	40(%rbx), %r12
	subq	48(%rbx), %r12
	jns	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	addq	72(%rbx), %r12
	setg	%dil
	callq	_assert
LBB0_15:
	xorl	%edi, %edi
	cmpq	%r14, %r12
	setge	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_check_last36_bytes
	cmpl	$36, %eax
	jne	LBB0_18
## %bb.16:
	xorl	%r14d, %r14d
	cmpq	$36, %r12
	setge	%r14b
	movl	%r14d, %edi
	callq	_assert
	addq	$-36, %r12
	movl	%r14d, %edi
	callq	_assert
	movq	8(%rbx), %rax
	addq	%r12, %rax
	movq	%rax, 32(%rbx)
	movq	_RS_LOGROTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_18:
	movq	%r12, %r14
	jmp	LBB0_19
LBB0_17:
	setl	%al
	movzbl	%al, %edi
	callq	_assert
	testq	%r14, %r14
	cmovgq	%r12, %r14
	movq	%r14, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	8(%rbx), %rax
	addq	%r14, %rax
	movq	%rax, 32(%rbx)
	movq	_RS_LOGROTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_19:
	testq	%r14, %r14
	jle	LBB0_21
## %bb.20:
	movslq	%r15d, %rdx
	cmpq	%rdx, %r14
	cmovll	%r14d, %edx
	movq	_MAX_UPDATE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	cmovgel	%eax, %edx
	movq	56(%rbx), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_update_packet             ## TAILCALL
LBB0_21:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RS_REPL_STARTED,4,2            ## @RS_REPL_STARTED
	.comm	_MAX_NET_OUT_QUEUE_BYTES,8,3    ## @MAX_NET_OUT_QUEUE_BYTES
	.comm	_DIRTY_THRESHOLD_LOW,8,3        ## @DIRTY_THRESHOLD_LOW
	.comm	_DIRTY_THRESHOLD_HIGH,4,2       ## @DIRTY_THRESHOLD_HIGH
	.comm	_RS_ZIPPED,4,2                  ## @RS_ZIPPED
	.comm	_RS_LOGROTATE,4,2               ## @RS_LOGROTATE
	.comm	_MAX_UPDATE_SIZE,4,2            ## @MAX_UPDATE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_server                 ; -- Begin function process_server
	.p2align	2
_process_server:                        ; @process_server
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RS_REPL_STARTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RS_REPL_STARTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #88]
	cbz	w8, LBB0_22
; %bb.2:
	mov	x0, x19
	bl	_get_buffer_bytes
	cbz	x0, LBB0_22
; %bb.3:
	ldr	x8, [x19, #56]
	ldp	x9, x8, [x8]
Lloh3:
	adrp	x10, _MAX_NET_OUT_QUEUE_BYTES@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_NET_OUT_QUEUE_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x8, x8, x9
	cmp	x8, x10
	b.gt	LBB0_22
; %bb.4:
	mov	x20, x0
	ldp	x8, x9, [x19, #8]
	sub	x21, x8, x9
	lsr	x8, x21, #63
	eor	w0, w8, #0x1
	bl	_assert
Lloh6:
	adrp	x8, _DIRTY_THRESHOLD_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIRTY_THRESHOLD_LOW@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ge	LBB0_22
; %bb.5:
	ldr	x9, [x19, #24]
	add	x8, x9, x20
Lloh9:
	adrp	x10, _DIRTY_THRESHOLD_HIGH@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DIRTY_THRESHOLD_HIGH@GOTPAGEOFF]
Lloh11:
	ldrsw	x10, [x10]
	sub	x22, x10, w21, sxtw
Lloh12:
	adrp	x10, _RS_ZIPPED@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RS_ZIPPED@GOTPAGEOFF]
	ldr	w11, [x19]
Lloh14:
	ldr	w12, [x10]
	ldr	x10, [x19, #64]
	ldr	x10, [x10]
	ldr	x10, [x10]
	tst	w12, w11
	b.eq	LBB0_8
; %bb.6:
	cmp	x8, x10
	b.ne	LBB0_19
; %bb.7:
Lloh15:
	adrp	x8, _RS_LOGROTATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RS_LOGROTATE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w8, w8, w11
	str	w8, [x19]
	ldr	x8, [x19, #8]
	add	x8, x8, x20
	str	x8, [x19, #32]
	cmp	x20, #1
	b.ge	LBB0_20
	b	LBB0_22
LBB0_8:
	cmp	x8, x10
	b.ge	LBB0_10
; %bb.9:
	sub	x10, x10, #36
	sub	x9, x10, x9
	cmp	x8, x10
	csel	x20, x9, x20, gt
	cmp	x20, #1
	b.ge	LBB0_20
	b	LBB0_22
LBB0_10:
	sub	x21, x20, #36
	cmp	x21, x22
	b.gt	LBB0_19
; %bb.11:
	cmp	x8, x10
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #64]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x9, [x19, #80]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.12:
	mov	x0, x19
	bl	_check_last36_bytes
	cbz	w0, LBB0_19
; %bb.13:
	mov	x0, x19
	bl	_load_data
	ldp	x8, x9, [x19, #40]
	subs	x23, x8, x9
	b.pl	LBB0_15
; %bb.14:
	ldr	x8, [x19, #72]
	add	x23, x8, x23
	cmp	x23, #0
	cset	w0, gt
	bl	_assert
LBB0_15:
	cmp	x23, x20
	cset	w0, ge
	bl	_assert
	mov	x0, x19
	bl	_check_last36_bytes
	cmp	w0, #36
	b.ne	LBB0_21
; %bb.16:
	cmp	x23, #35
	cset	w21, gt
	mov	x0, x21
	bl	_assert
	sub	x20, x23, #36
	mov	x0, x21
	b	LBB0_18
LBB0_17:
	cset	w0, lt
	bl	_assert
	cmp	x20, #0
	csel	x20, x21, x20, gt
	lsr	x8, x20, #63
	eor	w0, w8, #0x1
LBB0_18:
	bl	_assert
	ldr	x8, [x19, #8]
	add	x8, x8, x20
	str	x8, [x19, #32]
Lloh18:
	adrp	x8, _RS_LOGROTATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RS_LOGROTATE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_19:
	cmp	x20, #1
	b.lt	LBB0_22
LBB0_20:
	cmp	x20, w22, sxtw
	csel	w8, w20, w22, lt
Lloh21:
	adrp	x9, _MAX_UPDATE_SIZE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MAX_UPDATE_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w2, w8, w9, lt
	ldr	x0, [x19, #56]
	mov	x1, x19
	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	_send_update_packet
LBB0_21:
	mov	x20, x23
	cmp	x20, #1
	b.ge	LBB0_20
LBB0_22:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_RS_REPL_STARTED,4,2            ; @RS_REPL_STARTED
	.comm	_MAX_NET_OUT_QUEUE_BYTES,8,3    ; @MAX_NET_OUT_QUEUE_BYTES
	.comm	_DIRTY_THRESHOLD_LOW,8,3        ; @DIRTY_THRESHOLD_LOW
	.comm	_DIRTY_THRESHOLD_HIGH,4,2       ; @DIRTY_THRESHOLD_HIGH
	.comm	_RS_ZIPPED,4,2                  ; @RS_ZIPPED
	.comm	_RS_LOGROTATE,4,2               ; @RS_LOGROTATE
	.comm	_MAX_UPDATE_SIZE,4,2            ; @MAX_UPDATE_SIZE
.subsections_via_symbols
