	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdlogical
_cdlogical:                             ## @cdlogical
	.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	%rdi, %r14
	callq	_stsavestr
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	callq	_STARTSTACKSTR
	cmpb	$47, (%r14)
	jne	LBB0_2
## %bb.1:
	movl	$47, %edi
	callq	_STPUTC
	incq	%rbx
	movq	%rbx, -48(%rbp)
LBB0_2:
	leaq	-48(%rbp), %rdi
	callq	_getcomponent
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %rbx
	leaq	-48(%rbp), %r13
	leaq	L_.str(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	testb	%al, %al
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$46, %al
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, 1(%rbx)
	jne	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_getcomponent
	movq	%rax, %rbx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %r12b
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$47, %edi
	callq	_STPUTC
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_STPUTS
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_equal
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_STACKSTRNUL
	xorl	%eax, %eax
	callq	_stackblock
	movl	%eax, %edi
	leaq	-56(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	js	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_getcomponent
	movq	%rax, %rbx
	movb	$1, %r12b
	jmp	LBB0_8
LBB0_14:
	xorl	%r14d, %r14d
LBB0_15:
	movq	%r14, %rdi
	callq	_findcwd
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_chdir
	testq	%rax, %rax
	js	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_updatepwd
	xorl	%r14d, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %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	".."

	.comm	_INTOFF,4,2                     ## @INTOFF
	.comm	_INTON,4,2                      ## @INTON
	.no_dead_strip	_cdlogical
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdlogical
_cdlogical:                             ; @cdlogical
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_stsavestr
	mov	x20, x0
	str	x0, [sp, #8]
	bl	_STARTSTACKSTR
	ldrb	w8, [x19]
	cmp	w8, #47
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #47
	bl	_STPUTC
	add	x8, x20, #1
	str	x8, [sp, #8]
LBB0_2:
	add	x0, sp, #8
	bl	_getcomponent
	cbz	x0, LBB0_14
; %bb.3:
	mov	x21, x0
	mov	w22, #0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	bl	_getcomponent
	mov	x21, x0
	cbz	x0, LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #46
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x21, #1]
	cbz	w8, LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	tbz	w22, #0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #47
	bl	_STPUTC
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_STPUTS
	mov	x0, x21
	mov	x1, x20
	bl	_equal
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_STACKSTRNUL
	bl	_stackblock
	mov	x1, sp
	bl	_lstat
	tbnz	x0, #63, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	bl	_getcomponent
	mov	x21, x0
	mov	w22, #1
	cbnz	x0, LBB0_5
	b	LBB0_14
LBB0_13:
	mov	x19, #0
LBB0_14:
	mov	x0, x19
	bl	_findcwd
	cbz	x0, LBB0_17
; %bb.15:
	mov	x19, x0
	bl	_chdir
	tbnz	x0, #63, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_updatepwd
	mov	w0, #0
	b	LBB0_18
LBB0_17:
	mov	w0, #-1
LBB0_18:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".."

	.comm	_INTOFF,4,2                     ; @INTOFF
	.comm	_INTON,4,2                      ; @INTON
	.no_dead_strip	_cdlogical
.subsections_via_symbols
