	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lcd                            ## -- Begin function lcd
	.p2align	4, 0x90
_lcd:                                   ## @lcd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_code@GOTPCREL(%rip), %r14
	movl	$-1, (%r14)
	cmpl	$1, %edi
	je	LBB0_4
## %bb.1:
	cmpl	$2, %edi
	jne	LBB0_3
## %bb.2:
	movq	8(%rsi), %rdi
	jmp	LBB0_5
LBB0_4:
	movq	_localhome@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 8(%rsi)
LBB0_5:
	callq	_globulize
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_chdir
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	callq	_updatelocalcwd
	movq	_localcwd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpb	$0, (%rdx)
	movq	_ttyout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$0, (%r14)
	jmp	LBB0_11
LBB0_3:
	movq	(%rsi), %rsi
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_UPRINTF                        ## TAILCALL
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_warn
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_code,4,2                       ## @code
	.comm	_localhome,8,3                  ## @localhome
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: %s [local-directory]\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can't chdir `%s'"

	.comm	_localcwd,8,3                   ## @localcwd
	.comm	_ttyout,4,2                     ## @ttyout
L_.str.2:                               ## @.str.2
	.asciz	"Local directory now: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to determine local directory\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lcd                            ; -- Begin function lcd
	.p2align	2
_lcd:                                   ; @lcd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x20, _code@GOTPAGE
Lloh1:
	ldr	x20, [x20, _code@GOTPAGEOFF]
	mov	w8, #-1
	str	w8, [x20]
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.1:
	cmp	w0, #2
	b.ne	LBB0_8
; %bb.2:
	ldr	x0, [x1, #8]
	bl	_globulize
	cbz	x0, LBB0_7
LBB0_3:
	mov	x19, x0
	bl	_chdir
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.4:
	bl	_updatelocalcwd
Lloh2:
	adrp	x8, _localcwd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _localcwd@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldrb	w9, [x8]
Lloh5:
	adrp	x10, _ttyout@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ttyout@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x10]
	cbz	w9, LBB0_10
; %bb.5:
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	str	wzr, [x20]
	b	LBB0_11
LBB0_6:
Lloh10:
	adrp	x8, _localhome@GOTPAGE
Lloh11:
	ldr	x8, [x8, _localhome@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	str	x0, [x1, #8]
	bl	_globulize
	cbnz	x0, LBB0_3
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	ldr	x1, [x1]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_UPRINTF
LBB0_9:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_warn
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_code,4,2                       ; @code
	.comm	_localhome,8,3                  ; @localhome
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: %s [local-directory]\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can't chdir `%s'"

	.comm	_localcwd,8,3                   ; @localcwd
	.comm	_ttyout,4,2                     ; @ttyout
l_.str.2:                               ; @.str.2
	.asciz	"Local directory now: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to determine local directory\n"

.subsections_via_symbols
