	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dev_rmdir
_dev_rmdir:                             ## @dev_rmdir
	.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	%rdi, %rdx
	movq	_dev_mnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%rsi), %edi
	movq	_LOOKUP_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r8
	callq	_vfs_path_lookup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	-32(%rbp), %rax
	movq	(%rax), %rdi
	movq	_I_MUTEX_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mutex_lock_nested
	movl	-20(%rbp), %edi
	movq	-32(%rbp), %rsi
	movl	-24(%rbp), %edx
	callq	_lookup_one_len
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_2:
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_vfs_rmdir
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_dput
LBB0_7:
	movq	-32(%rbp), %rax
	movq	(%rax), %rdi
	callq	_mutex_unlock
	leaq	-32(%rbp), %rdi
	callq	_path_put
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_mnt,8,3                    ## @dev_mnt
	.comm	_LOOKUP_PARENT,4,2              ## @LOOKUP_PARENT
	.comm	_I_MUTEX_PARENT,4,2             ## @I_MUTEX_PARENT
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_dev_rmdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dev_rmdir
_dev_rmdir:                             ; @dev_rmdir
	.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	x2, x0
Lloh0:
	adrp	x8, _dev_mnt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dev_mnt@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	ldr	w0, [x1]
Lloh3:
	adrp	x8, _LOOKUP_PARENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOOKUP_PARENT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x4, sp
	bl	_vfs_path_lookup
	mov	x19, x0
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x8, [sp]
	ldr	x0, [x8]
Lloh6:
	adrp	x8, _I_MUTEX_PARENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I_MUTEX_PARENT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_mutex_lock_nested
	ldr	x1, [sp]
	ldp	w2, w0, [sp, #8]
	bl	_lookup_one_len
	mov	x20, x0
	bl	_IS_ERR
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x19, x0
	b	LBB0_7
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [sp]
	ldr	x0, [x8]
	mov	x1, x20
	bl	_vfs_rmdir
	mov	x19, x0
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	mov	x0, x20
	bl	_dput
LBB0_7:
	ldr	x8, [sp]
	ldr	x0, [x8]
	bl	_mutex_unlock
	mov	x0, sp
	bl	_path_put
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_mnt,8,3                    ; @dev_mnt
	.comm	_LOOKUP_PARENT,4,2              ; @LOOKUP_PARENT
	.comm	_I_MUTEX_PARENT,4,2             ; @I_MUTEX_PARENT
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_dev_rmdir
.subsections_via_symbols
