	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atf_fs_rmdir                   ## -- Begin function atf_fs_rmdir
	.p2align	4, 0x90
_atf_fs_rmdir:                          ## @atf_fs_rmdir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_atf_fs_path_cstring
	movl	%eax, %edi
	callq	_rmdir
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jne	LBB0_3
## %bb.2:
	movq	_ENOTEMPTY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	%rdi, (%rax)
LBB0_3:
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_atf_libc_error                 ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_atf_no_error                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
	.comm	_ENOTEMPTY,8,3                  ## @ENOTEMPTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot remove directory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atf_fs_rmdir                   ; -- Begin function atf_fs_rmdir
	.p2align	2
_atf_fs_rmdir:                          ; @atf_fs_rmdir
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_atf_fs_path_cstring
	bl	_rmdir
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	ldr	x0, [x8]
Lloh2:
	adrp	x9, _EEXIST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x9, _ENOTEMPTY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENOTEMPTY@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x9]
	str	x0, [x8]
LBB0_3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_atf_libc_error
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_atf_no_error
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
	.comm	_ENOTEMPTY,8,3                  ; @ENOTEMPTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot remove directory"

.subsections_via_symbols
