	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmdirs                         ## -- Begin function rmdirs
	.p2align	4, 0x90
_rmdirs:                                ## @rmdirs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_xstrdup
	movq	%rax, %rbx
	leaq	-32(%rbp), %r14
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	$-128, -32(%rbp)
	jne	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_rmdir
	testq	%rax, %rax
	js	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dlog
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movb	$0, (%rax)
	cmpq	%rbx, %rax
	ja	LBB0_1
	jmp	LBB0_12
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOTEMPTY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.6:
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.7:
	movq	_EROFS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.9:
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_plog
LBB0_12:
	movq	%rbx, %rdi
	callq	_XFREE
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOTEMPTY,8,3                  ## @ENOTEMPTY
	.comm	_EBUSY,8,3                      ## @EBUSY
	.comm	_EEXIST,8,3                     ## @EEXIST
	.comm	_EROFS,8,3                      ## @EROFS
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_XLOG_ERROR,4,2                 ## @XLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rmdir(%s): %m"

L_.str.1:                               ## @.str.1
	.asciz	"rmdir(%s)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmdirs                         ; -- Begin function rmdirs
	.p2align	2
_rmdirs:                                ; @rmdirs
	.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
	bl	_xstrdup
	mov	x19, x0
Lloh0:
	adrp	x20, l_.str.1@PAGE
Lloh1:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	cbnz	x0, LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [sp, #8]
	tbnz	w8, #7, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_rmdir
	tbnz	x0, #63, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_dlog
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	strb	wzr, [x0]
	cmp	x0, x19
	b.hi	LBB0_1
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _ENOTEMPTY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENOTEMPTY@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _EBUSY@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x11, _EEXIST@GOTPAGE
Lloh12:
	ldr	x11, [x11, _EEXIST@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
Lloh14:
	adrp	x12, _EROFS@GOTPAGE
Lloh15:
	ldr	x12, [x12, _EROFS@GOTPAGEOFF]
Lloh16:
	ldr	x12, [x12]
Lloh17:
	adrp	x13, _EINVAL@GOTPAGE
Lloh18:
	ldr	x13, [x13, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	x13, [x13]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	ccmp	x8, x13, #4, ne
	b.eq	LBB0_8
; %bb.7:
Lloh20:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_plog
LBB0_8:
	mov	x0, x19
	bl	_XFREE
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOTEMPTY,8,3                  ; @ENOTEMPTY
	.comm	_EBUSY,8,3                      ; @EBUSY
	.comm	_EEXIST,8,3                     ; @EEXIST
	.comm	_EROFS,8,3                      ; @EROFS
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_XLOG_ERROR,4,2                 ; @XLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rmdir(%s): %m"

l_.str.1:                               ; @.str.1
	.asciz	"rmdir(%s)"

.subsections_via_symbols
