	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getcwd                         ## -- Begin function getcwd
	.p2align	4, 0x90
_getcwd:                                ## @getcwd
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.5:
	movq	%r15, %r14
	testq	%r13, %r13
	je	LBB0_3
## %bb.6:
	xorl	%r12d, %r12d
	movq	%r15, %r14
	jmp	LBB0_7
LBB0_1:
	testq	%r13, %r13
	jne	LBB0_35
## %bb.2:
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	incq	%r14
LBB0_3:
	movq	%r14, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_35
## %bb.4:
	movq	%rax, %r13
	movb	$1, %r12b
LBB0_7:
	movb	$0, -1(%r13,%r14)
	leaq	L_.str(%rip), %rdi
	leaq	-104(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_33
## %bb.8:
	movq	-104(%rbp), %rbx
	movq	-96(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdi
	leaq	-104(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_33
## %bb.9:
	leaq	(%r14,%r13), %rsi
	decq	%rsi
	movq	-104(%rbp), %rax
	movq	-96(%rbp), %rcx
	cmpq	%rax, %rbx
	jne	LBB0_12
## %bb.10:
	cmpq	%rcx, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.11:
	leaq	_getcwd.dots(%rip), %rdi
LBB0_48:
	leaq	(%r14,%r13), %rax
	decq	%rax
	cmpq	%rax, %rsi
	jne	LBB0_50
## %bb.49:
	movb	$47, -1(%rsi)
	decq	%rsi
LBB0_50:
	leaq	_getcwd.dots(%rip), %rax
	cmpq	%rax, %rdi
	je	LBB0_52
## %bb.51:
	movq	%rsi, %rbx
	callq	_free
	movq	%rbx, %rsi
LBB0_52:
	addl	%r13d, %r14d
	subl	%esi, %r14d
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_memmove
	jmp	LBB0_53
LBB0_12:
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movl	$240, %ecx
	leaq	_getcwd.dots(%rip), %rdi
	leaq	_getcwd.dots+241(%rip), %rdx
	movq	%r15, -168(%rbp)                ## 8-byte Spill
	movq	%rax, -176(%rbp)                ## 8-byte Spill
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	cmpq	%rdi, %rdx
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%rcx,%rcx), %rsi
	incq	%rsi
	leaq	_getcwd.dots(%rip), %rax
	cmpq	%rax, %rdx
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdx, %rdi
	movq	%rdx, %r12
	callq	_realloc
	movq	%r12, %rdi
	movq	%rax, %rbx
	testq	%rax, %rax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_19
	jmp	LBB0_31
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rsi, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_32
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	_getcwd.dots(%rip), %rsi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%r12,%r12), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r12), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	movq	%r13, %rdx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movb	$0, (%rbx,%r12,2)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	-120(%rbp), %rbx                ## 8-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$-3, %rdx
	movq	%rdx, %rdi
	leaq	-104(%rbp), %rsi
	movq	%rdx, %r12
	callq	_stat
	testq	%rax, %rax
	js	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-104(%rbp), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	movq	-152(%rbp), %r12                ## 8-byte Reload
	je	LBB0_29
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rax
	subq	-136(%rbp), %rax                ## 8-byte Folded Reload
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	incq	%rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=2
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_readdir
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_29
LBB0_24:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	cmpb	$46, (%rax)
	jne	LBB0_36
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movzbl	1(%rax), %ecx
	testb	%cl, %cl
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpb	$46, %cl
	jne	LBB0_36
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpb	$0, 2(%rax)
	je	LBB0_28
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_24 Depth=2
	cmpq	%rbx, %r12
	jne	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 8(%r15)
	jne	LBB0_28
