	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dir_rmdirdotdot
_dir_rmdirdotdot:                       ## @dir_rmdirdotdot
	.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	$24, %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, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	xorl	%eax, %eax
	callq	_FSTEST_ENTER
	leaq	L_.str(%rip), %r13
	movq	%r13, %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_rump_sys_mkdir
	movl	%eax, %edi
	callq	_RL
	movq	%r13, %rdi
	callq	_rump_sys_chdir
	movl	%eax, %edi
	callq	_RL
	leaq	L_.str.1(%rip), %r14
	movq	%r14, %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_rump_sys_mkdir
	movl	%eax, %edi
	callq	_RL
	movq	%r14, %rdi
	callq	_rump_sys_chdir
	movl	%eax, %edi
	callq	_RL
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_md
	movq	%rbx, %rdi
	callq	_rump_sys_rmdir
	movl	%eax, %edi
	callq	_RL
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_md
	movq	%rbx, %rdi
	callq	_rump_sys_rmdir
	movl	%eax, %edi
	callq	_RL
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_FSTYPE_NFS
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ESTALE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_rump_sys_chdir
	xorl	%esi, %esi
	cmpl	$-1, %eax
	sete	%sil
	movl	%ebx, %edi
	callq	_ATF_REQUIRE_ERRNO
	xorl	%eax, %eax
	callq	_FSTEST_EXIT
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_USES_DIRS,4,2                  ## @USES_DIRS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test"

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

L_.str.2:                               ## @.str.2
	.asciz	"test/subtest"

	.comm	_ESTALE,4,2                     ## @ESTALE
	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	".."

	.no_dead_strip	_dir_rmdirdotdot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dir_rmdirdotdot
_dir_rmdirdotdot:                       ; @dir_rmdirdotdot
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	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, #-56]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	bl	_FSTEST_ENTER
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
	mov	x0, x23
	mov	w1, #511
	bl	_rump_sys_mkdir
	bl	_RL
	mov	x0, x23
	bl	_rump_sys_chdir
	bl	_RL
Lloh10:
	adrp	x24, l_.str.1@PAGE
Lloh11:
	add	x24, x24, l_.str.1@PAGEOFF
	mov	x0, x24
	mov	w1, #511
	bl	_rump_sys_mkdir
	bl	_RL
	mov	x0, x24
	bl	_rump_sys_chdir
	bl	_RL
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_md
	mov	x0, x22
	bl	_rump_sys_rmdir
	bl	_RL
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	bl	_md
	mov	x0, x22
	bl	_rump_sys_rmdir
	bl	_RL
	mov	x0, x19
	bl	_FSTYPE_NFS
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh16:
	adrp	x9, _ESTALE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ESTALE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w19, [x8]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_rump_sys_chdir
	cmn	w0, #1
	cset	w1, eq
	mov	x0, x19
	bl	_ATF_REQUIRE_ERRNO
	bl	_FSTEST_EXIT
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_USES_DIRS,4,2                  ; @USES_DIRS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test"

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

l_.str.2:                               ; @.str.2
	.asciz	"test/subtest"

	.comm	_ESTALE,4,2                     ; @ESTALE
	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	".."

	.no_dead_strip	_dir_rmdirdotdot
.subsections_via_symbols
