	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function renamerace_dirs
_renamerace_dirs:                       ## @renamerace_dirs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_FSTYPE_SYSVBFS
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_atf_tc_skip
LBB0_2:
	movq	%rbx, %rdi
	callq	_FSTYPE_RUMPFS
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_atf_tc_skip
LBB0_4:
	movq	%rbx, %rdi
	callq	_FSTYPE_MSDOS
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	callq	_atf_tc_expect_signal
LBB0_6:
	movq	_RUMP_RFCFDG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rump_pub_lwproc_rfork
	movl	%eax, %edi
	callq	_RZ
	xorl	%eax, %eax
	callq	_rump_sys_getpid
	movq	_wrkpid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %edi
	callq	_RL
	movq	%r14, %rdi
	callq	_rump_sys_chdir
	movl	%eax, %edi
	callq	_RL
	movq	_w1_dirs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pthread_create
	movq	_w2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pthread_create
	movl	$5, %edi
	callq	_sleep
	movq	_quittingtime@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	-24(%rbp), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	movl	-20(%rbp), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	leaq	L_.str.3(%rip), %rdi
	callq	_rump_sys_chdir
	movl	%eax, %edi
	callq	_RL
	movq	%rbx, %rdi
	callq	_FSTYPE_MSDOS
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"directories not supported by file system"

L_.str.1:                               ## @.str.1
	.asciz	"rename not supported by file system"

L_.str.2:                               ## @.str.2
	.asciz	"PR kern/43626"

	.comm	_RUMP_RFCFDG,4,2                ## @RUMP_RFCFDG
	.comm	_wrkpid,4,2                     ## @wrkpid
	.comm	_w1_dirs,4,2                    ## @w1_dirs
	.comm	_w2,4,2                         ## @w2
	.comm	_quittingtime,4,2               ## @quittingtime
L_.str.3:                               ## @.str.3
	.asciz	"/"

	.no_dead_strip	_renamerace_dirs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function renamerace_dirs
_renamerace_dirs:                       ; @renamerace_dirs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_FSTYPE_SYSVBFS
	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	_FSTYPE_RUMPFS
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_atf_tc_skip
LBB0_4:
	mov	x0, x19
	bl	_FSTYPE_MSDOS
	cbz	x0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_atf_tc_expect_signal
LBB0_6:
Lloh6:
	adrp	x8, _RUMP_RFCFDG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RUMP_RFCFDG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_rump_pub_lwproc_rfork
	bl	_RZ
	bl	_rump_sys_getpid
Lloh9:
	adrp	x8, _wrkpid@GOTPAGE
Lloh10:
	ldr	x8, [x8, _wrkpid@GOTPAGEOFF]
Lloh11:
	str	w0, [x8]
	bl	_RL
	mov	x0, x20
	bl	_rump_sys_chdir
	bl	_RL
Lloh12:
	adrp	x8, _w1_dirs@GOTPAGE
Lloh13:
	ldr	x8, [x8, _w1_dirs@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, #0
	mov	x3, #0
	bl	_pthread_create
Lloh15:
	adrp	x8, _w2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _w2@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, #0
	mov	x3, #0
	bl	_pthread_create
	mov	w0, #5
	bl	_sleep
Lloh18:
	adrp	x8, _quittingtime@GOTPAGE
Lloh19:
	ldr	x8, [x8, _quittingtime@GOTPAGEOFF]
	mov	w9, #1
Lloh20:
	str	w9, [x8]
	ldr	w0, [sp, #12]
	mov	x1, #0
	bl	_pthread_join
	ldr	w0, [sp, #8]
	mov	x1, #0
	bl	_pthread_join
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_rump_sys_chdir
	bl	_RL
	mov	x0, x19
	bl	_FSTYPE_MSDOS
	cbnz	x0, LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	bl	_abort
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"directories not supported by file system"

l_.str.1:                               ; @.str.1
	.asciz	"rename not supported by file system"

l_.str.2:                               ; @.str.2
	.asciz	"PR kern/43626"

	.comm	_RUMP_RFCFDG,4,2                ; @RUMP_RFCFDG
	.comm	_wrkpid,4,2                     ; @wrkpid
	.comm	_w1_dirs,4,2                    ; @w1_dirs
	.comm	_w2,4,2                         ; @w2
	.comm	_quittingtime,4,2               ; @quittingtime
l_.str.3:                               ; @.str.3
	.asciz	"/"

	.no_dead_strip	_renamerace_dirs
.subsections_via_symbols
