	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_to_server
_connect_to_server:                     ## @connect_to_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	%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	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_fatal
LBB0_2:
	movl	-56(%rbp), %eax
	movl	%eax, (%r12)
	movl	%eax, (%rbx)
	movl	-52(%rbp), %r13d
	xorl	%eax, %eax
	callq	_fork
	movq	_sshpid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_dup2
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.5:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_dup2
	cmpl	$-1, %eax
	jne	LBB0_6
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	__exit
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_fatal
LBB0_8:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_killchild@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGTSTP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_suspchild@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGTTIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGTTOU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sigchld_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	%r13d, %edi
	callq	_close
	movl	%r13d, %edi
	callq	_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
LBB0_6:
	movl	(%rbx), %edi
	callq	_close
	movl	(%r12), %edi
	callq	_close
	movl	%r13d, %edi
	callq	_close
	movl	%r13d, %edi
	callq	_close
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_DFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_execvp
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socketpair: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_sshpid,4,2                     ## @sshpid
L_.str.1:                               ## @.str.1
	.asciz	"fork: %s"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"dup2: %s\n"

	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
L_.str.3:                               ## @.str.3
	.asciz	"exec: %s: %s\n"

	.comm	_killchild,4,2                  ## @killchild
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.comm	_SIGTSTP,4,2                    ## @SIGTSTP
	.comm	_suspchild,4,2                  ## @suspchild
	.comm	_SIGTTIN,4,2                    ## @SIGTTIN
	.comm	_SIGTTOU,4,2                    ## @SIGTTOU
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_sigchld_handler,4,2            ## @sigchld_handler
	.no_dead_strip	_connect_to_server
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_to_server
_connect_to_server:                     ; @connect_to_server
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	w2, #0
	bl	_socketpair
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
LBB0_2:
	ldp	w8, w19, [sp, #16]
	str	w8, [x22]
	str	w8, [x23]
	bl	_fork
Lloh14:
	adrp	x8, _sshpid@GOTPAGE
Lloh15:
	ldr	x8, [x8, _sshpid@GOTPAGEOFF]
Lloh16:
	str	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.3:
	cbnz	w0, LBB0_8
; %bb.4:
Lloh17:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dup2
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dup2
	cmn	w0, #1
	b.ne	LBB0_11
LBB0_6:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w19, [x8]
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	b	LBB0_12
LBB0_7:
Lloh31:
	adrp	x8, _errno@GOTPAGE
Lloh32:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_8:
Lloh36:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x20, _killchild@GOTPAGE
Lloh40:
	ldr	x20, [x20, _killchild@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_signal
Lloh41:
	adrp	x8, _SIGINT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_signal
Lloh44:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_signal
Lloh47:
	adrp	x8, _SIGTSTP@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SIGTSTP@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x20, _suspchild@GOTPAGE
Lloh51:
	ldr	x20, [x20, _suspchild@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_signal
Lloh52:
	adrp	x8, _SIGTTIN@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SIGTTIN@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_signal
Lloh55:
	adrp	x8, _SIGTTOU@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SIGTTOU@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_signal
Lloh58:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
Lloh61:
	adrp	x8, _sigchld_handler@GOTPAGE
Lloh62:
	ldr	x8, [x8, _sigchld_handler@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	bl	_signal
	mov	x0, x19
	bl	_close
	mov	x0, x19
	bl	_close
	ldr	x8, [sp, #24]
Lloh64:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh65:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	bl	___stack_chk_fail
LBB0_11:
	ldr	w0, [x23]
	bl	_close
	ldr	w0, [x22]
	bl	_close
	mov	x0, x19
	bl	_close
	mov	x0, x19
	bl	_close
Lloh67:
	adrp	x8, _SIGINT@GOTPAGE
Lloh68:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh69:
	ldr	w0, [x8]
Lloh70:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh71:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
	bl	_signal
Lloh73:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh74:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh75:
	ldr	w0, [x8]
Lloh76:
	adrp	x8, _SIG_DFL@GOTPAGE
Lloh77:
	ldr	x8, [x8, _SIG_DFL@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	bl	_signal
	mov	x0, x20
	mov	x1, x21
	bl	_execvp
Lloh79:
	adrp	x8, _stderr@GOTPAGE
Lloh80:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh81:
	ldr	w19, [x8]
Lloh82:
	adrp	x8, _errno@GOTPAGE
Lloh83:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh85:
	adrp	x1, l_.str.3@PAGE
Lloh86:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
LBB0_12:
	bl	_fprintf
	mov	w0, #1
	bl	__exit
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socketpair: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_sshpid,4,2                     ; @sshpid
l_.str.1:                               ; @.str.1
	.asciz	"fork: %s"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"dup2: %s\n"

	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
l_.str.3:                               ; @.str.3
	.asciz	"exec: %s: %s\n"

	.comm	_killchild,4,2                  ; @killchild
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.comm	_SIGTSTP,4,2                    ; @SIGTSTP
	.comm	_suspchild,4,2                  ; @suspchild
	.comm	_SIGTTIN,4,2                    ; @SIGTTIN
	.comm	_SIGTTOU,4,2                    ; @SIGTTOU
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_sigchld_handler,4,2            ; @sigchld_handler
	.no_dead_strip	_connect_to_server
.subsections_via_symbols
