	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_cd                          ## -- Begin function ex_cd
	.p2align	4, 0x90
_ex_cd:                                 ## @ex_cd
	.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
	subq	$24, %rsp
	.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, %r13
	movl	8(%rdi), %edi
	movq	_F_MODIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	16(%rbx), %edi
	movq	_E_C_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FL_ISSET
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%r13), %rax
	movq	(%rax), %rax
	cmpb	$47, (%rax)
	jne	LBB0_18
LBB0_3:
	movl	(%rbx), %eax
	cmpl	$1, %eax
	je	LBB0_10
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_43
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	cmpb	$0, (%r12)
	jne	LBB0_11
LBB0_9:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_19
LBB0_10:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movl	8(%rax), %edx
	incl	%edx
	movq	%r13, %rdi
	callq	_INT2CHAR
                                        ## implicit-def: $r12
LBB0_11:
	movq	%r12, %rdi
	callq	_chdir
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	cmpl	$0, (%rbx)
	je	LBB0_16
## %bb.13:
	movq	8(%rbx), %rax
	movq	(%rax), %rdx
	movq	(%rdx), %rax
	movb	(%rax), %cl
	cmpb	$47, %cl
	je	LBB0_16
## %bb.14:
	movl	8(%rdx), %edx
	cmpl	$1, %edx
	jne	LBB0_23
## %bb.15:
	cmpb	$46, %cl
	jne	LBB0_23
LBB0_16:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rcx
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_msgq_str
	jmp	LBB0_21
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_18:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_19:
	movq	%r13, %rdi
LBB0_20:
	callq	_msgq
LBB0_21:
	movl	$1, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	cmpl	$2, %edx
	jl	LBB0_28
## %bb.24:
	cmpb	$46, %cl
	jne	LBB0_28
## %bb.25:
	cmpb	$46, 1(%rax)
	jne	LBB0_28
## %bb.26:
	movb	2(%rax), %al
	testb	%al, %al
	je	LBB0_16
## %bb.27:
	cmpb	$47, %al
	je	LBB0_16
LBB0_28:
	movq	_O_CDPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_O_STR
	movq	%rax, %r14
	movq	%rax, %r15
	decq	%r15
	movq	%rax, %rdi
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_32 Depth=1
	testb	%bl, %bl
	je	LBB0_16
## %bb.30:                              ##   in Loop: Header=BB0_32 Depth=1
	leaq	1(%r14), %rdi
LBB0_31:                                ##   in Loop: Header=BB0_32 Depth=1
	incq	%r14
	incq	%r15
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14), %ebx
	cmpb	$58, %bl
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	testb	%bl, %bl
	jne	LBB0_31
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=1
	cmpq	%r14, %rdi
	jae	LBB0_29
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=1
	cmpq	%r15, %rdi
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_32 Depth=1
	cmpb	$46, (%rdi)
	je	LBB0_29
LBB0_37:                                ##   in Loop: Header=BB0_32 Depth=1
	movb	$0, (%r14)
	movq	%r12, %rsi
	callq	_join
	testq	%rax, %rax
	je	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%rax, %r12
	movb	%bl, (%r14)
	movq	%rax, %rdi
	callq	_chdir
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_free
	testl	%ebx, %ebx
	je	LBB0_41
## %bb.39:                              ##   in Loop: Header=BB0_32 Depth=1
	movzbl	(%r14), %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_40:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	jmp	LBB0_20
LBB0_41:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_getcwd
	testq	%rax, %rax
	je	LBB0_22
## %bb.42:
	movq	%rax, %r15
	movq	_M_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_msgq_str
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_22
LBB0_43:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_F_MODIFIED,4,2                 ## @F_MODIFIED
	.comm	_E_C_FORCE,4,2                  ## @E_C_FORCE
	.comm	_M_ERR,4,2                      ## @M_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"120|File modified since last complete write; write or use ! to override"

L_.str.1:                               ## @.str.1
	.asciz	"HOME"

L_.str.2:                               ## @.str.2
	.asciz	"121|Unable to find home directory location"

	.comm	_O_CDPATH,4,2                   ## @O_CDPATH
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.comm	_M_INFO,4,2                     ## @M_INFO
L_.str.3:                               ## @.str.3
	.asciz	"122|New current directory: %s"

L_.str.4:                               ## @.str.4
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_cd                          ; -- Begin function ex_cd
	.p2align	2
_ex_cd:                                 ; @ex_cd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _F_MODIFIED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_MODIFIED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_F_ISSET
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x21, #16]
Lloh3:
	adrp	x8, _E_C_FORCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_C_FORCE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_FL_ISSET
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldrb	w8, [x8]
	cmp	w8, #47
	b.ne	LBB0_17
