	.file	"extr_vfs_syscalls.c_checkdirs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	checkdirs, @function
checkdirs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR [rdi], 1
	je	.L1
	mov	rbx, rdi
	mov	edi, DWORD PTR 4[rdi]
	mov	edx, esi
	lea	rsi, 8[rsp]
	call	VFS_ROOT@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L8
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR checkdirs_callback[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edi, DWORD PTR PROC_ALLPROCLIST[rip]
	lea	rdx, 16[rsp]
	mov	QWORD PTR 24[rsp], rbx
	or	edi, DWORD PTR PROC_NOWAITTRANS[rip]
	mov	QWORD PTR 16[rsp], rax
	call	proc_iterate@PLT
	cmp	QWORD PTR rootvnode[rip], rbx
	je	.L10
.L3:
	mov	rdi, QWORD PTR 8[rsp]
	call	vnode_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 8[rsp]
	call	vnode_ref@PLT
	mov	rdi, QWORD PTR rootvnode[rip]
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR rootvnode[rip], rax
	call	vnode_rele@PLT
	jmp	.L3
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	checkdirs, .-checkdirs
	.comm	rootvnode,8,8
	.comm	checkdirs_callback,4,4
	.comm	PROC_NOWAITTRANS,4,4
	.comm	PROC_ALLPROCLIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vfs_syscalls.c_checkdirs.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkdirs, %function
checkdirs:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, [r0]
	sub	sp, sp, #24
	cmp	r3, #1
	ldr	r3, .L11
	moveq	r5, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L1
	mov	r2, r1
	mov	r4, r0
	add	r1, sp, #8
	ldr	r0, [r0, #4]
	bl	VFS_ROOT
	subs	r5, r0, #0
	beq	.L8
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r2, .L11+4
	ldr	r3, .L11+8
	ldr	r0, [r2]
	ldr	r1, [r3]
	ldr	r2, [sp, #8]
	ldr	r3, .L11+12
	str	r5, [sp]
	ldr	r6, .L11+16
	orr	r0, r0, r1
	str	r2, [sp, #12]
	ldr	r1, [r3]
	add	r2, sp, #12
	mov	r3, r5
	str	r4, [sp, #16]
	bl	proc_iterate
	ldr	r3, [r6]
	cmp	r3, r4
	beq	.L10
.L3:
	ldr	r0, [sp, #8]
	bl	vnode_put
	b	.L1
.L10:
	ldr	r0, [sp, #8]
	bl	vnode_ref
	ldr	r3, [sp, #8]
	ldr	r0, [r6]
	str	r3, [r6]
	bl	vnode_rele
	b	.L3
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	PROC_ALLPROCLIST
	.word	PROC_NOWAITTRANS
	.word	checkdirs_callback
	.word	rootvnode
	.size	checkdirs, .-checkdirs
	.comm	rootvnode,4,4
	.comm	checkdirs_callback,4,4
	.comm	PROC_NOWAITTRANS,4,4
	.comm	PROC_ALLPROCLIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
