	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dopushd                        ## -- Begin function dopushd
	.p2align	4, 0x90
_dopushd:                               ## @dopushd
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %rdi
	callq	_skipargs
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_USE
	movq	_printd@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_DIR_OLD@GOTPCREL(%rip), %r12
	testl	%r14d, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_STRowd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_varval
	movq	%rax, %rbx
	testq	%rbx, %rbx
	je	LBB0_4
LBB0_19:
	testl	%r14d, (%r12)
	je	LBB0_20
LBB0_22:
	movq	%rbx, %rdi
	callq	_dfind
	testq	%rax, %rax
	je	LBB0_10
## %bb.23:
	movq	%rax, %r15
	movq	(%rax), %rdi
	callq	_short2str
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_chdir
	testq	%rax, %rax
	jns	LBB0_25
## %bb.24:
	movq	_ERR_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_stderror
LBB0_25:
	movq	_STRdextract@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_adrof
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	%r15, %rdi
	callq	_dextract
	jmp	LBB0_27
LBB0_2:
	movq	-48(%rbp), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_19
LBB0_4:
	movq	_STRpushdtohome@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_adrof
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	_STRhome@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_varval
	movq	%rax, %rbx
	movq	_STRNULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_7
## %bb.6:
	cmpq	$0, (%rbx)
	jne	LBB0_8
LBB0_7:
	movq	_ERR_NAME@GOTPCREL(%rip), %rax
	movq	_ERR_NOHOMEDIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	xorl	%eax, %eax
	callq	_stderror
LBB0_8:
	movq	%rbx, %rdi
	callq	_short2str
	movq	%rax, %rdi
	callq	_chdir
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	movq	_ERR_NAME@GOTPCREL(%rip), %rax
	movq	_ERR_CANTCHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	xorl	%eax, %eax
	callq	_stderror
LBB0_10:
	movl	(%r12), %esi
	andl	%r14d, %esi
	movq	%rbx, %rdi
	callq	_dfollow
	testq	%rax, %rax
	je	LBB0_28
## %bb.11:
	movq	%rax, %rbx
	movl	$32, %edi
	movl	$1, %esi
	callq	_xcalloc
	movq	%rax, %r15
	movq	%rbx, (%rax)
	movq	$0, 24(%rax)
	movq	_dcwd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	16(%rax), %rcx
	movq	%rcx, 16(%r15)
	movq	%r15, 16(%rax)
	movq	16(%r15), %rax
	movq	%r15, 8(%rax)
	jmp	LBB0_27
LBB0_20:
	movq	-48(%rbp), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_22
## %bb.21:
	movq	_ERR_NAME@GOTPCREL(%rip), %rax
	movq	_ERR_TOOMANY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	xorl	%eax, %eax
	callq	_stderror
	jmp	LBB0_28
LBB0_12:
	movq	_dcwd@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	8(%rax), %r15
	movq	_dhead@GOTPCREL(%rip), %rcx
	cmpq	%rcx, %r15
	jne	LBB0_14
## %bb.13:
	movq	8(%rcx), %r15
LBB0_14:
	cmpq	%rax, %r15
	jne	LBB0_16
## %bb.15:
	movq	_ERR_NAME@GOTPCREL(%rip), %rax
	movq	_ERR_NODIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	xorl	%eax, %eax
	callq	_stderror
LBB0_16:
	movq	(%r15), %rdi
	callq	_short2str
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_chdir
	testq	%rax, %rax
	jns	LBB0_18
## %bb.17:
	movq	_ERR_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_stderror
LBB0_18:
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movq	%rcx, 16(%rax)
	movq	16(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r13), %rax
	movq	16(%rax), %rcx
	movq	%rcx, 16(%r15)
	movq	%rax, 8(%r15)
	movq	16(%rax), %rcx
	movq	%r15, 8(%rcx)
	movq	%r15, 16(%rax)
LBB0_27:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_dnewcwd
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plvn"

