	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function findcwd
_findcwd:                               ## @findcwd
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	_curdir@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_14
## %bb.2:
	movq	%rdi, %rbx
	callq	_stsavestr
	movq	%rax, -40(%rbp)
	callq	_STARTSTACKSTR
	cmpb	$47, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	(%r14), %rdi
	callq	_STPUTS
	callq	_STTOPC
	cmpb	$47, %al
	jne	LBB0_5
## %bb.4:
	callq	_STUNPUTC
LBB0_5:
	leaq	-40(%rbp), %rdi
	callq	_getcomponent
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %r15
	leaq	L_.str.1(%rip), %r14
	leaq	-40(%rbp), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_stackblock
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_getcomponent
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_equal
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_equal
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$47, %edi
	callq	_STPUTC
	movq	%rbx, %rdi
	callq	_STPUTS
	jmp	LBB0_12
LBB0_14:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_getpwd2                        ## TAILCALL
LBB0_13:
	xorl	%eax, %eax
	callq	_stackblock
	callq	_STACKSTRNUL
	xorl	%eax, %eax
	callq	_stackblock
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curdir,8,3                     ## @curdir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".."

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

	.no_dead_strip	_findcwd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function findcwd
_findcwd:                               ; @findcwd
	.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
	cbz	x0, LBB0_13
; %bb.1:
Lloh0:
	adrp	x20, _curdir@GOTPAGE
Lloh1:
	ldr	x20, [x20, _curdir@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.2:
	mov	x19, x0
	bl	_stsavestr
	str	x0, [sp, #8]
	bl	_STARTSTACKSTR
	ldrb	w8, [x19]
	cmp	w8, #47
	b.eq	LBB0_5
; %bb.3:
	ldr	x0, [x20]
	bl	_STPUTS
	bl	_STTOPC
	cmp	w0, #47
	b.ne	LBB0_5
; %bb.4:
	bl	_STUNPUTC
LBB0_5:
	add	x0, sp, #8
	bl	_getcomponent
	cbz	x0, LBB0_14
; %bb.6:
	mov	x21, x0
Lloh2:
	adrp	x19, l_.str@PAGE
Lloh3:
	add	x19, x19, l_.str@PAGEOFF
Lloh4:
	adrp	x20, l_.str.1@PAGE
Lloh5:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_stackblock
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #8
	bl	_getcomponent
	mov	x21, x0
	cbz	x0, LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_equal
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_equal
	cbnz	x0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #47
	bl	_STPUTC
	mov	x0, x21
	bl	_STPUTS
	b	LBB0_8
LBB0_13:
	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
	b	_getpwd2
LBB0_14:
	bl	_stackblock
	bl	_STACKSTRNUL
	bl	_stackblock
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_curdir,8,3                     ; @curdir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".."

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

	.no_dead_strip	_findcwd
.subsections_via_symbols
