	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dinit                          ## -- Begin function dinit
	.p2align	4, 0x90
_dinit:                                 ## @dinit
	.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	%rdi, %r14
	xorl	%eax, %eax
	callq	_agetcwd
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%rax, %rbx
	movq	_xfree@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cleanup_push
	movq	_STRNULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dcanon
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_cleanup_ignore
	movq	%rbx, %rdi
	callq	_cleanup_until
	jmp	LBB0_9
LBB0_1:
	movq	_progname@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_xprintf
	testq	%r14, %r14
	je	LBB0_5
## %bb.2:
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_short2str
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_dstart
	movq	%rbx, %rdi
	callq	_chdir
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_Strsave
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_9
LBB0_5:
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rdi
	callq	_dstart
	movq	%rbx, %rdi
	callq	_chdir
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	movl	$1, %edi
	callq	_xexit
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_SAVE
	movq	%rax, %r14
LBB0_9:
	movl	$32, %edi
	movl	$1, %esi
	callq	_xcalloc
	movq	%rax, %rbx
	movq	%r14, (%rax)
	movq	$0, 24(%rax)
	movq	_dhead@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	%rbx, 8(%rax)
	movq	%rax, 8(%rbx)
	movq	%rax, 16(%rbx)
	movq	_printd@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dnewcwd
	movq	_STRdirstack@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	movq	_VAR_READWRITE@GOTPCREL(%rip), %rax
	movq	_VAR_NOGLOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_setcopy                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s\n"

	.comm	_progname,4,2                   ## @progname
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"/"

	.comm	_xfree,4,2                      ## @xfree
	.comm	_STRNULL,4,2                    ## @STRNULL
	.comm	_dhead,16,3                     ## @dhead
	.comm	_printd,8,3                     ## @printd
	.comm	_STRdirstack,4,2                ## @STRdirstack
	.comm	_VAR_READWRITE,4,2              ## @VAR_READWRITE
	.comm	_VAR_NOGLOB,4,2                 ## @VAR_NOGLOB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dinit                          ; -- Begin function dinit
	.p2align	2
_dinit:                                 ; @dinit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_agetcwd
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _xfree@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xfree@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cleanup_push
Lloh3:
	adrp	x8, _STRNULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRNULL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dcanon
	mov	x19, x0
	mov	x0, x20
	bl	_cleanup_ignore
	mov	x0, x20
	bl	_cleanup_until
	b	LBB0_9
LBB0_2:
Lloh6:
	adrp	x8, _progname@GOTPAGE
Lloh7:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_xprintf
	cbz	x19, LBB0_6
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_short2str
	mov	x20, x0
	bl	_dstart
	mov	x0, x20
	bl	_chdir
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_Strsave
	mov	x19, x0
	cbnz	x0, LBB0_9
LBB0_6:
Lloh14:
	adrp	x19, l_.str.1@PAGE
Lloh15:
	add	x19, x19, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dstart
	mov	x0, x19
	bl	_chdir
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #1
	bl	_xexit
LBB0_8:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_SAVE
	mov	x19, x0
LBB0_9:
	mov	w0, #32
	mov	w1, #1
	bl	_xcalloc
	mov	x20, x0
Lloh18:
	adrp	x8, _dhead@GOTPAGE
Lloh19:
	ldr	x8, [x8, _dhead@GOTPAGEOFF]
	stp	x0, x0, [x8]
	stp	x19, x8, [x0]
	stp	x8, xzr, [x0, #16]
Lloh20:
	adrp	x8, _printd@GOTPAGE
Lloh21:
	ldr	x8, [x8, _printd@GOTPAGEOFF]
Lloh22:
	str	xzr, [x8]
	mov	w1, #0
	bl	_dnewcwd
Lloh23:
	adrp	x8, _STRdirstack@GOTPAGE
Lloh24:
	ldr	x8, [x8, _STRdirstack@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	x1, [x20]
Lloh26:
	adrp	x8, _VAR_READWRITE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VAR_READWRITE@GOTPAGEOFF]
Lloh28:
	adrp	x9, _VAR_NOGLOB@GOTPAGE
Lloh29:
	ldr	x9, [x9, _VAR_NOGLOB@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_setcopy
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s\n"

	.comm	_progname,4,2                   ; @progname
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"/"

	.comm	_xfree,4,2                      ; @xfree
	.comm	_STRNULL,4,2                    ; @STRNULL
	.comm	_dhead,16,3                     ; @dhead
	.comm	_printd,8,3                     ; @printd
	.comm	_STRdirstack,4,2                ; @STRdirstack
	.comm	_VAR_READWRITE,4,2              ; @VAR_READWRITE
	.comm	_VAR_NOGLOB,4,2                 ; @VAR_NOGLOB
.subsections_via_symbols
