	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tolocal                        ## -- Begin function tolocal
	.p2align	4, 0x90
_tolocal:                               ## @tolocal
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -64(%rbp)
	movl	$-1, -68(%rbp)
	leaq	-88(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	$0, -88(%rbp)
	cmpl	$2, %r15d
	jl	LBB0_21
## %bb.1:
	movl	%r15d, %eax
	decl	%r15d
	leaq	(%rbx,%rax,8), %rax
	addq	$-8, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_remin@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_errs@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	-64(%rbp), %r13
	cmpq	%r12, %r15
	je	LBB0_21
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_free
	movq	-56(%rbp), %rdi
	callq	_free
	movq	-48(%rbp), %rdi
	callq	_free
	movq	(%rbx,%r12,8), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_parse_scp_uri
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx,%r12,8), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_fmprintf
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r12,8), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_parse_user_host_path
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	leaq	-88(%rbp), %rbx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_okname
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -56(%rbp)
	je	LBB0_10
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %r8
	cmpb	$45, (%r8)
	leaq	L_.str.7(%rip), %rcx
	leaq	L_.str.6(%rip), %rax
	cmoveq	%rax, %rcx
	leaq	-96(%rbp), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_xasprintf
	movq	-56(%rbp), %rdi
	movq	-64(%rbp), %rsi
	movl	-68(%rbp), %edx
	movq	-96(%rbp), %rcx
	movq	%r14, %r13
	movq	%r14, %r8
	movq	_remout@GOTPCREL(%rip), %r14
	movq	%r14, %r9
	callq	_do_cmd
	movq	%rax, %rbx
	movq	-96(%rbp), %rdi
	callq	_free
	testq	%rbx, %rbx
	js	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx
	movl	$1, %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_sink
	movl	(%r13), %edi
	callq	_close
	movl	$-1, (%r14)
	movl	$-1, (%r13)
	jmp	LBB0_19
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_freeargs
	movq	__PATH_CP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_addargs
	movq	_iamrecursive@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_addargs
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_pflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_addargs
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_addargs
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13,%r12,8), %rdx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_addargs
	movq	(%r13,%r15,8), %rdx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_addargs
	movq	%rbx, %rdi
	movq	%r13, %rbx
	callq	_do_local_cmd
	testq	%rax, %rax
	je	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_errs@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_errs@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%r13, %r14
	jmp	LBB0_20
LBB0_21:
	movq	%r13, %rdi
	callq	_free
	movq	-56(%rbp), %rdi
	callq	_free
	movq	-48(%rbp), %rdi
	callq	_free
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: invalid uri\n"

	.comm	_errs,4,2                       ## @errs
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	__PATH_CP,8,3                   ## @_PATH_CP
	.comm	_iamrecursive,8,3               ## @iamrecursive
L_.str.2:                               ## @.str.2
	.asciz	"-r"

	.comm	_pflag,8,3                      ## @pflag
L_.str.3:                               ## @.str.3
	.asciz	"-p"

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

L_.str.5:                               ## @.str.5
	.asciz	"%s -f %s%s"

	.comm	_cmd,4,2                        ## @cmd
L_.str.6:                               ## @.str.6
	.asciz	"-- "

L_.str.7:                               ## @.str.7
	.space	1

	.comm	_remin,4,2                      ## @remin
	.comm	_remout,4,2                     ## @remout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tolocal                        ; -- Begin function tolocal
	.p2align	2
