	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_do                      ## -- Begin function server_do
	.p2align	4, 0x90
_server_do:                             ## @server_do
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	movl	$1, -72(%rbp)
	movq	$0, -64(%rbp)
	leaq	28(%r15), %rsi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	leaq	24(%r15), %rsi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r15), %rdi
	incq	%rdi
	leaq	-72(%rbp), %r8
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_select
	testq	%rax, %rax
	js	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%r15)
	js	LBB0_16
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.3:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r12
	leaq	-44(%rbp), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decq	%rbx
	cmpq	8(%r15), %r14
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	16(%r15), %r14
	jne	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_server_accept
	cmpq	(%r15), %r14
	jl	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	decq	%rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_client_connect
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%r15), %r14
	jge	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	testq	%rbx, %rbx
	jg	LBB0_4
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_server_process
	cmpq	(%r15), %r14
	jl	LBB0_15
	jmp	LBB0_16
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_EINTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_10:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%r15), %rbx
	incq	%rbx
	callq	_strerror
	movq	(%r12), %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movl	%r14d, %edi
	movq	%rbx, %rdx
	movl	%eax, %r9d
	callq	_syslog
	movq	$-1, -56(%rbp)                  ## 8-byte Folded Spill
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not select(%d, %p, %p). %s (%d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_do                      ; -- Begin function server_do
	.p2align	2
_server_do:                             ; @server_do
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	w8, #1
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
	add	x1, x19, #28
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
	add	x1, x19, #24
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19]
	add	x0, x8, #1
	add	x1, sp, #12
	add	x2, sp, #8
	add	x4, sp, #16
	mov	x3, #0
	bl	_select
	tbnz	x0, #63, LBB0_12
; %bb.1:
	mov	x20, x0
	mov	x0, #0
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_15
; %bb.2:
	cbz	x20, LBB0_15
; %bb.3:
	mov	x21, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_server_accept
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	cmp	x21, x8
	add	x21, x21, #1
	ccmp	x20, #0, #4, lt
	b.le	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x21
	bl	_FD_ISSET
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x20, x20, #1
	ldr	x8, [x19, #8]
	cmp	x21, x8
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #16]
	cmp	x21, x8
	b.eq	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_server_process
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_FD_ISSET
	cbz	x0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	x20, x20, #1
	mov	x0, x19
	mov	x1, x21
	bl	_client_connect
	b	LBB0_5
LBB0_12:
Lloh0:
	adrp	x21, _errno@GOTPAGE
Lloh1:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh2:
	adrp	x8, _EINTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
LBB0_13:
	mov	x0, #0
	b	LBB0_15
LBB0_14:
Lloh5:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	ldr	x8, [x19]
	add	x19, x8, #1
	bl	_strerror
	mov	x5, x0
	ldr	x6, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_syslog
	mov	x0, #-1
LBB0_15:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not select(%d, %p, %p). %s (%d)"

.subsections_via_symbols
