	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ls                             ## -- Begin function ls
	.p2align	4, 0x90
_ls:                                    ## @ls
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	movq	$0, 8(%rbx)
	jmp	LBB0_3
LBB0_2:
	cmpl	$2, %edi
	jne	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%rdi, 16(%rbx)
LBB0_6:
	movq	(%rbx), %rax
	cmpb	$110, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %r14
	cmoveq	%rax, %r14
	leaq	16(%rbx), %r15
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_globulize
	testl	%eax, %eax
	je	LBB0_14
LBB0_8:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	(%r15), %rax
	cmpb	$124, (%rax)
	je	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_globulize
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movq	(%r15), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_confirm
	testl	%eax, %eax
	je	LBB0_14
LBB0_12:
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	leaq	L_.str.5(%rip), %rcx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_recvrequest                    ## TAILCALL
LBB0_4:
	cmpl	$3, %edi
	jbe	LBB0_5
## %bb.13:
	movq	(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
LBB0_14:
	movq	_code@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	16(%rbx), %rdi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

L_.str.1:                               ## @.str.1
	.asciz	"usage: %s remote-directory local-file\n"

	.comm	_code,4,2                       ## @code
L_.str.2:                               ## @.str.2
	.asciz	"NLST"

L_.str.3:                               ## @.str.3
	.asciz	"LIST"

L_.str.4:                               ## @.str.4
	.asciz	"output to local-file:"

L_.str.5:                               ## @.str.5
	.asciz	"w"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ls                             ; -- Begin function ls
	.p2align	2
_ls:                                    ; @ls
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
	str	xzr, [x19, #8]
	b	LBB0_3
LBB0_2:
	cmp	w0, #2
	b.ne	LBB0_11
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	str	x0, [x19, #16]
LBB0_4:
	mov	x21, x19
	ldr	x8, [x21], #16
	ldrb	w8, [x8]
Lloh2:
	adrp	x9, l_.str.3@PAGE
Lloh3:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh4:
	adrp	x10, l_.str.2@PAGE
Lloh5:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #110
	csel	x20, x10, x9, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_globulize
	cbz	w0, LBB0_13
LBB0_6:
	ldr	x0, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x8, [x21]
	ldrb	w8, [x8]
	cmp	w8, #124
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_globulize
	cbz	w0, LBB0_13
; %bb.9:
	ldr	x1, [x21]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_confirm
	cbz	w0, LBB0_13
LBB0_10:
	ldp	x2, x1, [x19, #8]
Lloh12:
	adrp	x3, l_.str.5@PAGE
Lloh13:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	w4, #0
	mov	w5, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_recvrequest
LBB0_11:
	cmp	w0, #3
	b.ls	LBB0_14
; %bb.12:
	ldr	x1, [x19]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_13:
Lloh16:
	adrp	x8, _code@GOTPAGE
Lloh17:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh18:
	str	w9, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	x0, [x19, #16]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

l_.str.1:                               ; @.str.1
	.asciz	"usage: %s remote-directory local-file\n"

	.comm	_code,4,2                       ; @code
l_.str.2:                               ; @.str.2
	.asciz	"NLST"

l_.str.3:                               ; @.str.3
	.asciz	"LIST"

l_.str.4:                               ; @.str.4
	.asciz	"output to local-file:"

l_.str.5:                               ; @.str.5
	.asciz	"w"

.subsections_via_symbols
