	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.2:
	movq	%rdi, %r13
	addq	%rdi, %r15
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_3:
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_53
## %bb.4:
	movq	%rax, %r13
	movq	%rax, %r15
	addq	%r14, %r15
LBB0_5:
	movb	$0, -1(%r15)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %rbx
	movw	$46, (%rax)
	leaq	L_.str(%rip), %rdi
	leaq	-96(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.10:
	movq	-96(%rbp), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	_errno@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lstat
	testq	%rax, %rax
	je	LBB0_12
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_48
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_53
LBB0_9:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_48:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testq	%r14, %r14
	je	LBB0_50
## %bb.49:
	movq	%r13, %rdi
	callq	_free
LBB0_50:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	testq	%r12, %r12
	je	LBB0_52
## %bb.51:
	movq	%r12, %rdi
	callq	_closedir
LBB0_52:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
LBB0_53:
	xorl	%r13d, %r13d
LBB0_54:
	movq	%r13, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	-1(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	addq	%r12, %rsi
	movq	_MAXNAMLEN@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	xorl	%r8d, %r8d
	movq	%rbx, %rdx
	movq	-128(%rbp), %rdi                ## 8-byte Reload
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_36 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	movq	-96(%rbp), %rax
	movq	-88(%rbp), %rbx
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	cmpq	%rax, %rdi
	movq	-144(%rbp), %rax                ## 8-byte Reload
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	%rbx, %rax
	je	LBB0_55
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movslq	(%rcx), %rax
	addq	%rdx, %rax
	addq	$4, %rax
	cmpq	%rsi, %rax
	jae	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	addq	%rbx, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_48
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	subq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	addq	%rax, %rdx
	movq	%rax, %rcx
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	addq	%rbx, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movw	$11822, (%rdx)                  ## imm = 0x2E2E
	movq	%rdx, %rbx
	movb	$0, 2(%rdx)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_7
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_dirfd
	movl	%eax, %edi
	leaq	-96(%rbp), %rsi
	callq	_fstat
	testq	%rax, %rax
	jne	LBB0_48
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movb	$47, 2(%rbx)
	addq	$3, %rbx
	movq	-136(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -96(%rbp)
	jne	LBB0_30
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_42
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%rax, %r14
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%r14)
	jne	LBB0_22
LBB0_24:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	subq	%r13, %rdi
	movslq	8(%r14), %rax
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movzbl	%dl, %ecx
	andl	$1, %ecx
	incl	%ecx
	addq	%rax, %rcx
	cmpq	%rcx, %rdi
	jge	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_57
## %bb.26:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	addq	%rsi, %rsi
	movq	%r13, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_44
## %bb.27:                              ##   in Loop: Header=BB0_13 Depth=1
	subq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
	movq	%rax, %r13
	addq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	subq	%r15, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	callq	_memmove
	movq	%r13, %r15
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_13 Depth=1
	testb	$1, %dl
	je	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movb	$47, -1(%rdi)
	decq	%rdi
	jmp	LBB0_33
LBB0_30:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_42
## %bb.31:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %r14
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_36
LBB0_32:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_33:                                ##   in Loop: Header=BB0_13 Depth=1
	movslq	8(%r14), %rdx
	subq	%rdx, %rdi
	movl	12(%r14), %esi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_closedir
	movb	$0, (%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-96(%rbp), %rsi
	callq	_lstat
	movq	%rbx, %rdx
	movb	$1, %r8b
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	_MAXNAMLEN@GOTPCREL(%rip), %rcx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_13
	jmp	LBB0_48
LBB0_34:                                ##   in Loop: Header=BB0_36 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_36 Depth=2
	movq	%r12, %rdi
	callq	_readdir
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_43
LBB0_36:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_ISDOT
	testq	%rax, %rax
	jne	LBB0_35
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=2
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	incl	%edx
	movq	%rbx, %rdi
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-96(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	jne	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_36 Depth=2
	movq	-136(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -96(%rbp)
	jne	LBB0_35
## %bb.39:                              ##   in Loop: Header=BB0_36 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -88(%rbp)
	jne	LBB0_35
	jmp	LBB0_24
LBB0_40:                                ##   in Loop: Header=BB0_36 Depth=2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_34
## %bb.41:                              ##   in Loop: Header=BB0_36 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_34
LBB0_42:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_43:
	movq	_errno@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_45
LBB0_44:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_48
LBB0_45:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_47
## %bb.46:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_47:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	jmp	LBB0_48
LBB0_55:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movb	$47, -1(%rsi)
	decq	%rsi
	subq	%rsi, %r15
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_memmove
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_54
LBB0_57:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	jmp	LBB0_50
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_MAXPATHLEN,8,3                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_MAXNAMLEN,4,2                  ## @MAXNAMLEN
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_ENOENT,4,2                     ## @ENOENT
.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:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x21, _MAXPATHLEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAXPATHLEN@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	cbz	x1, LBB0_14
; %bb.2:
	mov	x19, x0
	mov	x20, #0
	add	x28, x0, x1
	b	LBB0_5
LBB0_3:
	ldr	x20, [x21]
	mov	x0, x20
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_15
; %bb.4:
	add	x28, x19, x20
LBB0_5:
	mov	x23, x28
	strb	wzr, [x23, #-1]!
	ldr	x24, [x21]
	mov	x0, x24
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.6:
	mov	w8, #46
	strh	w8, [x21]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #48
	bl	_stat
	cbnz	x0, LBB0_8
; %bb.7:
	ldp	x26, x22, [sp, #48]
Lloh4:
	adrp	x8, _errno@GOTPAGE
Lloh5:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh6:
	str	wzr, [x8]
	add	x1, sp, #48
	mov	x0, x21
	bl	_lstat
	cbz	x0, LBB0_16
LBB0_8:
	mov	x22, #0
LBB0_9:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
	cbz	x20, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_free
LBB0_11:
	mov	x0, x21
	bl	_free
	cbz	x22, LBB0_13
; %bb.12:
	mov	x0, x22
	bl	_closedir
LBB0_13:
	mov	x19, #0
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	str	w23, [x8]
	b	LBB0_15
LBB0_14:
	mov	x19, #0
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _errno@GOTPAGE
Lloh17:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_16:
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	mov	x22, #0
	mov	w11, #0
	add	x10, x21, x24
Lloh19:
	adrp	x9, _MAXNAMLEN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MAXNAMLEN@GOTPAGEOFF]
	mov	x12, x21
	str	x26, [sp]                       ; 8-byte Folded Spill
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_31 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
	ldp	x25, x27, [sp, #48]
	cmp	x26, x25
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ccmp	x8, x27, #0, eq
	b.eq	LBB0_45
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	str	w11, [sp, #28]                  ; 4-byte Folded Spill
	ldrsw	x8, [x9]
	add	x8, x12, x8
	add	x8, x8, #4
	cmp	x8, x10
	b.hs	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	str	x10, [sp, #16]                  ; 8-byte Folded Spill
	mov	x26, x12
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=1
	str	x28, [sp, #40]                  ; 8-byte Folded Spill
	mov	x28, x12
	lsl	x24, x24, #1
	mov	x0, x21
	mov	x1, x24
	bl	_realloc
	cbz	x0, LBB0_9
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=1
	sub	x8, x28, x21
	add	x26, x0, x8
	add	x8, x0, x24
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mov	x21, x0
	ldr	x28, [sp, #40]                  ; 8-byte Folded Reload
LBB0_22:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	w8, #11822
	strh	w8, [x26]
	strb	wzr, [x26, #2]
	mov	x0, x21
	bl	_opendir
	mov	x22, x0
	cbz	x0, LBB0_9
; %bb.23:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	bl	_dirfd
	add	x1, sp, #48
	bl	_fstat
	cbnz	x0, LBB0_9
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x8, x26, #3
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	w8, #47
	strb	w8, [x26, #2]
	ldr	x8, [sp, #48]
	cmp	x8, x25
	b.ne	LBB0_27
LBB0_25:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_readdir
	cbz	x0, LBB0_42
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	mov	x26, x0
	ldr	x8, [x0]
	cmp	x8, x27
	b.ne	LBB0_25
	b	LBB0_35
LBB0_27:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	bl	_readdir
	cbz	x0, LBB0_42
; %bb.28:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x26, x0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_31
LBB0_29:                                ;   in Loop: Header=BB0_31 Depth=2
Lloh21:
	adrp	x9, _errno@GOTPAGE
Lloh22:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
	ldr	w8, [x9]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w10, #0
	csel	w10, w8, w10, eq
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	str	wzr, [x9]
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=2
	mov	x0, x22
	bl	_readdir
	mov	x26, x0
	cbz	x0, LBB0_43
LBB0_31:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x26
	bl	_ISDOT
	cbnz	x0, LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=2
	ldp	w8, w1, [x26, #8]
	add	w2, w8, #1
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_memcpy
	add	x1, sp, #48
	mov	x0, x21
	bl	_lstat
	cbnz	x0, LBB0_29
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=2
	ldr	x8, [sp, #48]
	cmp	x8, x25
	b.ne	LBB0_30
; %bb.34:                               ;   in Loop: Header=BB0_31 Depth=2
	ldr	x8, [sp, #56]
	cmp	x8, x27
	b.ne	LBB0_30
LBB0_35:                                ;   in Loop: Header=BB0_17 Depth=1
	sub	x25, x23, x19
	ldrsw	x8, [x26, #8]
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	tst	w10, #0x1
	mov	w9, #1
	cinc	w9, w9, ne
	add	x8, x8, x9
	cmp	x25, x8
	b.ge	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_17 Depth=1
	cbz	x20, LBB0_46
; %bb.37:                               ;   in Loop: Header=BB0_17 Depth=1
	lsl	x20, x20, #1
	mov	x0, x19
	mov	x1, x20
	bl	_realloc
	cbz	x0, LBB0_9
; %bb.38:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x27, x0
	sub	x2, x28, x23
	add	x1, x0, x25
	add	x28, x0, x20
	sub	x23, x28, x2
	mov	x0, x23
	bl	_memmove
	mov	x19, x27
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
LBB0_39:                                ;   in Loop: Header=BB0_17 Depth=1
	tbz	w10, #0, LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	w8, #47
	strb	w8, [x23, #-1]!
LBB0_41:                                ;   in Loop: Header=BB0_17 Depth=1
	ldp	w2, w1, [x26, #8]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
	sub	x23, x23, x2
	mov	x0, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	mov	x0, x22
	bl	_closedir
	ldr	x25, [sp, #40]                  ; 8-byte Folded Reload
	strb	wzr, [x25]
	add	x1, sp, #48
	mov	x0, x21
	bl	_lstat
	mov	x12, x25
	mov	w11, #1
	ldr	x26, [sp]                       ; 8-byte Folded Reload
Lloh23:
	adrp	x9, _MAXNAMLEN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MAXNAMLEN@GOTPAGEOFF]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_17
	b	LBB0_9
LBB0_42:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
LBB0_43:
Lloh25:
	adrp	x9, _errno@GOTPAGE
Lloh26:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
	ldr	w8, [x9]
	cbnz	w8, LBB0_9
; %bb.44:
Lloh27:
	adrp	x8, _ENOENT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w10, #0
	csel	w8, w8, w10, eq
	str	w8, [x9]
	b	LBB0_9
LBB0_45:
	mov	w8, #47
	strb	w8, [x23, #-1]!
	sub	x2, x28, x23
	mov	x0, x19
	mov	x1, x23
	bl	_memmove
	mov	x0, x21
	bl	_free
	b	LBB0_15
LBB0_46:
Lloh30:
	adrp	x8, _ERANGE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh32:
	ldr	w23, [x8]
Lloh33:
	adrp	x8, _errno@GOTPAGE
Lloh34:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh35:
	str	w23, [x8]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_MAXPATHLEN,8,3                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_MAXNAMLEN,4,2                  ; @MAXNAMLEN
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