LBB0_38:                                ##   in Loop: Header=BB0_24 Depth=2
	movq	%r15, %rdi
	callq	__D_ALLOC_NAMLEN
	movq	%rsp, %r12
	cltq
	movq	-200(%rbp), %r14                ## 8-byte Reload
	addq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	movq	-192(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memcpy
	movb	$47, (%rbx,%r13)
	leaq	(%rbx,%r14), %rdi
	movq	(%r15), %rsi
	callq	_strcpy
	movq	%rbx, %rdi
	leaq	-104(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	movq	%r12, %rsp
	movq	-152(%rbp), %r12                ## 8-byte Reload
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	js	LBB0_28
## %bb.39:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpq	%rbx, -104(%rbp)
	jne	LBB0_28
## %bb.40:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -96(%rbp)
	jne	LBB0_28
## %bb.41:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	callq	__D_EXACT_NAMLEN
	movq	%rax, %rbx
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movq	%rdi, %r14
	movq	-112(%rbp), %r13                ## 8-byte Reload
	subq	%r13, %r14
	cmpq	%rax, %r14
	jbe	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-128(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_46
LBB0_43:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$0, -168(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_29
## %bb.44:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_MAX
	addl	%eax, %eax
	movslq	%eax, %rsi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%rsi, %r13
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_29
## %bb.45:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	leaq	(%rax,%r13), %rbx
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	addq	-128(%rbp), %rdx                ## 8-byte Folded Reload
	subq	-144(%rbp), %rdx                ## 8-byte Folded Reload
	subq	%rdx, %rbx
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %r13
	callq	_memcpy
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_46:                                ##   in Loop: Header=BB0_13 Depth=1
	subq	%rbx, %rdi
	movq	(%r15), %rsi
	movq	%rbx, %rdx
	movq	%rdi, %rbx
	callq	_memcpy
	movb	$47, -1(%rbx)
	decq	%rbx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_closedir
	movq	%rbx, %rsi
	movq	%r12, %rbx
	movq	-184(%rbp), %r8                 ## 8-byte Reload
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	-176(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	jne	LBB0_13
## %bb.47:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rbx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	cmpq	-160(%rbp), %r8                 ## 8-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_48
LBB0_29:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_closedir
LBB0_30:
	leaq	_getcwd.dots(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rdi
	cmpq	%rax, %rcx
	movq	-112(%rbp), %r13                ## 8-byte Reload
	je	LBB0_32
LBB0_31:
	callq	_free
LBB0_32:
	movl	-68(%rbp), %r12d                ## 4-byte Reload
LBB0_33:
	testb	%r12b, %r12b
	je	LBB0_35
## %bb.34:
	movq	%r13, %rdi
	callq	_free
LBB0_35:
	xorl	%r13d, %r13d
LBB0_53:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_55
## %bb.54:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_55:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @getcwd.dots
_getcwd.dots:
	.asciz	"../../../../../../../../../../../../../../../../../../../../../../../        ../../../../../../../../../../../../../../../../../../../../../../../../../../        ../../../../../../../../../../../../../../../../../../../../../../../../../.."

	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getcwd                         ; -- Begin function getcwd
	.p2align	2
_getcwd:                                ; @getcwd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #112
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x25, x20
	cbz	x19, LBB0_5
; %bb.2:
	mov	w21, #0
	mov	x25, x20
	b	LBB0_7
LBB0_3:
	cbnz	x19, LBB0_51
; %bb.4:
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	add	x25, x8, #1
LBB0_5:
	mov	x0, x25
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_52
; %bb.6:
	mov	w21, #1
LBB0_7:
	add	x23, x19, x25
	strb	wzr, [x23, #-1]!
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	sub	x1, x29, #104
	bl	_stat
	tbnz	x0, #63, LBB0_49
; %bb.8:
	ldp	x24, x8, [x29, #-104]
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	sub	x1, x29, #104
	bl	_stat
	tbnz	x0, #63, LBB0_49
; %bb.9:
	ldp	x27, x8, [x29, #-104]
Lloh10:
	adrp	x28, _getcwd.dots@PAGE
Lloh11:
	add	x28, x28, _getcwd.dots@PAGEOFF
	cmp	x24, x27
	b.ne	LBB0_17
; %bb.10:
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.11:
	mov	x20, x28
LBB0_12:
	add	x8, x25, x19
	sub	x8, x8, #1
	cmp	x23, x8
	b.ne	LBB0_14
; %bb.13:
	mov	w8, #47
	strb	w8, [x23, #-1]!
LBB0_14:
	cmp	x20, x28
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_free
LBB0_16:
	add	w8, w19, w25
	sub	w2, w8, w23
	mov	x0, x19
	mov	x1, x23
	bl	_memmove
	b	LBB0_52
LBB0_17:
	stp	x8, x20, [x29, #-184]           ; 16-byte Folded Spill
	stur	w21, [x29, #-148]               ; 4-byte Folded Spill
	add	x26, x28, #241
	mov	w8, #240
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
	mov	x20, x28
	stur	x27, [x29, #-168]               ; 8-byte Folded Spill
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	cmp	x26, x20
	b.ne	LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w1, #1
	ldur	x22, [x29, #-128]               ; 8-byte Folded Reload
	bfi	x1, x22, #1, #63
	cmp	x26, x28
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x26
	bl	_realloc
	mov	x20, x0
	cbnz	x0, LBB0_23
	b	LBB0_47
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x1
	bl	_malloc
	cbz	x0, LBB0_48
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x20, x0
	mov	x1, x28
	mov	x2, x22
	bl	_memcpy
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=1
	lsl	x21, x22, #1
	add	x26, x20, x22
	mov	x0, x26
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	strb	wzr, [x20, x21]
	stur	x21, [x29, #-128]               ; 8-byte Folded Spill
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=1
	sub	x26, x26, #3
	sub	x1, x29, #104
	mov	x0, x26
	bl	_stat
	tbnz	x0, #63, LBB0_46
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	ldp	x22, x21, [x29, #-104]
	mov	x0, x26
	bl	_opendir
	cbz	x0, LBB0_46
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x27, x0
	stur	x21, [x29, #-160]               ; 8-byte Folded Spill
	stur	x20, [x29, #-120]               ; 8-byte Folded Spill
	stp	x25, x23, [x29, #-144]          ; 16-byte Folded Spill
	bl	_readdir
	cbz	x0, LBB0_45
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x28, x0
	ldp	x9, x8, [x29, #-128]            ; 16-byte Folded Reload
	add	x8, x8, x9
	sub	x23, x8, x26
	add	x21, x23, #1
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	mov	x0, x27
	bl	_readdir
	mov	x28, x0
	cbz	x0, LBB0_45
LBB0_29:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28]
	ldrb	w9, [x8]
	cmp	w9, #46
	b.ne	LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	ldrb	w9, [x8, #1]
	cbz	w9, LBB0_28
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=2
	cmp	w9, #46
	b.ne	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=2
	ldrb	w8, [x8, #2]
	cbz	w8, LBB0_28
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=2
	cmp	x22, x24
	b.ne	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [x28, #8]
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	cmp	x8, x9
	b.ne	LBB0_28
LBB0_35:                                ;   in Loop: Header=BB0_29 Depth=2
	mov	x0, x28
	bl	__D_ALLOC_NAMLEN
	mov	x20, sp
	add	x9, x21, w0, sxtw
	add	x8, x9, #15
	and	x8, x8, #0xfffffffffffffff0
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x25, x9, x8
	mov	sp, x25
	mov	x0, x25
	mov	x1, x26
	mov	x2, x23
	bl	_memcpy
	mov	w8, #47
	strb	w8, [x25, x23]
	add	x0, x25, x21
	ldr	x1, [x28]
	bl	_strcpy
	sub	x1, x29, #104
	mov	x0, x25
	bl	_stat
	mov	sp, x20
	tbnz	x0, #63, LBB0_28
; %bb.36:                               ;   in Loop: Header=BB0_29 Depth=2
	ldur	x8, [x29, #-104]
	cmp	x8, x24
	b.ne	LBB0_28
; %bb.37:                               ;   in Loop: Header=BB0_29 Depth=2
	ldur	x8, [x29, #-96]
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.38:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x28
	bl	__D_EXACT_NAMLEN
	mov	x24, x0
	ldur	x23, [x29, #-136]               ; 8-byte Folded Reload
	sub	x20, x23, x19
	cmp	x20, x0
	b.ls	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_18 Depth=1
	ldur	x25, [x29, #-144]               ; 8-byte Folded Reload
	b	LBB0_43
LBB0_40:                                ;   in Loop: Header=BB0_18 Depth=1
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	cbnz	x8, LBB0_45
; %bb.41:                               ;   in Loop: Header=BB0_18 Depth=1
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
	mov	x1, x24
	bl	_MAX
	lsl	w8, w0, #1
	sxtw	x25, w8
	mov	x0, x19
	mov	x1, x25
	bl	_realloc
	cbz	x0, LBB0_45
; %bb.42:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x23, x0
	ldp	x8, x9, [x29, #-144]            ; 16-byte Folded Reload
	add	x8, x19, x8
	sub	x2, x8, x9
	add	x8, x0, x25
	sub	x21, x8, x2
	add	x1, x0, x20
	mov	x0, x21
	bl	_memcpy
	mov	x19, x23
	mov	x23, x21
LBB0_43:                                ;   in Loop: Header=BB0_18 Depth=1
	sub	x23, x23, x24
	ldr	x1, [x28]
	mov	x0, x23
	mov	x2, x24
	bl	_memcpy
	mov	w8, #47
	strb	w8, [x23, #-1]!
	mov	x0, x27
	bl	_closedir
	mov	x24, x22
	ldp	x27, x9, [x29, #-168]           ; 16-byte Folded Reload
	stur	x9, [x29, #-112]                ; 8-byte Folded Spill
	cmp	x22, x27
Lloh14:
	adrp	x28, _getcwd.dots@PAGE
Lloh15:
	add	x28, x28, _getcwd.dots@PAGEOFF
	ldur	x20, [x29, #-120]               ; 8-byte Folded Reload
	b.ne	LBB0_18
; %bb.44:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x24, x22
	stur	x9, [x29, #-112]                ; 8-byte Folded Spill
	ldur	x8, [x29, #-184]                ; 8-byte Folded Reload
	cmp	x9, x8
	b.ne	LBB0_18
	b	LBB0_12
LBB0_45:
	mov	x0, x27
	bl	_closedir
Lloh16:
	adrp	x28, _getcwd.dots@PAGE
Lloh17:
	add	x28, x28, _getcwd.dots@PAGEOFF
	ldur	x20, [x29, #-120]               ; 8-byte Folded Reload
LBB0_46:
	mov	x26, x20
	cmp	x20, x28
	b.eq	LBB0_48
LBB0_47:
	mov	x0, x26
	bl	_free
LBB0_48:
	ldur	w21, [x29, #-148]               ; 4-byte Folded Reload
LBB0_49:
	cbz	w21, LBB0_51
; %bb.50:
	mov	x0, x19
	bl	_free
LBB0_51:
	mov	x19, #0
LBB0_52:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_54
; %bb.53:
	mov	x0, x19
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_54:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_getcwd.dots:                           ; @getcwd.dots
	.asciz	"../../../../../../../../../../../../../../../../../../../../../../../        ../../../../../../../../../../../../../../../../../../../../../../../../../../        ../../../../../../../../../../../../../../../../../../../../../../../../../.."

	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

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

.subsections_via_symbols
