	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssh_proxy_fdpass_connect
_ssh_proxy_fdpass_connect:              ## @ssh_proxy_fdpass_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	__PATH_BSHELL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	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
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fatal
LBB0_2:
	movq	_options@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	callq	_expand_proxy_command
	movq	%rax, %r13
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_debug
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	je	LBB0_3
## %bb.12:
	movq	%rax, %rbx
	movq	%r12, -152(%rbp)                ## 8-byte Spill
	jns	LBB0_14
## %bb.13:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fatal
LBB0_14:
	movl	-56(%rbp), %edi
	callq	_close
	movq	%r13, %rdi
	callq	_free
	movl	-52(%rbp), %edi
	callq	_mm_receive_fd
	movl	%eax, -156(%rbp)                ## 4-byte Spill
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_16:
	movl	-52(%rbp), %edi
	callq	_close
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	je	LBB0_17
LBB0_21:
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	movl	-156(%rbp), %edx                ## 4-byte Reload
	movl	%edx, %esi
	callq	_ssh_packet_set_connection
	cmpq	$1, %rax
	sbbl	%r15d, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r15d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r14
	leaq	L_.str.8(%rip), %r13
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	jne	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpq	(%r14), %rdi
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	callq	_strerror
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_20
LBB0_3:
	movl	-52(%rbp), %edi
	callq	_close
	movl	-56(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.4:
	xorl	%esi, %esi
	callq	_dup2
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
LBB0_6:
	movl	-56(%rbp), %r14d
	cmpl	$1, %r14d
	je	LBB0_11
LBB0_7:
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_dup2
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
LBB0_9:
	movl	-56(%rbp), %edi
	cmpl	$2, %edi
	jl	LBB0_11
## %bb.10:
	callq	_close
LBB0_11:
	movq	-152(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	cmovneq	%rax, %r15
	movq	%r15, -144(%rbp)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, -136(%rbp)
	movq	%r13, -128(%rbp)
	movq	$0, -120(%rbp)
	leaq	-144(%rbp), %rsi
	movq	%r15, %rdi
	callq	_execv
	movq	-144(%rbp), %rdi
	callq	_perror
	movl	$1, %edi
	callq	_exit
LBB0_23:
	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
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"Could not create socketpair to communicate with proxy dialer: %.100s"

	.comm	_errno,8,3                      ## @errno
	.comm	_options,4,2                    ## @options
L_.str.2:                               ## @.str.2
	.asciz	"Executing proxy dialer 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"

L_.str.6:                               ## @.str.6
	.asciz	"fork failed: %.100s"

L_.str.7:                               ## @.str.7
	.asciz	"proxy dialer did not pass back a connection"

	.comm	_EINTR,8,3                      ## @EINTR
L_.str.8:                               ## @.str.8
	.asciz	"Couldn't wait for child: %s"

	.no_dead_strip	_ssh_proxy_fdpass_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_fdpass_connect
_ssh_proxy_fdpass_connect:              ; @ssh_proxy_fdpass_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	x19, 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
	mov	x20, x0
Lloh5:
	adrp	x8, __PATH_BSHELL@GOTPAGE
Lloh6:
	ldr	x8, [x8, __PATH_BSHELL@GOTPAGEOFF]
Lloh7:
	ldr	x24, [x8]
Lloh8:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	sub	x3, x29, #64
	mov	w2, #0
	bl	_socketpair
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_2:
Lloh19:
	adrp	x8, _options@GOTPAGE
Lloh20:
	ldr	x8, [x8, _options@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	bl	_expand_proxy_command
	mov	x21, x0
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_debug
	bl	_fork
	cbz	x0, LBB0_14
; %bb.3:
	mov	x22, x0
	tbz	x0, #63, LBB0_5
; %bb.4:
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh27:
	adrp	x0, l_.str.6@PAGE
Lloh28:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_fatal
LBB0_5:
	ldur	w0, [x29, #-64]
	bl	_close
	mov	x0, x21
	bl	_free
	ldur	w0, [x29, #-60]
	bl	_mm_receive_fd
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.6:
Lloh29:
	adrp	x0, l_.str.7@PAGE
Lloh30:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_fatal
LBB0_7:
	ldur	w0, [x29, #-60]
	bl	_close
	mov	x0, x22
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_ssh_packet_set_connection
	cmp	x0, #0
	csetm	w0, eq
	ldur	x8, [x29, #-56]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.9:
	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_10:
Lloh34:
	adrp	x23, _errno@GOTPAGE
Lloh35:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh36:
	adrp	x24, _EINTR@GOTPAGE
Lloh37:
	ldr	x24, [x24, _EINTR@GOTPAGEOFF]
Lloh38:
	adrp	x21, l_.str.8@PAGE
Lloh39:
	add	x21, x21, l_.str.8@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.ne	LBB0_8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
	bl	_fatal
	b	LBB0_11
LBB0_14:
	ldur	w0, [x29, #-60]
	bl	_close
	ldur	w0, [x29, #-64]
	cbz	w0, LBB0_18
; %bb.15:
	mov	w1, #0
	bl	_dup2
	tbz	x0, #63, LBB0_17
; %bb.16:
Lloh40:
	adrp	x0, l_.str.3@PAGE
Lloh41:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
LBB0_17:
	ldur	w0, [x29, #-64]
	cmp	w0, #1
	b.eq	LBB0_22
LBB0_18:
	mov	w1, #1
	bl	_dup2
	tbz	x0, #63, LBB0_20
; %bb.19:
Lloh42:
	adrp	x0, l_.str.4@PAGE
Lloh43:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
LBB0_20:
	ldur	w0, [x29, #-64]
	cmp	w0, #2
	b.lt	LBB0_22
; %bb.21:
	bl	_close
LBB0_22:
	cmp	x20, #0
	csel	x0, x24, x20, eq
Lloh44:
	adrp	x8, l_.str.5@PAGE
Lloh45:
	add	x8, x8, l_.str.5@PAGEOFF
	stp	x0, x8, [sp, #16]
	stp	x21, xzr, [sp, #32]
	add	x1, sp, #16
	bl	_execv
	ldr	x0, [sp, #16]
	bl	_perror
	mov	w0, #1
	bl	_exit
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHELL"

	.comm	__PATH_BSHELL,8,3               ; @_PATH_BSHELL
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"Could not create socketpair to communicate with proxy dialer: %.100s"

	.comm	_errno,8,3                      ; @errno
	.comm	_options,4,2                    ; @options
l_.str.2:                               ; @.str.2
	.asciz	"Executing proxy dialer 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"

l_.str.6:                               ; @.str.6
	.asciz	"fork failed: %.100s"

l_.str.7:                               ; @.str.7
	.asciz	"proxy dialer did not pass back a connection"

	.comm	_EINTR,8,3                      ; @EINTR
l_.str.8:                               ; @.str.8
	.asciz	"Couldn't wait for child: %s"

	.no_dead_strip	_ssh_proxy_fdpass_connect
.subsections_via_symbols
