	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_read_write              ## -- Begin function server_read_write
	.p2align	4, 0x90
_server_read_write:                     ## @server_read_write
	.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
	movq	%rdi, %r12
	movl	(%rdi), %r13d
	movq	_C_INCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	64(%rdi), %r14
	movl	20(%rdi), %edx
	movq	8(%rdi), %rcx
	movl	16(%rdi), %r9d
	movl	(%r14), %r10d
	movl	4(%r14), %ebx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_vkprintf
	movq	_C_INCONN@GOTPCREL(%rip), %rsi
	addq	$16, %rsp
	movl	(%r12), %eax
	orl	(%rsi), %eax
	movl	%eax, (%r12)
	movq	_EPOLLHUP@GOTPCREL(%rip), %rcx
	movq	_EPOLLERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_EPOLLRDHUP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%edx, (%r14)
	je	LBB0_2
## %bb.1:
	movl	20(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movq	%r12, %rdi
	callq	_force_clear_connection
	jmp	LBB0_56
LBB0_2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	notl	%r15d
	orl	%r15d, %r13d
	movq	8(%r12), %rcx
	movq	_conn_connecting@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rcx
	jne	LBB0_9
## %bb.3:
	movq	_EVT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, 4(%rcx)
	je	LBB0_7
## %bb.4:
	movl	20(%r12), %r15d
	movq	80(%r12), %rax
	movl	8(%rax), %edi
	movq	%rsi, %r14
	callq	_inet_ntoa
	movq	80(%r12), %rcx
	movl	4(%rcx), %r8d
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	80(%r12), %rax
	incl	(%rax)
	movq	_active_outbound_connections@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_active_connections@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_conn_wait_answer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	_C_PERMANENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	movq	_C_WANTRD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r14), %eax
	movl	%eax, (%r12)
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*64(%rax)
	movq	%r12, %rdi
	callq	_out_total_processed_bytes
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	movq	_C_WANTWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_6:
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*56(%rax)
	movl	20(%r12), %edx
	movl	72(%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movq	8(%r12), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_8
LBB0_7:
	andl	%r13d, (%r12)
	movl	20(%r12), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_kprintf
	movq	_EVT_SPEC@GOTPCREL(%rip), %rax
	jmp	LBB0_57
LBB0_8:
	movl	(%r12), %eax
LBB0_9:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_C_ALARM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%eax, %edx
	je	LBB0_11
## %bb.10:
	notl	%edx
	andl	%edx, %eax
	movl	%eax, (%r12)
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*48(%rax)
	movq	8(%r12), %rcx
LBB0_11:
	movq	_conn_wait_net@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_14
## %bb.12:
	cmpl	$0, 16(%r12)
	jne	LBB0_14
## %bb.13:
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*40(%rax)
	movq	8(%r12), %rcx
LBB0_14:
	movq	_conn_wait_aio@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_17
## %bb.15:
	cmpl	$0, 16(%r12)
	jne	LBB0_17
## %bb.16:
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*40(%rax)
LBB0_17:
	movl	(%r12), %eax
	movq	_C_DFLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_23
## %bb.18:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r12)
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*32(%rax)
	cmpq	$0, 48(%r12)
	je	LBB0_21
## %bb.19:
	movq	%r12, %rdi
	callq	_out_total_unprocessed_bytes
	testq	%rax, %rax
	jle	LBB0_21
## %bb.20:
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
LBB0_21:
	movq	%r12, %rdi
	callq	_out_total_processed_bytes
	testq	%rax, %rax
	jle	LBB0_23
## %bb.22:
	movq	_C_WANTWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_23:
	movq	%rbx, %r13
	movq	_C_WANTRD@GOTPCREL(%rip), %r14
	leaq	L_.str.5(%rip), %r15
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	testl	%eax, (%r14)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_C_FAILED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_C_NORD@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_C_STOPREAD@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_33
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_C_WANTWR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_C_FAILED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_C_NOWR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_33
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_C_REPARSE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_40
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	8(%r12), %rax
	movq	_conn_expect_query@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_conn_reading_query@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_conn_wait_answer@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_conn_reading_answer@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
LBB0_33:                                ##   in Loop: Header=BB0_24 Depth=1
	cmpq	$0, 32(%r12)
	jne	LBB0_40
## %bb.34:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r12, %rdi
	callq	_out_total_processed_bytes
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_out_total_unprocessed_bytes
	addq	%rbx, %rax
	jle	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*8(%rax)
LBB0_36:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*16(%rax)
	movl	%eax, %ebx
	movq	64(%r12), %rax
	movl	4(%rax), %ecx
	movl	16(%rax), %r8d
	movl	$2, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_vkprintf
	testl	%ebx, %ebx
	jne	LBB0_40
## %bb.37:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpq	$0, 56(%r12)
	jne	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r12, %rdi
	callq	_out_total_processed_bytes
	testq	%rax, %rax
	jle	LBB0_24
## %bb.39:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_C_WANTWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*8(%rax)
	jmp	LBB0_24
LBB0_40:
	movl	(%r12), %eax
	movq	_C_DFLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_44
## %bb.41:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r12)
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*32(%rax)
	cmpq	$0, 48(%r12)
	je	LBB0_44
## %bb.42:
	movq	%r12, %rdi
	callq	_out_total_unprocessed_bytes
	testq	%rax, %rax
	jle	LBB0_44
## %bb.43:
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
LBB0_44:
	movq	%r12, %rdi
	callq	_out_total_processed_bytes
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_47
## %bb.45:
	movq	_C_WANTWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*8(%rax)
	movq	_C_RAWMSG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_47
## %bb.46:
	leaq	44(%r12), %rdi
	callq	_free_unused_buffers
	leaq	40(%r12), %rdi
	callq	_free_unused_buffers
LBB0_47:
	movq	32(%r12), %rcx
	testq	%rcx, %rcx
	jne	LBB0_52
## %bb.48:
	movq	8(%r12), %rax
	movq	_conn_error@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_52
## %bb.49:
	movq	_conn_write_close@GOTPCREL(%rip), %rdx
	movl	(%r12), %r8d
	cmpq	(%rdx), %rax
	jne	LBB0_51
## %bb.50:
	movq	_C_WANTWR@GOTPCREL(%rip), %rdx
	testl	%r8d, (%rdx)
	je	LBB0_52
LBB0_51:
	movq	_C_FAILED@GOTPCREL(%rip), %rdx
	testl	%r8d, (%rdx)
	je	LBB0_58
LBB0_52:
	movl	20(%r12), %edx
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movq	8(%r12), %rax
	cmpq	(%r13), %rax
	je	LBB0_55
## %bb.53:
	movq	_active_connections@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_C_SPECIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_55
## %bb.54:
	movq	%r12, %rdi
	callq	_close_special_connection
LBB0_55:
	movq	24(%r12), %rax
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	*24(%rax)
	movq	%r12, %rdi
	callq	_clear_connection_timeout
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	movq	$0, 8(%rbx)
LBB0_56:
	movq	_EVA_DESTROY@GOTPCREL(%rip), %rax
LBB0_57:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_58:
	andl	-44(%rbp), %r8d                 ## 4-byte Folded Reload
	movl	%r8d, (%r12)
	movl	16(%r12), %r9d
	movl	20(%r12), %edx
	leaq	L_.str.7(%rip), %rsi
	movl	$2, %edi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_compute_conn_events            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_C_INCONN,4,2                   ## @C_INCONN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BEGIN processing connection %d, status=%d, flags=%d, pending=%d; epoll_ready=%d, ev->ready=%d\n"

	.comm	_EPOLLHUP,4,2                   ## @EPOLLHUP
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.comm	_EPOLLRDHUP,4,2                 ## @EPOLLRDHUP
L_.str.1:                               ## @.str.1
	.asciz	"socket %d: disconnected, cleaning\n"

	.comm	_EVA_DESTROY,4,2                ## @EVA_DESTROY
	.comm	_conn_connecting,8,3            ## @conn_connecting
	.comm	_EVT_WRITE,4,2                  ## @EVT_WRITE
L_.str.2:                               ## @.str.2
	.asciz	"socket #%d to %s:%d becomes active\n"

	.comm	_active_outbound_connections,4,2 ## @active_outbound_connections
	.comm	_active_connections,4,2         ## @active_connections
	.comm	_conn_wait_answer,8,3           ## @conn_wait_answer
	.comm	_C_PERMANENT,4,2                ## @C_PERMANENT
	.comm	_C_WANTRD,4,2                   ## @C_WANTRD
	.comm	_C_WANTWR,4,2                   ## @C_WANTWR
L_.str.3:                               ## @.str.3
	.asciz	"socket #%d: ready=%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"socket #%d: unknown event before connecting (?)\n"

	.comm	_EVT_SPEC,4,2                   ## @EVT_SPEC
	.comm	_C_ALARM,4,2                    ## @C_ALARM
	.comm	_conn_wait_net,8,3              ## @conn_wait_net
	.comm	_conn_wait_aio,8,3              ## @conn_wait_aio
	.comm	_C_DFLUSH,4,2                   ## @C_DFLUSH
	.comm	_C_NORD,4,2                     ## @C_NORD
	.comm	_C_FAILED,4,2                   ## @C_FAILED
	.comm	_C_STOPREAD,4,2                 ## @C_STOPREAD
	.comm	_C_NOWR,4,2                     ## @C_NOWR
	.comm	_C_REPARSE,4,2                  ## @C_REPARSE
	.comm	_conn_expect_query,8,3          ## @conn_expect_query
	.comm	_conn_reading_query,8,3         ## @conn_reading_query
	.comm	_conn_reading_answer,8,3        ## @conn_reading_answer
L_.str.5:                               ## @.str.5
	.asciz	"server_reader=%d, ready=%02x, state=%02x\n"

	.comm	_C_RAWMSG,4,2                   ## @C_RAWMSG
	.comm	_conn_error,8,3                 ## @conn_error
	.comm	_conn_write_close,8,3           ## @conn_write_close
L_.str.6:                               ## @.str.6
	.asciz	"socket %d: closing and cleaning (error code=%d)\n"

	.comm	_C_SPECIAL,4,2                  ## @C_SPECIAL
L_.str.7:                               ## @.str.7
	.asciz	"END processing connection %d, status=%d, flags=%d, pending=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_read_write              ; -- Begin function server_read_write
	.p2align	2
_server_read_write:                     ; @server_read_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w20, [x0]
Lloh0:
	adrp	x21, _C_INCONN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _C_INCONN@GOTPAGEOFF]
	ldr	w23, [x21]
	ldr	x22, [x0, #64]
	ldr	x8, [x0, #8]
	ldp	w9, w2, [x0, #16]
	ldp	w10, w11, [x22]
	stp	x10, x11, [sp, #24]
	stp	x20, x9, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w9, w9, w8
	str	w9, [x19]
	ldr	w8, [x22]
Lloh4:
	adrp	x10, _EPOLLHUP@GOTPAGE
Lloh5:
	ldr	x10, [x10, _EPOLLHUP@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
Lloh7:
	adrp	x11, _EPOLLERR@GOTPAGE
Lloh8:
	ldr	x11, [x11, _EPOLLERR@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh10:
	adrp	x11, _EPOLLRDHUP@GOTPAGE
Lloh11:
	ldr	x11, [x11, _EPOLLRDHUP@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	orr	w10, w10, w11
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w2, [x19, #20]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	mov	x0, x19
	bl	_force_clear_connection
	b	LBB0_54
LBB0_2:
	orn	w24, w20, w23
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x23, _conn_connecting@GOTPAGE
Lloh16:
	ldr	x23, [x23, _conn_connecting@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x8, x10
	b.ne	LBB0_9
; %bb.3:
	ldr	w8, [x22, #4]
Lloh17:
	adrp	x9, _EVT_WRITE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EVT_WRITE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	ldr	w20, [x19, #20]
	ldr	x8, [x19, #80]
	ldr	w0, [x8, #8]
	bl	_inet_ntoa
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #80]
	ldr	w8, [x8, #4]
	stp	x0, x8, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_vkprintf
	ldr	x8, [x19, #80]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh22:
	adrp	x8, _active_outbound_connections@GOTPAGE
Lloh23:
	ldr	x8, [x8, _active_outbound_connections@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh24:
	adrp	x8, _active_connections@GOTPAGE
Lloh25:
	ldr	x8, [x8, _active_connections@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh26:
	adrp	x8, _conn_wait_answer@GOTPAGE
Lloh27:
	ldr	x8, [x8, _conn_wait_answer@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh29:
	adrp	x8, _C_PERMANENT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _C_PERMANENT@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh31:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh32:
	adrp	x9, _C_WANTRD@GOTPAGE
Lloh33:
	ldr	x9, [x9, _C_WANTRD@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #64]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_out_total_processed_bytes
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.5:
Lloh35:
	adrp	x8, _C_WANTWR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _C_WANTWR@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #56]
	mov	x0, x19
	blr	x8
	ldr	w2, [x19, #20]
	ldr	w8, [x19, #72]
	str	x8, [sp]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_7:
	ldr	w8, [x19]
	and	w8, w8, w24
	str	w8, [x19]
	ldr	w1, [x19, #20]
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_kprintf
Lloh42:
	adrp	x8, _EVT_SPEC@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EVT_SPEC@GOTPAGEOFF]
	b	LBB0_55
LBB0_8:
	ldr	w9, [x19]
LBB0_9:
Lloh44:
	adrp	x10, _C_ALARM@GOTPAGE
Lloh45:
	ldr	x10, [x10, _C_ALARM@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
	bic	w8, w9, w10
	str	w8, [x19]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #48]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #8]
LBB0_11:
Lloh47:
	adrp	x9, _conn_wait_net@GOTPAGE
Lloh48:
	ldr	x9, [x9, _conn_wait_net@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	ldr	w9, [x19, #16]
	cbnz	w9, LBB0_14
; %bb.13:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #40]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #8]
LBB0_14:
	str	w24, [sp, #44]                  ; 4-byte Folded Spill
Lloh50:
	adrp	x9, _conn_wait_aio@GOTPAGE
Lloh51:
	ldr	x9, [x9, _conn_wait_aio@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_17
; %bb.16:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #40]
	mov	x0, x19
	blr	x8
LBB0_17:
	ldr	w8, [x19]
Lloh53:
	adrp	x9, _C_DFLUSH@GOTPAGE
Lloh54:
	ldr	x9, [x9, _C_DFLUSH@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
Lloh56:
	adrp	x25, _C_WANTWR@GOTPAGE
Lloh57:
	ldr	x25, [x25, _C_WANTWR@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.18:
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #32]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_21
; %bb.19:
	mov	x0, x19
	bl	_out_total_unprocessed_bytes
	cmp	x0, #1
	b.lt	LBB0_21
; %bb.20:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
LBB0_21:
	mov	x0, x19
	bl	_out_total_processed_bytes
	cmp	x0, #1
	b.lt	LBB0_23
; %bb.22:
	ldr	w8, [x25]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_23:
Lloh58:
	adrp	x28, _C_WANTRD@GOTPAGE
Lloh59:
	ldr	x28, [x28, _C_WANTRD@GOTPAGEOFF]
Lloh60:
	adrp	x27, _conn_reading_answer@GOTPAGE
Lloh61:
	ldr	x27, [x27, _conn_reading_answer@GOTPAGEOFF]
Lloh62:
	adrp	x26, _C_FAILED@GOTPAGE
Lloh63:
	ldr	x26, [x26, _C_FAILED@GOTPAGEOFF]
Lloh64:
	adrp	x20, l_.str.5@PAGE
Lloh65:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh66:
	adrp	x23, _C_NORD@GOTPAGE
Lloh67:
	ldr	x23, [x23, _C_NORD@GOTPAGEOFF]
Lloh68:
	adrp	x24, _C_STOPREAD@GOTPAGE
Lloh69:
	ldr	x24, [x24, _C_STOPREAD@GOTPAGEOFF]
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w9, [x23]
	ldr	w10, [x26]
	orr	w9, w10, w9
	ldr	w10, [x24]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_30
LBB0_26:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=1
Lloh70:
	adrp	x9, _C_NOWR@GOTPAGE
Lloh71:
	ldr	x9, [x9, _C_NOWR@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	ldr	w10, [x26]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_24 Depth=1
Lloh73:
	adrp	x9, _C_REPARSE@GOTPAGE
Lloh74:
	ldr	x9, [x9, _C_REPARSE@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x19, #8]
Lloh76:
	adrp	x9, _conn_expect_query@GOTPAGE
Lloh77:
	ldr	x9, [x9, _conn_expect_query@GOTPAGEOFF]
Lloh78:
	ldr	x9, [x9]
Lloh79:
	adrp	x10, _conn_reading_query@GOTPAGE
Lloh80:
	ldr	x10, [x10, _conn_reading_query@GOTPAGEOFF]
Lloh81:
	ldr	x10, [x10]
Lloh82:
	adrp	x11, _conn_wait_answer@GOTPAGE
Lloh83:
	ldr	x11, [x11, _conn_wait_answer@GOTPAGEOFF]
Lloh84:
	ldr	x11, [x11]
	ldr	x12, [x27]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_37
LBB0_30:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_37
; %bb.31:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x19
	bl	_out_total_processed_bytes
	mov	x21, x0
	mov	x0, x19
	bl	_out_total_unprocessed_bytes
	add	x8, x0, x21
	cmp	x8, #1
	b.lt	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
LBB0_33:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	ldr	x8, [x19, #64]
	ldr	w9, [x8, #4]
	ldr	w8, [x8, #16]
	stp	x9, x8, [sp]
	mov	w0, #2
	mov	x1, x20
	mov	x2, x21
	bl	_vkprintf
	cbnz	w21, LBB0_37
; %bb.34:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x19
	bl	_out_total_processed_bytes
	cmp	x0, #1
	b.lt	LBB0_24
; %bb.36:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	b	LBB0_24
LBB0_37:
	ldr	w8, [x19]
Lloh85:
	adrp	x9, _C_DFLUSH@GOTPAGE
Lloh86:
	ldr	x9, [x9, _C_DFLUSH@GOTPAGEOFF]
Lloh87:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_41
; %bb.38:
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #32]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_41
; %bb.39:
	mov	x0, x19
	bl	_out_total_unprocessed_bytes
	cmp	x0, #1
	b.lt	LBB0_41
; %bb.40:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
LBB0_41:
	mov	x0, x19
	bl	_out_total_processed_bytes
	cmp	x0, #1
	b.lt	LBB0_43
; %bb.42:
	ldr	w8, [x25]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	ldr	w8, [x19]
Lloh88:
	adrp	x9, _C_RAWMSG@GOTPAGE
Lloh89:
	ldr	x9, [x9, _C_RAWMSG@GOTPAGEOFF]
Lloh90:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_49
LBB0_43:
	ldr	x9, [x19, #32]
	cbnz	x9, LBB0_50
LBB0_44:
	ldr	x8, [x19, #8]
Lloh91:
	adrp	x10, _conn_error@GOTPAGE
Lloh92:
	ldr	x10, [x10, _conn_error@GOTPAGEOFF]
Lloh93:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_50
; %bb.45:
Lloh94:
	adrp	x10, _conn_write_close@GOTPAGE
Lloh95:
	ldr	x10, [x10, _conn_write_close@GOTPAGEOFF]
Lloh96:
	ldr	x11, [x10]
	ldr	w10, [x19]
	cmp	x8, x11
	b.ne	LBB0_47
; %bb.46:
	ldr	w11, [x25]
	tst	w11, w10
	b.eq	LBB0_50
LBB0_47:
	ldr	w11, [x26]
	tst	w11, w10
	b.ne	LBB0_50
; %bb.48:
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	and	w9, w10, w9
	str	w9, [x19]
	ldp	w10, w2, [x19, #16]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh97:
	adrp	x1, l_.str.7@PAGE
Lloh98:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_compute_conn_events
LBB0_49:
	add	x0, x19, #44
	bl	_free_unused_buffers
	add	x0, x19, #40
	bl	_free_unused_buffers
	ldr	x9, [x19, #32]
	cbz	x9, LBB0_44
LBB0_50:
	ldr	w2, [x19, #20]
	str	x9, [sp]
Lloh99:
	adrp	x1, l_.str.6@PAGE
Lloh100:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	ldr	x8, [x19, #8]
Lloh101:
	adrp	x9, _conn_connecting@GOTPAGE
Lloh102:
	ldr	x9, [x9, _conn_connecting@GOTPAGEOFF]
Lloh103:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_53
; %bb.51:
Lloh104:
	adrp	x8, _active_connections@GOTPAGE
Lloh105:
	ldr	x8, [x8, _active_connections@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x19]
Lloh106:
	adrp	x9, _C_SPECIAL@GOTPAGE
Lloh107:
	ldr	x9, [x9, _C_SPECIAL@GOTPAGEOFF]
Lloh108:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_53
; %bb.52:
	mov	x0, x19
	bl	_close_special_connection
LBB0_53:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #24]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_clear_connection_timeout
	mov	x0, x19
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	str	xzr, [x22, #8]
LBB0_54:
Lloh109:
	adrp	x8, _EVA_DESTROY@GOTPAGE
Lloh110:
	ldr	x8, [x8, _EVA_DESTROY@GOTPAGEOFF]
LBB0_55:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh109, Lloh110
	.cfi_endproc
                                        ; -- End function
	.comm	_C_INCONN,4,2                   ; @C_INCONN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BEGIN processing connection %d, status=%d, flags=%d, pending=%d; epoll_ready=%d, ev->ready=%d\n"

	.comm	_EPOLLHUP,4,2                   ; @EPOLLHUP
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.comm	_EPOLLRDHUP,4,2                 ; @EPOLLRDHUP
l_.str.1:                               ; @.str.1
	.asciz	"socket %d: disconnected, cleaning\n"

	.comm	_EVA_DESTROY,4,2                ; @EVA_DESTROY
	.comm	_conn_connecting,8,3            ; @conn_connecting
	.comm	_EVT_WRITE,4,2                  ; @EVT_WRITE
l_.str.2:                               ; @.str.2
	.asciz	"socket #%d to %s:%d becomes active\n"

	.comm	_active_outbound_connections,4,2 ; @active_outbound_connections
	.comm	_active_connections,4,2         ; @active_connections
	.comm	_conn_wait_answer,8,3           ; @conn_wait_answer
	.comm	_C_PERMANENT,4,2                ; @C_PERMANENT
	.comm	_C_WANTRD,4,2                   ; @C_WANTRD
	.comm	_C_WANTWR,4,2                   ; @C_WANTWR
l_.str.3:                               ; @.str.3
	.asciz	"socket #%d: ready=%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"socket #%d: unknown event before connecting (?)\n"

	.comm	_EVT_SPEC,4,2                   ; @EVT_SPEC
	.comm	_C_ALARM,4,2                    ; @C_ALARM
	.comm	_conn_wait_net,8,3              ; @conn_wait_net
	.comm	_conn_wait_aio,8,3              ; @conn_wait_aio
	.comm	_C_DFLUSH,4,2                   ; @C_DFLUSH
	.comm	_C_NORD,4,2                     ; @C_NORD
	.comm	_C_FAILED,4,2                   ; @C_FAILED
	.comm	_C_STOPREAD,4,2                 ; @C_STOPREAD
	.comm	_C_NOWR,4,2                     ; @C_NOWR
	.comm	_C_REPARSE,4,2                  ; @C_REPARSE
	.comm	_conn_expect_query,8,3          ; @conn_expect_query
	.comm	_conn_reading_query,8,3         ; @conn_reading_query
	.comm	_conn_reading_answer,8,3        ; @conn_reading_answer
l_.str.5:                               ; @.str.5
	.asciz	"server_reader=%d, ready=%02x, state=%02x\n"

	.comm	_C_RAWMSG,4,2                   ; @C_RAWMSG
	.comm	_conn_error,8,3                 ; @conn_error
	.comm	_conn_write_close,8,3           ; @conn_write_close
l_.str.6:                               ; @.str.6
	.asciz	"socket %d: closing and cleaning (error code=%d)\n"

	.comm	_C_SPECIAL,4,2                  ; @C_SPECIAL
l_.str.7:                               ; @.str.7
	.asciz	"END processing connection %d, status=%d, flags=%d, pending=%d\n"

.subsections_via_symbols
