	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rename_dotdot
_rename_dotdot:                         ## @rename_dotdot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_FSTYPE_RUMPFS
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_atf_tc_skip
LBB0_2:
	movq	%rbx, %rdi
	callq	_rump_sys_chdir
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_rump_sys_mkdir
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_6:
	leaq	L_.str.4(%rip), %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_rump_sys_mkdir
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.5(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_rump_sys_rename
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
LBB0_10:
	leaq	L_.str.7(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_11:
	leaq	L_.str.6(%rip), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_rump_sys_rename
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
LBB0_13:
	leaq	L_.str.9(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_rump_sys_rename
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.15:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
LBB0_16:
	leaq	L_.str.11(%rip), %rdi
	callq	_atf_tc_fail
LBB0_17:
	leaq	L_.str.12(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rump_sys_chdir                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rename not supported by file system"

	.comm	_USES_DIRS,4,2                  ## @USES_DIRS
L_.str.1:                               ## @.str.1
	.asciz	"chdir mountpoint"

L_.str.2:                               ## @.str.2
	.asciz	"dir1"

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

L_.str.4:                               ## @.str.4
	.asciz	"dir2"

L_.str.5:                               ## @.str.5
	.asciz	"mkdir 2"

L_.str.6:                               ## @.str.6
	.asciz	"dir1/.."

	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.7:                               ## @.str.7
	.asciz	"self-dotdot to"

L_.str.8:                               ## @.str.8
	.asciz	"sometarget"

L_.str.9:                               ## @.str.9
	.asciz	"self-dotdot from"

L_.str.10:                              ## @.str.10
	.asciz	"dir2/.."

L_.str.11:                              ## @.str.11
	.asciz	"other-dotdot"

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

	.no_dead_strip	_rename_dotdot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rename_dotdot
_rename_dotdot:                         ; @rename_dotdot
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_FSTYPE_RUMPFS
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_skip
LBB0_2:
	mov	x0, x19
	bl	_rump_sys_chdir
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_4:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #511
	bl	_rump_sys_mkdir
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_6:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w1, #511
	bl	_rump_sys_mkdir
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_8:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_rump_sys_rename
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _EINVAL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_10:
Lloh22:
	adrp	x0, l_.str.7@PAGE
Lloh23:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_11:
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_rump_sys_rename
	cmn	w0, #1
	b.ne	LBB0_13
; %bb.12:
Lloh28:
	adrp	x8, _errno@GOTPAGE
Lloh29:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
Lloh31:
	adrp	x9, _EINVAL@GOTPAGE
Lloh32:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_13:
Lloh34:
	adrp	x0, l_.str.9@PAGE
Lloh35:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_14:
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh38:
	adrp	x1, l_.str.10@PAGE
Lloh39:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_rump_sys_rename
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.15:
Lloh40:
	adrp	x8, _errno@GOTPAGE
Lloh41:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
Lloh43:
	adrp	x9, _EINVAL@GOTPAGE
Lloh44:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
LBB0_16:
Lloh46:
	adrp	x0, l_.str.11@PAGE
Lloh47:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_atf_tc_fail
LBB0_17:
Lloh48:
	adrp	x0, l_.str.12@PAGE
Lloh49:
	add	x0, x0, l_.str.12@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rump_sys_chdir
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rename not supported by file system"

	.comm	_USES_DIRS,4,2                  ; @USES_DIRS
l_.str.1:                               ; @.str.1
	.asciz	"chdir mountpoint"

l_.str.2:                               ; @.str.2
	.asciz	"dir1"

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

l_.str.4:                               ; @.str.4
	.asciz	"dir2"

l_.str.5:                               ; @.str.5
	.asciz	"mkdir 2"

l_.str.6:                               ; @.str.6
	.asciz	"dir1/.."

	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.7:                               ; @.str.7
	.asciz	"self-dotdot to"

l_.str.8:                               ; @.str.8
	.asciz	"sometarget"

l_.str.9:                               ; @.str.9
	.asciz	"self-dotdot from"

l_.str.10:                              ; @.str.10
	.asciz	"dir2/.."

l_.str.11:                              ; @.str.11
	.asciz	"other-dotdot"

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

	.no_dead_strip	_rename_dotdot
.subsections_via_symbols
