	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmdscanner                     ## -- Begin function cmdscanner
	.p2align	4, 0x90
_cmdscanner:                            ## @cmdscanner
	.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
	testl	%edi, %edi
	jne	LBB0_2
## %bb.1:
	movl	$10, %edi
	callq	_putchar
LBB0_2:
	movq	_stdout@GOTPCREL(%rip), %r15
	movq	_fromatty@GOTPCREL(%rip), %r12
	movq	_line@GOTPCREL(%rip), %r13
	movq	_margc@GOTPCREL(%rip), %r14
	jmp	LBB0_3
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_str.5(%rip), %rdi
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_puts
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_fflush
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	(%r15), %edi
	callq	_fflush
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rdi
	callq	_gets
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_makeargv
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_margv@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_getcmd
	leaq	L_str.4(%rip), %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	cmpq	$-1, %rax
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_connected@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	leaq	L_str(%rip), %rdi
	je	LBB0_14
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdi
	movq	_margv@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	*(%rbx)
	movq	_bell@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$7, %edi
	callq	_putchar
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_help@GOTPCREL(%rip), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_3
	jmp	LBB0_21
LBB0_6:
	movq	_stdin@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_21
LBB0_8:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_quit
LBB0_21:
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fflush                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	_fromatty,8,3                   ## @fromatty
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ftp> "

	.comm	_line,8,3                       ## @line
	.comm	_stdin,4,2                      ## @stdin
	.comm	_margc,8,3                      ## @margc
	.comm	_margv,8,3                      ## @margv
	.comm	_connected,4,2                  ## @connected
	.comm	_bell,8,3                       ## @bell
L_str:                                  ## @str
	.asciz	"Not connected."

L_str.4:                                ## @str.4
	.asciz	"?Invalid command"

L_str.5:                                ## @str.5
	.asciz	"?Ambiguous command"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmdscanner                     ; -- Begin function cmdscanner
	.p2align	2
_cmdscanner:                            ; @cmdscanner
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w0, #10
	bl	_putchar
LBB0_2:
Lloh0:
	adrp	x21, _stdout@GOTPAGE
Lloh1:
	ldr	x21, [x21, _stdout@GOTPAGEOFF]
Lloh2:
	adrp	x22, _fromatty@GOTPAGE
Lloh3:
	ldr	x22, [x22, _fromatty@GOTPAGEOFF]
Lloh4:
	adrp	x24, _line@GOTPAGE
Lloh5:
	ldr	x24, [x24, _line@GOTPAGEOFF]
Lloh6:
	adrp	x25, _margc@GOTPAGE
Lloh7:
	ldr	x25, [x25, _margc@GOTPAGEOFF]
Lloh8:
	adrp	x26, l_str.5@PAGE
Lloh9:
	add	x26, x26, l_str.5@PAGEOFF
Lloh10:
	adrp	x27, _margv@GOTPAGE
Lloh11:
	ldr	x27, [x27, _margv@GOTPAGEOFF]
Lloh12:
	adrp	x28, _connected@GOTPAGE
Lloh13:
	ldr	x28, [x28, _connected@GOTPAGEOFF]
Lloh14:
	adrp	x23, l_str@PAGE
Lloh15:
	add	x23, x23, l_str@PAGEOFF
Lloh16:
	adrp	x19, l_.str@PAGE
Lloh17:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x0, l_str.4@PAGE
Lloh19:
	add	x0, x0, l_str.4@PAGEOFF
	bl	_puts
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_fflush
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_printf
	ldr	w0, [x21]
	bl	_fflush
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x24]
	bl	_gets
	cbz	x0, LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8]
	cbz	x8, LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_makeargv
	ldr	x8, [x25]
	cbz	x8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	ldr	w0, [x8]
	bl	_getcmd
	cbz	x0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	cmn	x0, #1
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	ldr	w9, [x28]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	mov	x0, x23
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x0, [x25]
	ldr	x1, [x27]
	blr	x8
Lloh20:
	adrp	x8, _bell@GOTPAGE
Lloh21:
	ldr	x8, [x8, _bell@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #7
	bl	_putchar
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
Lloh23:
	adrp	x9, _help@GOTPAGE
Lloh24:
	ldr	x9, [x9, _help@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_4
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_puts
	b	LBB0_4
LBB0_18:
Lloh25:
	adrp	x19, _stdin@GOTPAGE
Lloh26:
	ldr	x19, [x19, _stdin@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_feof
	cbnz	x0, LBB0_20
; %bb.19:
	ldr	w0, [x19]
	bl	_ferror
	cbz	x0, LBB0_21
LBB0_20:
	mov	w0, #0
	mov	x1, #0
	bl	_quit
LBB0_21:
	ldr	w0, [x21]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_fflush
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	_fromatty,8,3                   ; @fromatty
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ftp> "

	.comm	_line,8,3                       ; @line
	.comm	_stdin,4,2                      ; @stdin
	.comm	_margc,8,3                      ; @margc
	.comm	_margv,8,3                      ; @margv
	.comm	_connected,4,2                  ; @connected
	.comm	_bell,8,3                       ; @bell
l_str:                                  ; @str
	.asciz	"Not connected."

l_str.4:                                ; @str.4
	.asciz	"?Invalid command"

l_str.5:                                ; @str.5
	.asciz	"?Ambiguous command"

.subsections_via_symbols
