	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_cmd2                        ## -- Begin function do_cmd2
	.p2align	4, 0x90
_do_cmd2:                               ## @do_cmd2
	.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
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movq	%rcx, %rbx
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_verbose_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ssh_program@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testq	%r12, %r12
	leaq	L_.str.1(%rip), %r8
	cmovneq	%r12, %r8
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r9
	callq	_fmprintf
LBB0_2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$-1, %r13d
	jne	LBB0_4
## %bb.3:
	movq	_sshport@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.5:
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.6:
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_dup2
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_dup2
	movq	_ssh_program@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_args@GOTPCREL(%rip), %r15
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_replacearg
	cmpl	$-1, %r13d
	je	LBB0_8
## %bb.7:
	movq	_args@GOTPCREL(%rip), %r14
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_addargs
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_addargs
LBB0_8:
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movq	_args@GOTPCREL(%rip), %r14
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_addargs
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_addargs
LBB0_10:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_addargs
	leaq	L_.str.2(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_addargs
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_addargs
	movq	_ssh_program@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_execvp
	movl	(%rbx), %edi
	callq	_perror
	movl	$1, %edi
	callq	_exit
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	callq	_fatal
LBB0_12:
	leaq	-44(%rbp), %rsi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	je	LBB0_13
LBB0_17:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r14
	leaq	L_.str.8(%rip), %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	jne	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpq	(%r13), %rdi
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	callq	_strerror
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_fatal
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose_mode,8,3               ## @verbose_mode
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Executing: 2nd program %s host %s, user %s, command %s\n"

	.comm	_ssh_program,4,2                ## @ssh_program
L_.str.1:                               ## @.str.1
	.asciz	"(unspecified)"

	.comm	_sshport,4,2                    ## @sshport
	.comm	_args,4,2                       ## @args
L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"-p"

L_.str.4:                               ## @.str.4
	.asciz	"%d"

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

L_.str.6:                               ## @.str.6
	.asciz	"--"

L_.str.7:                               ## @.str.7
	.asciz	"fork: %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.8:                               ## @.str.8
	.asciz	"do_cmd2: waitpid: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_cmd2                        ; -- Begin function do_cmd2
	.p2align	2
_do_cmd2:                               ; @do_cmd2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x5
	mov	x24, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _verbose_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbose_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ssh_program@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ssh_program@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	ldr	w2, [x9]
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x21, #0
	csel	x4, x8, x21, eq
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	mov	x5, x19
	bl	_fmprintf
LBB0_2:
Lloh13:
	adrp	x8, _sshport@GOTPAGE
Lloh14:
	ldr	x8, [x8, _sshport@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w22, #1
	csel	w25, w8, w22, eq
	bl	_fork
	mov	x22, x0
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.3:
	cbnz	w22, LBB0_10
; %bb.4:
	mov	x0, x24
	mov	w1, #0
	bl	_dup2
	mov	x0, x23
	mov	w1, #1
	bl	_dup2
Lloh16:
	adrp	x24, _ssh_program@GOTPAGE
Lloh17:
	ldr	x24, [x24, _ssh_program@GOTPAGEOFF]
	ldr	w3, [x24]
Lloh18:
	adrp	x22, _args@GOTPAGE
Lloh19:
	ldr	x22, [x22, _args@GOTPAGEOFF]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	w1, #0
	bl	_replacearg
	cmn	w25, #1
	b.eq	LBB0_6
; %bb.5:
Lloh22:
	adrp	x23, _args@GOTPAGE
Lloh23:
	ldr	x23, [x23, _args@GOTPAGEOFF]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_addargs
	str	x25, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_addargs
LBB0_6:
	cbz	x21, LBB0_8
; %bb.7:
Lloh28:
	adrp	x23, _args@GOTPAGE
Lloh29:
	ldr	x23, [x23, _args@GOTPAGEOFF]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x23
	bl	_addargs
	str	x21, [sp]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_addargs
LBB0_8:
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_addargs
	str	x20, [sp]
Lloh36:
	adrp	x20, l_.str.2@PAGE
Lloh37:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x1, x20
	bl	_addargs
	str	x19, [sp]
	mov	x0, x22
	mov	x1, x20
	bl	_addargs
	ldr	w0, [x24]
	ldr	w1, [x22]
	bl	_execvp
	ldr	w0, [x24]
	bl	_perror
	mov	w0, #1
	bl	_exit
LBB0_9:
Lloh38:
	adrp	x8, _errno@GOTPAGE
Lloh39:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh40:
	ldr	x0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh41:
	adrp	x0, l_.str.7@PAGE
Lloh42:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_fatal
LBB0_10:
	add	x1, sp, #12
	mov	x0, x22
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.eq	LBB0_12
LBB0_11:
	mov	w0, #0
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
Lloh43:
	adrp	x20, _errno@GOTPAGE
Lloh44:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh45:
	adrp	x21, _EINTR@GOTPAGE
Lloh46:
	ldr	x21, [x21, _EINTR@GOTPAGEOFF]
Lloh47:
	adrp	x19, l_.str.8@PAGE
Lloh48:
	add	x19, x19, l_.str.8@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x1, sp, #12
	mov	x0, x22
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.ne	LBB0_11
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_strerror
	mov	x1, x0
	mov	x0, x19
	bl	_fatal
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose_mode,8,3               ; @verbose_mode
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Executing: 2nd program %s host %s, user %s, command %s\n"

	.comm	_ssh_program,4,2                ; @ssh_program
l_.str.1:                               ; @.str.1
	.asciz	"(unspecified)"

	.comm	_sshport,4,2                    ; @sshport
	.comm	_args,4,2                       ; @args
l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"-p"

l_.str.4:                               ; @.str.4
	.asciz	"%d"

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

l_.str.6:                               ; @.str.6
	.asciz	"--"

l_.str.7:                               ; @.str.7
	.asciz	"fork: %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.8:                               ; @.str.8
	.asciz	"do_cmd2: waitpid: %s"

.subsections_via_symbols
