	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function updatepwd
_updatepwd:                             ## @updatepwd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_hashcd
	movq	_VEXPORT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_setvar
	movq	_curdir@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_setvar
	movq	(%r12), %r15
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_savestr
	movq	%rax, %r14
LBB0_2:
	movq	%r14, (%r12)
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ckfree                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PWD"

	.comm	_VEXPORT,4,2                    ## @VEXPORT
L_.str.1:                               ## @.str.1
	.asciz	"OLDPWD"

	.comm	_curdir,8,3                     ## @curdir
	.no_dead_strip	_updatepwd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function updatepwd
_updatepwd:                             ; @updatepwd
	.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, x0
	bl	_hashcd
Lloh0:
	adrp	x20, _VEXPORT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VEXPORT@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_setvar
Lloh4:
	adrp	x21, _curdir@GOTPAGE
Lloh5:
	ldr	x21, [x21, _curdir@GOTPAGEOFF]
	ldr	x1, [x21]
	ldr	w2, [x20]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_setvar
	ldr	x20, [x21]
	cbz	x19, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_savestr
	b	LBB0_3
LBB0_2:
	mov	x0, #0
LBB0_3:
	str	x0, [x21]
	mov	x0, x20
	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	_ckfree
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PWD"

	.comm	_VEXPORT,4,2                    ; @VEXPORT
l_.str.1:                               ; @.str.1
	.asciz	"OLDPWD"

	.comm	_curdir,8,3                     ; @curdir
	.no_dead_strip	_updatepwd
.subsections_via_symbols
