	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setpeer                        ## -- Begin function setpeer
	.p2align	4, 0x90
_setpeer:                               ## @setpeer
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_connected@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_hostname@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_2:
	movq	%rsi, %rbx
	cmpl	$1, %edi
	jg	LBB0_4
## %bb.3:
	movq	_line@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcat
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	leaq	(%rbx,%rax,4), %rdi
	callq	_gets
	xorl	%eax, %eax
	callq	_makeargv
	movq	_margc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_margv@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_4:
	cmpl	$4, %edi
	jl	LBB0_7
LBB0_5:
	movq	(%rbx), %rsi
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_code@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$3, %edi
	jne	LBB0_8
## %bb.9:
	movq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_atoi
	movq	_portnum@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	jle	LBB0_10
## %bb.11:
	movq	%rax, %rdi
	callq	_htons
	movq	%rax, %rsi
	movq	%rax, (%r12)
	jmp	LBB0_12
LBB0_8:
	movq	_portnum@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_12:
	movq	8(%rbx), %rdi
	callq	_hookup
	testq	%rax, %rax
	je	LBB0_30
## %bb.13:
	movl	$1, (%r15)
	movq	_autologin@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:
	movq	8(%rbx), %rdi
	callq	_login
LBB0_15:
	movq	_verbose@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_17
## %bb.16:
	movl	$-1, (%r14)
LBB0_17:
	movq	_allbinary@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str.5(%rip), %rdi
	callq	_command
	movq	_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.18:
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.19:
	movq	_reply_string@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	$4, %rdi
	movl	$32, %esi
	callq	_index
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:
	movq	(%r15), %rdi
	addq	$4, %rdi
	movl	$13, %esi
	callq	_index
	testq	%rax, %rax
	je	LBB0_21
LBB0_22:
	leaq	-1(%rax), %rbx
	cmpb	$46, -1(%rax)
	cmovneq	%rax, %rbx
	movb	(%rbx), %r13b
	movb	$0, (%rbx)
	movq	(%r15), %rsi
	addq	$4, %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movb	%r13b, (%rbx)
LBB0_23:
	movq	_reply_string@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	$17, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_24
## %bb.26:
	testl	%r12d, %r12d
	je	LBB0_29
## %bb.27:
	movq	(%rbx), %rdi
	leaq	L_.str.9(%rip), %rsi
	movl	$10, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_29
## %bb.28:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_29
LBB0_10:
	movq	8(%rbx), %rsi
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_5
LBB0_24:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_setbinary
	testl	%r12d, %r12d
	je	LBB0_29
## %bb.25:
	movq	_typename@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_29:
	movl	%r12d, (%r14)
LBB0_30:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fflush                         ## TAILCALL
LBB0_21:
	movq	(%r15), %rsi
	addq	$4, %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_connected,4,2                  ## @connected
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Already connected to %s, use close first.\n"

	.comm	_hostname,8,3                   ## @hostname
	.comm	_stdout,4,2                     ## @stdout
	.comm	_code,4,2                       ## @code
	.comm	_line,8,3                       ## @line
L_.str.1:                               ## @.str.1
	.asciz	" "

L_.str.2:                               ## @.str.2
	.asciz	"(to) "

	.comm	_margc,4,2                      ## @margc
	.comm	_margv,8,3                      ## @margv
L_.str.3:                               ## @.str.3
	.asciz	"usage: %s host-name [port]\n"

	.comm	_portnum,8,3                    ## @portnum
L_.str.4:                               ## @.str.4
	.asciz	"%s: bad port number-- %s\n"

	.comm	_autologin,8,3                  ## @autologin
	.comm	_verbose,4,2                    ## @verbose
	.comm	_debug,8,3                      ## @debug
	.comm	_allbinary,8,3                  ## @allbinary
L_.str.5:                               ## @.str.5
	.asciz	"SYST"

	.comm	_COMPLETE,8,3                   ## @COMPLETE
	.comm	_reply_string,8,3               ## @reply_string