_tolocal:                               ; @tolocal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x24, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #40]
	str	xzr, [sp, #32]
	mov	w8, #-1
	str	w8, [sp, #20]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, #0
	str	xzr, [sp, #24]
	cmp	w20, #2
	b.lt	LBB0_18
; %bb.1:
	mov	x0, #0
	sub	w28, w20, #1
	add	x8, x24, w20, uxtw #3
	sub	x20, x8, #8
Lloh0:
	adrp	x21, l_.str.1@PAGE
Lloh1:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh2:
	adrp	x25, _errs@GOTPAGE
Lloh3:
	ldr	x25, [x25, _errs@GOTPAGEOFF]
Lloh4:
	adrp	x26, _remin@GOTPAGE
Lloh5:
	ldr	x26, [x26, _remin@GOTPAGEOFF]
Lloh6:
	adrp	x27, _remout@GOTPAGE
Lloh7:
	ldr	x27, [x27, _remout@GOTPAGEOFF]
	mov	x22, x28
	mov	x19, x24
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fmprintf
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #32]
	add	x19, x19, #8
	subs	x22, x22, #1
	b.eq	LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_free
	ldr	x0, [sp, #48]
	bl	_free
	ldr	x0, [sp, #40]
	bl	_free
	ldr	x0, [x19]
	add	x1, sp, #32
	add	x2, sp, #48
	add	x3, sp, #20
	add	x4, sp, #40
	bl	_parse_scp_uri
	cbz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19]
	add	x1, sp, #32
	add	x2, sp, #48
	add	x3, sp, #40
	bl	_parse_user_host_path
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_okname
	cbz	w0, LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh13:
	adrp	x8, _cmd@GOTPAGE
Lloh14:
	ldr	x8, [x8, _cmd@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	x4, [sp, #40]
	ldrb	w8, [x4]
	cmp	w8, #45
Lloh16:
	adrp	x8, l_.str.7@PAGE
Lloh17:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh18:
	adrp	x9, l_.str.6@PAGE
Lloh19:
	add	x9, x9, l_.str.6@PAGEOFF
	csel	x3, x9, x8, eq
	add	x0, sp, #56
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_xasprintf
	ldp	x0, x3, [sp, #48]
	ldr	x1, [sp, #32]
	ldr	w2, [sp, #20]
	mov	x4, x26
	mov	x5, x27
	bl	_do_cmd
	mov	x23, x0
	ldr	x0, [sp, #56]
	bl	_free
	tbnz	x23, #63, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [sp, #40]
	mov	w0, #1
	mov	x1, x20
	bl	_sink
	ldr	w0, [x26]
	bl	_close
	mov	w8, #-1
	str	w8, [x27]
	str	w8, [x26]
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	bl	_freeargs
Lloh22:
	adrp	x8, __PATH_CP@GOTPAGE
Lloh23:
	ldr	x8, [x8, __PATH_CP@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [sp]
	add	x0, sp, #24
	mov	x1, x21
	bl	_addargs
Lloh25:
	adrp	x8, _iamrecursive@GOTPAGE
Lloh26:
	ldr	x8, [x8, _iamrecursive@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_addargs
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh30:
	adrp	x8, _pflag@GOTPAGE
Lloh31:
	ldr	x8, [x8, _pflag@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_addargs
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_addargs
	ldr	x8, [x19]
	str	x8, [sp]
	add	x0, sp, #24
	mov	x1, x21
	bl	_addargs
	ldr	x8, [x24, x28, lsl #3]
	str	x8, [sp]
	add	x0, sp, #24
	mov	x1, x21
	bl	_addargs
	add	x0, sp, #24
	bl	_do_local_cmd
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_18:
	bl	_free
	ldr	x0, [sp, #48]
	bl	_free
	ldr	x0, [sp, #40]
	bl	_free
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: invalid uri\n"

	.comm	_errs,4,2                       ; @errs
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	__PATH_CP,8,3                   ; @_PATH_CP
	.comm	_iamrecursive,8,3               ; @iamrecursive
l_.str.2:                               ; @.str.2
	.asciz	"-r"

	.comm	_pflag,8,3                      ; @pflag
l_.str.3:                               ; @.str.3
	.asciz	"-p"

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

l_.str.5:                               ; @.str.5
	.asciz	"%s -f %s%s"

	.comm	_cmd,4,2                        ; @cmd
l_.str.6:                               ; @.str.6
	.asciz	"-- "

l_.str.7:                               ; @.str.7
	.space	1

	.comm	_remin,4,2                      ; @remin
	.comm	_remout,4,2                     ; @remout
.subsections_via_symbols
