	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_loop2                   ## -- Begin function server_loop2
	.p2align	4, 0x90
_server_loop2:                          ## @server_loop2
	.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, %rbx
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movl	$0, -60(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_debug
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sigchld_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_child_terminated@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_packet_get_connection_in
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_packet_get_connection_out
	movl	%eax, %r15d
	movq	_use_privsep@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sigterm_handler@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_signal
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_signal
	movq	_SIGQUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_signal
LBB0_2:
	xorl	%eax, %eax
	callq	_notify_setup
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_MAXIMUM
	movq	_notify_pipe@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_MAXIMUM
	movl	%eax, -64(%rbp)
	xorl	%eax, %eax
	callq	_server_init_dispatch
	leaq	-64(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_process_buffered_input_packets
	movq	%rbx, %rdi
	callq	_ssh_packet_is_rekeying
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_packet_not_very_much_data_to_write
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_channel_output_poll
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	movq	_options@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_ssh_packet_is_rekeying
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_packet_get_rekey_timeout
	imull	$1000, %eax, %r13d              ## imm = 0x3E8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%r12, %r9
	pushq	%r13
	leaq	-60(%rbp), %rax
	pushq	%rax
	callq	_wait_until_can_do_something
	addq	$16, %rsp
	movq	_received_sigterm@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_logit
	movl	$255, %edi
	callq	_cleanup_exit
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_collect_children
	movq	%rbx, %rdi
	callq	_ssh_packet_is_rekeying
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_channel_after_select
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_process_input
	testq	%rax, %rax
	js	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	movl	%r15d, %esi
	callq	_process_output
	jmp	LBB0_3
LBB0_15:
	movq	%rbx, %rdi
	callq	_collect_children
	movq	-56(%rbp), %rdi
	callq	_free
	movq	-48(%rbp), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_channel_free_all
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_session_destroy_all
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entering interactive session for SSH2."

	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_sigchld_handler,4,2            ## @sigchld_handler
	.comm	_child_terminated,8,3           ## @child_terminated
	.comm	_use_privsep,4,2                ## @use_privsep
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_sigterm_handler,4,2            ## @sigterm_handler
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_notify_pipe,8,3                ## @notify_pipe
	.comm	_options,8,3                    ## @options
	.comm	_received_sigterm,8,3           ## @received_sigterm
L_.str.1:                               ## @.str.1
	.asciz	"Exiting on signal %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_loop2                   ; -- Begin function server_loop2
	.p2align	2
_server_loop2:                          ; @server_loop2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
Lloh2:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _sigchld_handler@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sigchld_handler@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_signal
Lloh8:
	adrp	x8, _child_terminated@GOTPAGE
Lloh9:
	ldr	x8, [x8, _child_terminated@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
	bl	_packet_get_connection_in
	mov	x20, x0
	bl	_packet_get_connection_out
	mov	x21, x0
Lloh11:
	adrp	x8, _use_privsep@GOTPAGE
Lloh12:
	ldr	x8, [x8, _use_privsep@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x22, _sigterm_handler@GOTPAGE
Lloh18:
	ldr	x22, [x22, _sigterm_handler@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_signal
Lloh19:
	adrp	x8, _SIGINT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_signal
Lloh22:
	adrp	x8, _SIGQUIT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SIGQUIT@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_signal
LBB0_2:
	bl	_notify_setup
	mov	x0, x20
	mov	x1, x21
	bl	_MAXIMUM
Lloh25:
	adrp	x8, _notify_pipe@GOTPAGE
Lloh26:
	ldr	x8, [x8, _notify_pipe@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_MAXIMUM
	str	w0, [sp, #12]
	bl	_server_init_dispatch
Lloh28:
	adrp	x23, _options@GOTPAGE
Lloh29:
	ldr	x23, [x23, _options@GOTPAGEOFF]
	mov	w24, #1000
Lloh30:
	adrp	x25, _received_sigterm@GOTPAGE
Lloh31:
	ldr	x25, [x25, _received_sigterm@GOTPAGEOFF]
Lloh32:
	adrp	x22, l_.str.1@PAGE
Lloh33:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_process_buffered_input_packets
	mov	x0, x19
	bl	_ssh_packet_is_rekeying
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_packet_not_very_much_data_to_write
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_channel_output_poll
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_ssh_packet_is_rekeying
	cbz	w0, LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w7, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_packet_get_rekey_timeout
	mul	w7, w0, w24
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x3, sp, #24
	add	x4, sp, #16
	add	x5, sp, #12
	add	x6, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_wait_until_can_do_something
	ldr	x1, [x25]
	cbz	x1, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_logit
	mov	w0, #255
	bl	_cleanup_exit
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_collect_children
	mov	x0, x19
	bl	_ssh_packet_is_rekeying
	cbnz	w0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldp	x2, x1, [sp, #16]
	mov	x0, x19
	bl	_channel_after_select
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [sp, #24]
	mov	x0, x19
	mov	x2, x20
	bl	_process_input
	tbnz	x0, #63, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #16]
	mov	x1, x21
	bl	_process_output
	b	LBB0_3
LBB0_16:
	mov	x0, x19
	bl	_collect_children
	ldr	x0, [sp, #24]
	bl	_free
	ldr	x0, [sp, #16]
	bl	_free
	mov	x0, x19
	bl	_channel_free_all
	mov	x0, x19
	mov	x1, #0
	bl	_session_destroy_all
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entering interactive session for SSH2."

	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_sigchld_handler,4,2            ; @sigchld_handler
	.comm	_child_terminated,8,3           ; @child_terminated
	.comm	_use_privsep,4,2                ; @use_privsep
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_sigterm_handler,4,2            ; @sigterm_handler
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_notify_pipe,8,3                ; @notify_pipe
	.comm	_options,8,3                    ; @options
	.comm	_received_sigterm,8,3           ; @received_sigterm
l_.str.1:                               ; @.str.1
	.asciz	"Exiting on signal %d"

.subsections_via_symbols