L_.str.6:                               ## @.str.6
	.asciz	"Remote system type is %s.\n"

L_.str.7:                               ## @.str.7
	.asciz	"215 UNIX Type: L8"

L_.str.8:                               ## @.str.8
	.asciz	"Using %s mode to transfer files.\n"

	.comm	_typename,8,3                   ## @typename
L_.str.9:                               ## @.str.9
	.asciz	"215 TOPS20"

L_str:                                  ## @str
	.asciz	"Remember to set tenex mode when transfering binary files from this machine."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setpeer                        ; -- Begin function setpeer
	.p2align	2
_setpeer:                               ; @setpeer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x21, _connected@GOTPAGE
Lloh1:
	ldr	x21, [x21, _connected@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _hostname@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hostname@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	mov	x19, x1
	cmp	w0, #1
	b.gt	LBB0_4
; %bb.3:
Lloh7:
	adrp	x19, _line@GOTPAGE
Lloh8:
	ldr	x19, [x19, _line@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcat
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
Lloh13:
	adrp	x8, _stdout@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_fflush
	ldr	x19, [x19]
	mov	x0, x19
	bl	_strlen
	add	x0, x19, x0, lsl #2
	bl	_gets
	bl	_makeargv
Lloh16:
	adrp	x8, _margc@GOTPAGE
Lloh17:
	ldr	x8, [x8, _margc@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _margv@GOTPAGE
Lloh20:
	ldr	x8, [x8, _margv@GOTPAGEOFF]
Lloh21:
	ldr	x19, [x8]
LBB0_4:
	cmp	w0, #4
	b.lt	LBB0_7
LBB0_5:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_6:
	bl	_printf
Lloh24:
	adrp	x8, _stdout@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_fflush
Lloh27:
	adrp	x8, _code@GOTPAGE
Lloh28:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh29:
	str	w9, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	cmp	w0, #3
	b.ne	LBB0_10
; %bb.8:
	ldr	x20, [x19, #16]
	mov	x0, x20
	bl	_atoi
Lloh30:
	adrp	x22, _portnum@GOTPAGE
Lloh31:
	ldr	x22, [x22, _portnum@GOTPAGEOFF]
	str	x0, [x22]
	cmp	x0, #0
	b.le	LBB0_25
; %bb.9:
	bl	_htons
	mov	x1, x0
	str	x0, [x22]
	b	LBB0_11
LBB0_10:
Lloh32:
	adrp	x8, _portnum@GOTPAGE
Lloh33:
	ldr	x8, [x8, _portnum@GOTPAGEOFF]
Lloh34:
	ldr	x1, [x8]
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_hookup
	cbz	x0, LBB0_29
; %bb.12:
	mov	w8, #1
	str	w8, [x21]
Lloh35:
	adrp	x8, _autologin@GOTPAGE
Lloh36:
	ldr	x8, [x8, _autologin@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x0, [x19, #8]
	bl	_login
LBB0_14:
Lloh38:
	adrp	x19, _verbose@GOTPAGE
Lloh39:
	ldr	x19, [x19, _verbose@GOTPAGEOFF]
	ldr	w20, [x19]
Lloh40:
	adrp	x8, _debug@GOTPAGE
Lloh41:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	cbnz	x8, LBB0_16
; %bb.15:
	mov	w8, #-1
	str	w8, [x19]
LBB0_16:
Lloh43:
	adrp	x8, _allbinary@GOTPAGE
Lloh44:
	ldr	x8, [x8, _allbinary@GOTPAGEOFF]
Lloh45:
	str	xzr, [x8]
Lloh46:
	adrp	x0, l_.str.5@PAGE
Lloh47:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_command
Lloh48:
	adrp	x8, _COMPLETE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _COMPLETE@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
Lloh51:
	adrp	x21, _reply_string@GOTPAGE
Lloh52:
	ldr	x21, [x21, _reply_string@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.17:
	cbz	w20, LBB0_21
; %bb.18:
	ldr	x8, [x21]
	add	x0, x8, #4
	mov	w1, #32
	bl	_index
	cbnz	x0, LBB0_20
; %bb.19:
	ldr	x8, [x21]
	add	x0, x8, #4
	mov	w1, #13
	bl	_index
	cbz	x0, LBB0_30
LBB0_20:
	mov	x8, x0
	ldrb	w9, [x8, #-1]!
	cmp	w9, #46
	csel	x22, x8, x0, eq
	ldrb	w23, [x22]
	strb	wzr, [x22]
	ldr	x8, [x21]
	add	x8, x8, #4
	str	x8, [sp]
Lloh53:
	adrp	x0, l_.str.6@PAGE
Lloh54:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	strb	w23, [x22]
LBB0_21:
	ldr	x0, [x21]
Lloh55:
	adrp	x1, l_.str.7@PAGE
Lloh56:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w2, #17
	bl	_strncmp
	cbz	w0, LBB0_26
; %bb.22:
	cbz	w20, LBB0_28
; %bb.23:
	ldr	x0, [x21]
Lloh57:
	adrp	x1, l_.str.9@PAGE
Lloh58:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w2, #10
	bl	_strncmp
	cbnz	w0, LBB0_28
; %bb.24:
Lloh59:
	adrp	x0, l_str@PAGE
Lloh60:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_28
LBB0_25:
	ldr	x8, [x19, #8]
	stp	x8, x20, [sp]
Lloh61:
	adrp	x0, l_.str.4@PAGE
Lloh62:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	b	LBB0_5
LBB0_26:
	mov	x1, #0
	bl	_setbinary
	cbz	w20, LBB0_28
; %bb.27:
Lloh63:
	adrp	x8, _typename@GOTPAGE
Lloh64:
	ldr	x8, [x8, _typename@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh66:
	adrp	x0, l_.str.8@PAGE
Lloh67:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
LBB0_28:
	str	w20, [x19]
LBB0_29:
Lloh68:
	adrp	x8, _stdout@GOTPAGE
Lloh69:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_fflush
LBB0_30:
	ldr	x8, [x21]
	add	x8, x8, #4
	str	x8, [sp]
Lloh71:
	adrp	x0, l_.str.6@PAGE
Lloh72:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.cfi_endproc
                                        ; -- End function
	.comm	_connected,4,2                  ; @connected
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Already connected to %s, use close first.\n"

	.comm	_hostname,8,3                   ; @hostname
	.comm	_stdout,4,2                     ; @stdout
	.comm	_code,4,2                       ; @code
	.comm	_line,8,3                       ; @line
l_.str.1:                               ; @.str.1
	.asciz	" "

l_.str.2:                               ; @.str.2
	.asciz	"(to) "

	.comm	_margc,4,2                      ; @margc
	.comm	_margv,8,3                      ; @margv
l_.str.3:                               ; @.str.3
	.asciz	"usage: %s host-name [port]\n"

	.comm	_portnum,8,3                    ; @portnum
l_.str.4:                               ; @.str.4
	.asciz	"%s: bad port number-- %s\n"

	.comm	_autologin,8,3                  ; @autologin
	.comm	_verbose,4,2                    ; @verbose
	.comm	_debug,8,3                      ; @debug
	.comm	_allbinary,8,3                  ; @allbinary
l_.str.5:                               ; @.str.5
	.asciz	"SYST"

	.comm	_COMPLETE,8,3                   ; @COMPLETE
	.comm	_reply_string,8,3               ; @reply_string
l_.str.6:                               ; @.str.6
	.asciz	"Remote system type is %s.\n"

l_.str.7:                               ; @.str.7
	.asciz	"215 UNIX Type: L8"

l_.str.8:                               ; @.str.8
	.asciz	"Using %s mode to transfer files.\n"

	.comm	_typename,8,3                   ; @typename
l_.str.9:                               ; @.str.9
	.asciz	"215 TOPS20"

l_str:                                  ; @str
	.asciz	"Remember to set tenex mode when transfering binary files from this machine."

.subsections_via_symbols
