	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssh_proxy_connect
_ssh_proxy_connect:                     ## @ssh_proxy_connect
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	cmpb	$0, (%rax)
	jne	LBB0_3
LBB0_2:
	movq	__PATH_BSHELL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_3:
	leaq	-56(%rbp), %rdi
	callq	_pipe
	testq	%rax, %rax
	js	LBB0_5
## %bb.4:
	leaq	-64(%rbp), %rdi
	callq	_pipe
	testq	%rax, %rax
	jns	LBB0_6
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_fatal
LBB0_6:
	movq	_options@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_expand_proxy_command
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_debug
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	je	LBB0_7
## %bb.14:
	js	LBB0_15
## %bb.16:
	movq	_proxy_command_pid@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_17
LBB0_15:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	callq	_fatal
LBB0_17:
	movl	-56(%rbp), %edi
	callq	_close
	movl	-60(%rbp), %edi
	callq	_close
	movq	%rbx, %rdi
	callq	_free
	movl	-64(%rbp), %esi
	movl	-52(%rbp), %edx
	movq	%r14, %rdi
	callq	_ssh_packet_set_connection
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	$1, %rcx
	sbbl	%eax, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	-52(%rbp), %edi
	callq	_close
	movl	-56(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.8:
	xorl	%esi, %esi
	callq	_dup2
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
LBB0_10:
	movl	-56(%rbp), %edi
	callq	_close
LBB0_11:
	movl	-64(%rbp), %edi
	callq	_close
	movl	-60(%rbp), %edi
	movl	$1, %esi
	callq	_dup2
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
LBB0_13:
	movl	-60(%rbp), %edi
	callq	_close
	movq	%r15, -144(%rbp)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, -136(%rbp)
	movq	%rbx, -128(%rbp)
	movq	$0, -120(%rbp)
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_DFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	leaq	-144(%rbp), %rsi
	movq	%r15, %rdi
	callq	_execv
	movq	-144(%rbp), %rdi
	callq	_perror
	movl	$1, %edi
	callq	_exit
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SHELL"

	.comm	__PATH_BSHELL,8,3               ## @_PATH_BSHELL
L_.str.1:                               ## @.str.1
	.asciz	"Could not create pipes to communicate with the proxy: %.100s"

	.comm	_errno,4,2                      ## @errno
	.comm	_options,4,2                    ## @options
L_.str.2:                               ## @.str.2
	.asciz	"Executing proxy command: %.500s"

L_.str.3:                               ## @.str.3
	.asciz	"dup2 stdin"

L_.str.4:                               ## @.str.4
	.asciz	"dup2 stdout"

L_.str.5:                               ## @.str.5
	.asciz	"-c"

	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
L_.str.6:                               ## @.str.6
	.asciz	"fork failed: %.100s"

	.comm	_proxy_command_pid,8,3          ## @proxy_command_pid
	.no_dead_strip	_ssh_proxy_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssh_proxy_connect
_ssh_proxy_connect:                     ; @ssh_proxy_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbnz	w8, LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, __PATH_BSHELL@GOTPAGE
Lloh6:
	ldr	x8, [x8, __PATH_BSHELL@GOTPAGEOFF]
Lloh7:
	ldr	x19, [x8]
LBB0_3:
	sub	x0, x29, #64
	bl	_pipe
	tbnz	x0, #63, LBB0_5
; %bb.4:
	sub	x0, x29, #72
	bl	_pipe
	tbz	x0, #63, LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_6:
Lloh13:
	adrp	x8, _options@GOTPAGE
Lloh14:
	ldr	x8, [x8, _options@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	bl	_expand_proxy_command
	mov	x21, x0
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_debug
	bl	_fork
	cbz	x0, LBB0_12
; %bb.7:
	tbnz	x0, #63, LBB0_9
; %bb.8:
Lloh18:
	adrp	x8, _proxy_command_pid@GOTPAGE
Lloh19:
	ldr	x8, [x8, _proxy_command_pid@GOTPAGEOFF]
Lloh20:
	str	x0, [x8]
	b	LBB0_10
LBB0_9:
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_fatal
LBB0_10:
	ldur	w0, [x29, #-64]
	bl	_close
	ldur	w0, [x29, #-68]
	bl	_close
	mov	x0, x21
	bl	_free
	ldur	w1, [x29, #-72]
	ldur	w2, [x29, #-60]
	mov	x0, x20
	bl	_ssh_packet_set_connection
	cmp	x0, #0
	csetm	w0, eq
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.11:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_12:
	ldur	w0, [x29, #-60]
	bl	_close
	ldur	w0, [x29, #-64]
	cbz	w0, LBB0_16
; %bb.13:
	mov	w1, #0
	bl	_dup2
	tbz	x0, #63, LBB0_15
; %bb.14:
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
LBB0_15:
	ldur	w0, [x29, #-64]
	bl	_close
LBB0_16:
	ldur	w0, [x29, #-72]
	bl	_close
	ldur	w0, [x29, #-68]
	mov	w1, #1
	bl	_dup2
	tbz	x0, #63, LBB0_18
; %bb.17:
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
LBB0_18:
	ldur	w0, [x29, #-68]
	bl	_close
Lloh33:
	adrp	x8, l_.str.5@PAGE
Lloh34:
	add	x8, x8, l_.str.5@PAGEOFF
	stp	x19, x8, [sp, #8]
	stp	x21, xzr, [sp, #24]
Lloh35:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x8, _SIG_DFL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SIG_DFL@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	bl	_signal
	add	x1, sp, #8
	mov	x0, x19
	bl	_execv
	ldr	x0, [sp, #8]
	bl	_perror
	mov	w0, #1
	bl	_exit
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHELL"

	.comm	__PATH_BSHELL,8,3               ; @_PATH_BSHELL
l_.str.1:                               ; @.str.1
	.asciz	"Could not create pipes to communicate with the proxy: %.100s"

	.comm	_errno,4,2                      ; @errno
	.comm	_options,4,2                    ; @options
l_.str.2:                               ; @.str.2
	.asciz	"Executing proxy command: %.500s"

l_.str.3:                               ; @.str.3
	.asciz	"dup2 stdin"

l_.str.4:                               ; @.str.4
	.asciz	"dup2 stdout"

l_.str.5:                               ; @.str.5
	.asciz	"-c"

	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
l_.str.6:                               ; @.str.6
	.asciz	"fork failed: %.100s"

	.comm	_proxy_command_pid,8,3          ; @proxy_command_pid
	.no_dead_strip	_ssh_proxy_connect
.subsections_via_symbols