L_.str.1:                               ## @.str.1
	.asciz	" [-|<dir>|+<n>]"

	.comm	_printd,4,2                     ## @printd
	.comm	_DIR_OLD,4,2                    ## @DIR_OLD
	.comm	_STRowd,4,2                     ## @STRowd
	.comm	_STRpushdtohome,4,2             ## @STRpushdtohome
	.comm	_STRhome,4,2                    ## @STRhome
	.comm	_STRNULL,8,3                    ## @STRNULL
	.comm	_ERR_NAME,4,2                   ## @ERR_NAME
	.comm	_ERR_NOHOMEDIR,4,2              ## @ERR_NOHOMEDIR
	.comm	_ERR_CANTCHANGE,4,2             ## @ERR_CANTCHANGE
	.comm	_dcwd,8,3                       ## @dcwd
	.comm	_dhead,32,3                     ## @dhead
	.comm	_ERR_NODIR,4,2                  ## @ERR_NODIR
	.comm	_ERR_SYSTEM,4,2                 ## @ERR_SYSTEM
	.comm	_errno,4,2                      ## @errno
	.comm	_ERR_TOOMANY,4,2                ## @ERR_TOOMANY
	.comm	_STRdextract,4,2                ## @STRdextract
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dopushd                        ; -- Begin function dopushd
	.p2align	2
