	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdup                           ## -- Begin function cdup
	.p2align	4, 0x90
_cdup:                                  ## @cdup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_8
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_command
	movq	_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.2:
	movq	_code@GOTPCREL(%rip), %rcx
	cmpl	$500, (%rcx)                    ## imm = 0x1F4
	jne	LBB0_6
## %bb.3:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_ttyout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_fputs
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	callq	_command
LBB0_6:
	movq	_COMPLETE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.7:
	movq	_dirchange@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	jmp	_updateremotecwd                ## TAILCALL
LBB0_8:
	movq	(%rsi), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_UPRINTF
	movq	_code@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: %s\n"

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

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_verbose,8,3                    ## @verbose
L_.str.2:                               ## @.str.2
	.asciz	"CDUP command not recognized, trying XCUP.\n"

	.comm	_ttyout,4,2                     ## @ttyout
L_.str.3:                               ## @.str.3
	.asciz	"XCUP"

	.comm	_COMPLETE,4,2                   ## @COMPLETE
	.comm	_dirchange,4,2                  ## @dirchange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdup                           ; -- Begin function cdup
	.p2align	2
_cdup:                                  ; @cdup
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_command
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _code@GOTPAGE
Lloh6:
	ldr	x8, [x8, _code@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #500
	b.ne	LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _verbose@GOTPAGE
Lloh9:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _ttyout@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ttyout@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fputs
LBB0_5:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_command
LBB0_6:
Lloh18:
	adrp	x8, _COMPLETE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _COMPLETE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.7:
Lloh21:
	adrp	x8, _dirchange@GOTPAGE
Lloh22:
	ldr	x8, [x8, _dirchange@GOTPAGEOFF]
	mov	w9, #1
Lloh23:
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_updateremotecwd
LBB0_8:
	ldr	x1, [x1]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UPRINTF
Lloh26:
	adrp	x8, _code@GOTPAGE
Lloh27:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh28:
	str	w9, [x8]
LBB0_9:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: %s\n"

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

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_verbose,8,3                    ; @verbose
l_.str.2:                               ; @.str.2
	.asciz	"CDUP command not recognized, trying XCUP.\n"

	.comm	_ttyout,4,2                     ; @ttyout
l_.str.3:                               ; @.str.3
	.asciz	"XCUP"

	.comm	_COMPLETE,4,2                   ; @COMPLETE
	.comm	_dirchange,4,2                  ; @dirchange
.subsections_via_symbols
