	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function realpath1
_realpath1:                             ## @realpath1
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	cmpb	$47, (%r15)
	jne	LBB0_3
## %bb.1:
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%r13, %r12
	movw	$47, (%r13)
	cmpb	$0, 1(%r15)
	je	LBB0_48
## %bb.2:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	incq	%r15
	movl	$1, %r13d
	jmp	LBB0_5
LBB0_3:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_getcwd
	testq	%rax, %rax
	je	LBB0_46
## %bb.4:
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %r12
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, %r13
LBB0_5:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_strlcpy
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	cmpq	%r14, %rax
	jae	LBB0_43
## %bb.6:
	movq	%rax, %r15
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jae	LBB0_43
## %bb.7:
	testq	%r15, %r15
	je	LBB0_40
## %bb.8:
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%r13, %rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%r13, %rax
	testq	%r15, %r15
	je	LBB0_40
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %r14
	movq	%rax, %rbx
	subq	%r13, %rbx
	testq	%rax, %rax
	cmoveq	%r15, %rbx
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%r14, %rax
	movb	$0, (%r12,%rbx)
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rbx, %r12
	notq	%r12
	addq	%r15, %r12
	movq	%rax, %r14
	leaq	1(%rax), %rsi
	subq	%rbx, %r15
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_memmove
	movq	%r12, %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%rax, %r14
	movb	$0, (%r13)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	xorl	%r15d, %r15d
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	cmpb	$47, -1(%rcx,%r12)
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rcx, %r13
	cmpb	$0, (%rbx)
	jne	LBB0_18
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=2
	leaq	1(%rcx), %r13
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jae	LBB0_43
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=2
	movw	$47, (%r12,%rcx)
	cmpb	$0, (%rbx)
	je	LBB0_10
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=2
	cmpq	$2, %r13
	jb	LBB0_10
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=2
	movb	$0, -1(%r13,%r12)
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, %r13
	movb	$0, 1(%rax)
	incq	%r13
	subq	%r12, %r13
	jmp	LBB0_10
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strlcat
	movq	%rax, %r13
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jae	LBB0_43
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	leaq	-96(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	jne	LBB0_47
## %bb.24:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-96(%rbp), %ebx
	movl	%ebx, %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_MAXSYMLINKS@GOTPCREL(%rip), %rax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	ja	LBB0_53
## %bb.26:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_readlink
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_54
## %bb.27:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rbx, %r15
	jae	LBB0_54
## %bb.28:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	$0, (%r12,%r15)
	cmpb	$47, (%r12)
	jne	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movb	$0, 1(%rax)
	movl	$1, %r13d
	jmp	LBB0_33
LBB0_30:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	jne	LBB0_39
## %bb.31:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%r14, %r14
	je	LBB0_39
	jmp	LBB0_56
LBB0_32:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, %r13
	movb	$0, 1(%rax)
	incq	%r13
	subq	%rbx, %r13
LBB0_33:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_38
## %bb.34:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$47, -1(%r15,%r12)
	je	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rax
	incq	%rax
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	jae	LBB0_43
## %bb.36:                              ##   in Loop: Header=BB0_9 Depth=1
	movw	$47, (%r12,%r15)
LBB0_37:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_strlcat
	cmpq	%r15, %rax
	jae	LBB0_43
LBB0_38:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	-68(%rbp)                       ## 4-byte Folded Spill
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_strlcpy
	movq	%rax, %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_39:                                ##   in Loop: Header=BB0_9 Depth=1
	testq	%r15, %r15
	jne	LBB0_9
LBB0_40:
	cmpq	$2, %r13
	jb	LBB0_48
## %bb.41:
	cmpb	$47, -1(%r13,%r12)
	movq	%r12, %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_52
## %bb.42:
	movq	%rax, %r12
	movb	$0, -1(%rax,%r13)
	jmp	LBB0_49
LBB0_43:
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
LBB0_44:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_47
LBB0_46:
	movw	$46, (%r13)
LBB0_47:
	xorl	%r12d, %r12d
LBB0_48:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_49:
	movq	%rdx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_60
## %bb.50:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	movq	%rax, %r12
	jmp	LBB0_49
LBB0_53:
	movq	_ELOOP@GOTPCREL(%rip), %rax
	jmp	LBB0_59
LBB0_54:
	testq	%r15, %r15
	jne	LBB0_57
## %bb.55:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_58
LBB0_56:
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_57:
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
LBB0_58:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_59:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r12d, %r12d
	jmp	LBB0_49
LBB0_60:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_ENAMETOOLONG,4,2               ## @ENAMETOOLONG
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

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

	.comm	_MAXSYMLINKS,4,2                ## @MAXSYMLINKS
	.comm	_ELOOP,4,2                      ## @ELOOP
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENOTDIR,4,2                    ## @ENOTDIR
	.no_dead_strip	_realpath1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function realpath1
_realpath1:                             ; @realpath1
	.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, #48
	mov	x19, x1
	mov	x25, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x12, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x12, [x12, _PATH_MAX@GOTPAGEOFF]
	ldr	w20, [x12]
	mov	x9, x20
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	w22, [x12]
	mov	x9, x22
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x12, x9, #0x1fffffff0
	sub	x23, x8, x12
	mov	sp, x23
	mov	x9, x22
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x26, x8, x12
	mov	sp, x26
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_3
; %bb.1:
	strh	w8, [x19]
	ldrb	w8, [x25, #1]!
	cbz	w8, LBB0_44
; %bb.2:
	stur	x24, [x29, #-104]               ; 8-byte Folded Spill
	mov	w27, #1
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	mov	x1, x22
	bl	_getcwd
	cbz	x0, LBB0_43
; %bb.4:
	stur	x24, [x29, #-104]               ; 8-byte Folded Spill
	mov	x0, x19
	bl	_strlen
	mov	x27, x0
LBB0_5:
	mov	x0, x21
	mov	x1, x25
	mov	x2, x20
	bl	_strlcpy
Lloh11:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh13:
	ldrsw	x8, [x8]
	cmp	x0, x20
	ccmp	x27, x8, #2, lo
	b.lo	LBB0_8
LBB0_6:
	mov	x19, #0
Lloh14:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _errno@GOTPAGE
Lloh17:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
	ldur	x24, [x29, #-104]               ; 8-byte Folded Reload
	b	LBB0_44
LBB0_8:
	mov	x24, x0
	cbz	x0, LBB0_40
; %bb.9:
	stur	x26, [x29, #-112]               ; 8-byte Folded Spill
	stur	wzr, [x29, #-116]               ; 4-byte Folded Spill
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cbz	x24, LBB0_40
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #47
	bl	_strchr
	mov	x26, x0
	sub	x8, x0, x21
	cmp	x0, #0
	csel	x25, x8, x24, ne
	mov	x0, x23
	mov	x1, x21
	mov	x2, x25
	bl	_memcpy
	strb	wzr, [x23, x25]
	cbz	x26, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mvn	x8, x25
	add	x28, x24, x8
	add	x1, x26, #1
	sub	x2, x24, x25
	mov	x0, x21
	bl	_memmove
	mov	x24, x28
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x24, #0
	strb	wzr, [x21]
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x27, x19
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x27, #1
Lloh19:
	adrp	x9, _PATH_MAX@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PATH_MAX@GOTPAGEOFF]
Lloh21:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w9, #47
	strb	w9, [x19, x27]
	strb	wzr, [x19, x8]
	mov	x27, x8
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x23]
	cbz	w8, LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x27, #2
	b.lo	LBB0_10
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x27, x19
	sturb	wzr, [x8, #-1]
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	strb	wzr, [x0, #1]!
	sub	x27, x0, x19
	b	LBB0_10
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh26:
	adrp	x25, _PATH_MAX@GOTPAGE
Lloh27:
	ldr	x25, [x25, _PATH_MAX@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x23
	bl	_strlcat
	ldrsw	x8, [x25]
	cmp	x0, x8
	b.hs	LBB0_6
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x27, x0
	sub	x1, x29, #96
	mov	x0, x19
	bl	_lstat
	cbnz	x0, LBB0_46
; %bb.24:                               ;   in Loop: Header=BB0_11 Depth=1
	ldur	w25, [x29, #-96]
	mov	x0, x25
	bl	_S_ISLNK
	cbz	x0, LBB0_30
; %bb.25:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh28:
	adrp	x8, _MAXSYMLINKS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MAXSYMLINKS@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldur	w9, [x29, #-116]                ; 4-byte Folded Reload
	cmp	w9, w8
	b.hi	LBB0_47
; %bb.26:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	ldur	x1, [x29, #-112]                ; 8-byte Folded Reload
	mov	x2, x22
	bl	_readlink
	mov	x28, x0
	ldur	x24, [x29, #-104]               ; 8-byte Folded Reload
	cbz	x0, LBB0_48
; %bb.27:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x28, x22
	b.hs	LBB0_48
; %bb.28:                               ;   in Loop: Header=BB0_11 Depth=1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	strb	wzr, [x8, x28]
	ldrb	w8, [x8]
	cmp	w8, #47
	b.ne	LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_11 Depth=1
	strb	wzr, [x19, #1]
	mov	w27, #1
	b	LBB0_33
LBB0_30:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	bl	_S_ISDIR
	cbnz	w0, LBB0_39
; %bb.31:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	x26, LBB0_39
	b	LBB0_51
LBB0_32:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	strb	wzr, [x0, #1]!
	sub	x27, x0, x19
LBB0_33:                                ;   in Loop: Header=BB0_11 Depth=1
	ldur	x25, [x29, #-112]               ; 8-byte Folded Reload
	cbz	x26, LBB0_38
; %bb.34:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x28, x25
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	b.eq	LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x28, #1
	cmp	x8, x22
	b.hs	LBB0_49
; %bb.36:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w9, #47
	strb	w9, [x25, x28]
	strb	wzr, [x25, x8]
LBB0_37:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	mov	x1, x21
	mov	x2, x22
	bl	_strlcat
	cmp	x0, x22
	b.hs	LBB0_49
LBB0_38:                                ;   in Loop: Header=BB0_11 Depth=1
	ldur	w8, [x29, #-116]                ; 4-byte Folded Reload
	add	w8, w8, #1
	stur	w8, [x29, #-116]                ; 4-byte Folded Spill
	mov	x0, x21
	mov	x1, x25
	mov	x2, x20
	bl	_strlcpy
	mov	x24, x0
LBB0_39:                                ;   in Loop: Header=BB0_11 Depth=1
	cbnz	x24, LBB0_11
LBB0_40:
	cmp	x27, #2
	ldur	x24, [x29, #-104]               ; 8-byte Folded Reload
	b.lo	LBB0_44
; %bb.41:
	sub	x8, x27, #1
	ldrb	w9, [x19, x8]
	cmp	w9, #47
	b.ne	LBB0_44
; %bb.42:
	strb	wzr, [x19, x8]
	b	LBB0_44
LBB0_43:
	mov	w8, #46
	strh	w8, [x19]
	mov	x19, #0
LBB0_44:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.45:
	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_46:
	mov	x19, #0
	ldur	x24, [x29, #-104]               ; 8-byte Folded Reload
	b	LBB0_44
LBB0_47:
	mov	x19, #0
Lloh34:
	adrp	x8, _ELOOP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ELOOP@GOTPAGEOFF]
	b	LBB0_7
LBB0_48:
	mov	x19, #0
Lloh36:
	adrp	x8, _ENOENT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh38:
	adrp	x9, _ENAMETOOLONG@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ENAMETOOLONG@GOTPAGEOFF]
	cmp	x28, #0
	csel	x8, x8, x9, eq
	b	LBB0_50
LBB0_49:
	mov	x19, #0
Lloh40:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
LBB0_50:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _errno@GOTPAGE
Lloh43:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh44:
	str	w8, [x9]
	b	LBB0_44
LBB0_51:
	mov	x19, #0
Lloh45:
	adrp	x8, _ENOTDIR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOTDIR@GOTPAGEOFF]
	b	LBB0_7
LBB0_52:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_ENAMETOOLONG,4,2               ; @ENAMETOOLONG
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

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

	.comm	_MAXSYMLINKS,4,2                ; @MAXSYMLINKS
	.comm	_ELOOP,4,2                      ; @ELOOP
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENOTDIR,4,2                    ; @ENOTDIR
	.no_dead_strip	_realpath1
.subsections_via_symbols