_dopushd:                               ; @dopushd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	str	x0, [sp, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #24
	bl	_skipargs
	mov	x19, x0
	mov	x0, x20
	bl	_USE
Lloh4:
	adrp	x8, _printd@GOTPAGE
Lloh5:
	ldr	x8, [x8, _printd@GOTPAGEOFF]
	mov	w9, #1
Lloh6:
	str	w9, [x8]
Lloh7:
	adrp	x22, _DIR_OLD@GOTPAGE
Lloh8:
	ldr	x22, [x22, _DIR_OLD@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w19
	b.eq	LBB0_8
; %bb.1:
Lloh9:
	adrp	x8, _STRowd@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STRowd@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_varval
	mov	x21, x0
	cbz	x21, LBB0_9
LBB0_2:
	ldr	w8, [x22]
	tst	w8, w19
	b.eq	LBB0_16
LBB0_3:
	mov	x0, x21
	bl	_dfind
	cbz	x0, LBB0_18
; %bb.4:
	mov	x20, x0
	ldr	x0, [x0]
	bl	_short2str
	mov	x21, x0
	bl	_chdir
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _ERR_SYSTEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_SYSTEM@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
	mov	x0, x22
	bl	_stderror
LBB0_6:
Lloh18:
	adrp	x8, _STRdextract@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STRdextract@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_adrof
	cbz	x0, LBB0_25
; %bb.7:
	mov	x0, x20
	bl	_dextract
	b	LBB0_25
LBB0_8:
	ldr	x8, [sp, #24]
	ldr	x21, [x8]
	cbnz	x21, LBB0_2
LBB0_9:
Lloh21:
	adrp	x8, _STRpushdtohome@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STRpushdtohome@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_adrof
	cbz	x0, LBB0_20
; %bb.10:
Lloh24:
	adrp	x8, _STRhome@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STRhome@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_varval
	mov	x20, x0
Lloh27:
	adrp	x8, _STRNULL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STRNULL@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.11:
	ldr	x8, [x20]
	cbnz	x8, LBB0_13
LBB0_12:
Lloh30:
	adrp	x8, _ERR_NAME@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERR_NAME@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _ERR_NOHOMEDIR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ERR_NOHOMEDIR@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_stderror
LBB0_13:
	mov	x0, x20
	bl	_short2str
	bl	_chdir
	tbz	x0, #63, LBB0_15
; %bb.14:
Lloh36:
	adrp	x8, _ERR_NAME@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERR_NAME@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _ERR_CANTCHANGE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _ERR_CANTCHANGE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_stderror
LBB0_15:
	ldr	w8, [x22]
	and	w1, w8, w19
	mov	x0, x20
	bl	_dfollow
	cbnz	x0, LBB0_19
	b	LBB0_26
LBB0_16:
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.17:
Lloh42:
	adrp	x8, _ERR_NAME@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ERR_NAME@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _ERR_TOOMANY@GOTPAGE
Lloh46:
	ldr	x9, [x9, _ERR_TOOMANY@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_stderror
	b	LBB0_26
LBB0_18:
	ldr	w8, [x22]
	and	w1, w8, w19
	mov	x0, x21
	bl	_dfollow
	cbz	x0, LBB0_26
LBB0_19:
	mov	x21, x0
	mov	w0, #32
	mov	w1, #1
	bl	_xcalloc
	mov	x20, x0
	str	x21, [x0]
	str	xzr, [x0, #24]
Lloh48:
	adrp	x8, _dcwd@GOTPAGE
Lloh49:
	ldr	x8, [x8, _dcwd@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	ldr	x9, [x8, #16]
	stp	x8, x9, [x0, #8]
	str	x0, [x8, #16]
	ldr	x8, [x0, #16]
	str	x0, [x8, #8]
	b	LBB0_25
LBB0_20:
Lloh51:
	adrp	x23, _dcwd@GOTPAGE
Lloh52:
	ldr	x23, [x23, _dcwd@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x8, #8]
Lloh53:
	adrp	x10, _dhead@GOTPAGE
Lloh54:
	ldr	x10, [x10, _dhead@GOTPAGEOFF]
	ldr	x11, [x10, #8]
	cmp	x9, x10
	csel	x20, x11, x9, eq
	cmp	x20, x8
	b.ne	LBB0_22
; %bb.21:
Lloh55:
	adrp	x8, _ERR_NAME@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ERR_NAME@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
Lloh58:
	adrp	x9, _ERR_NODIR@GOTPAGE
Lloh59:
	ldr	x9, [x9, _ERR_NODIR@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_stderror
LBB0_22:
	ldr	x0, [x20]
	bl	_short2str
	mov	x21, x0
	bl	_chdir
	tbz	x0, #63, LBB0_24
; %bb.23:
Lloh61:
	adrp	x8, _ERR_SYSTEM@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ERR_SYSTEM@GOTPAGEOFF]
Lloh63:
	ldr	w22, [x8]
Lloh64:
	adrp	x8, _errno@GOTPAGE
Lloh65:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
	mov	x0, x22
	bl	_stderror
LBB0_24:
	ldp	x9, x8, [x20, #8]
	str	x8, [x9, #16]
	ldr	x8, [x20, #16]
	str	x9, [x8, #8]
	ldr	x8, [x23]
	ldr	x9, [x8, #16]
	stp	x8, x9, [x20, #8]
	ldr	x9, [x8, #16]
	str	x20, [x9, #8]
	str	x20, [x8, #16]
LBB0_25:
	mov	x0, x20
	mov	x1, x19
	bl	_dnewcwd
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plvn"

l_.str.1:                               ; @.str.1
	.asciz	" [-|<dir>|+<n>]"

	.comm	_printd,4,2                     ; @printd
	.comm	_DIR_OLD,4,2                    ; @DIR_OLD
	.comm	_STRowd,4,2                     ; @STRowd
	.comm	_STRpushdtohome,4,2             ; @STRpushdtohome
	.comm	_STRhome,4,2                    ; @STRhome
	.comm	_STRNULL,8,3                    ; @STRNULL
	.comm	_ERR_NAME,4,2                   ; @ERR_NAME
	.comm	_ERR_NOHOMEDIR,4,2              ; @ERR_NOHOMEDIR
	.comm	_ERR_CANTCHANGE,4,2             ; @ERR_CANTCHANGE
	.comm	_dcwd,8,3                       ; @dcwd
	.comm	_dhead,32,3                     ; @dhead
	.comm	_ERR_NODIR,4,2                  ; @ERR_NODIR
	.comm	_ERR_SYSTEM,4,2                 ; @ERR_SYSTEM
	.comm	_errno,4,2                      ; @errno
	.comm	_ERR_TOOMANY,4,2                ; @ERR_TOOMANY
	.comm	_STRdextract,4,2                ; @STRdextract
.subsections_via_symbols