LBB0_3:
	ldr	w8, [x21]
	cmp	w8, #1
	b.eq	LBB0_10
; %bb.4:
	cbnz	w8, LBB0_41
; %bb.5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x20, x0
	cbnz	x0, LBB0_11
; %bb.6:
	bl	_getuid
	bl	_getpwuid
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x20, [x0]
	cbz	x20, LBB0_9
; %bb.8:
	ldrb	w8, [x20]
	cbnz	w8, LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _M_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_10:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x1, [x8]
	ldr	w8, [x8, #8]
	add	w2, w8, #1
	mov	x0, x19
	bl	_INT2CHAR
                                        ; implicit-def: $x20
LBB0_11:
	mov	x0, x20
	bl	_chdir
	cbz	w0, LBB0_21
; %bb.12:
	ldr	w8, [x21]
	cbz	w8, LBB0_16
; %bb.13:
	ldr	x8, [x21, #8]
	ldr	x10, [x8]
	ldr	x8, [x10]
	ldrb	w9, [x8]
	cmp	w9, #47
	b.eq	LBB0_16
; %bb.14:
	ldr	w10, [x10, #8]
	cmp	w10, #1
	b.ne	LBB0_22
; %bb.15:
	cmp	w9, #46
	b.ne	LBB0_22
LBB0_16:
Lloh13:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x3, l_.str.4@PAGE
Lloh17:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_msgq_str
	b	LBB0_20
LBB0_17:
Lloh18:
	adrp	x8, _M_ERR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
LBB0_18:
	mov	x0, x19
LBB0_19:
	bl	_msgq
LBB0_20:
	mov	w0, #1
LBB0_21:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_22:
	cmp	w10, #2
	b.lt	LBB0_27
; %bb.23:
	cmp	w9, #46
	b.ne	LBB0_27
; %bb.24:
	ldrb	w9, [x8, #1]
	cmp	w9, #46
	b.ne	LBB0_27
; %bb.25:
	ldrb	w8, [x8, #2]
	cbz	w8, LBB0_16
; %bb.26:
	cmp	w8, #47
	b.eq	LBB0_16
LBB0_27:
Lloh23:
	adrp	x8, _O_CDPATH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _O_CDPATH@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_O_STR
	mov	x21, x0
	sub	x24, x0, #1
	b	LBB0_31
LBB0_28:                                ;   in Loop: Header=BB0_31 Depth=1
	cbz	w23, LBB0_16
; %bb.29:                               ;   in Loop: Header=BB0_31 Depth=1
	add	x0, x21, #1
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x21, x21, #1
	add	x24, x24, #1
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w23, [x21]
	cmp	w23, #58
	ccmp	w23, #0, #4, ne
	b.ne	LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	cmp	x0, x21
	b.hs	LBB0_28
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	cmp	x0, x24
	b.ne	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_31 Depth=1
	ldrb	w8, [x0]
	cmp	w8, #46
	b.eq	LBB0_28
LBB0_35:                                ;   in Loop: Header=BB0_31 Depth=1
	strb	wzr, [x21]
	mov	x1, x20
	bl	_join
	cbz	x0, LBB0_38
; %bb.36:                               ;   in Loop: Header=BB0_31 Depth=1
	mov	x22, x0
	strb	w23, [x21]
	bl	_chdir
	mov	x23, x0
	mov	x0, x22
	bl	_free
	cbz	w23, LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_31 Depth=1
	ldrb	w23, [x21]
	b	LBB0_28
LBB0_38:
Lloh26:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	b	LBB0_19
LBB0_39:
	mov	x0, #0
	mov	w1, #0
	bl	_getcwd
	cbz	x0, LBB0_21
; %bb.40:
	mov	x20, x0
Lloh29:
	adrp	x8, _M_INFO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _M_INFO@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x3, l_.str.3@PAGE
Lloh33:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_msgq_str
	mov	x0, x20
	bl	_free
	mov	w0, #0
	b	LBB0_21
LBB0_41:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_F_MODIFIED,4,2                 ; @F_MODIFIED
	.comm	_E_C_FORCE,4,2                  ; @E_C_FORCE
	.comm	_M_ERR,4,2                      ; @M_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"120|File modified since last complete write; write or use ! to override"

l_.str.1:                               ; @.str.1
	.asciz	"HOME"

l_.str.2:                               ; @.str.2
	.asciz	"121|Unable to find home directory location"

	.comm	_O_CDPATH,4,2                   ; @O_CDPATH
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.comm	_M_INFO,4,2                     ; @M_INFO
l_.str.3:                               ; @.str.3
	.asciz	"122|New current directory: %s"

l_.str.4:                               ; @.str.4
	.asciz	"%s"

.subsections_via_symbols
