	.file	"extr_dcache.c_d_set_mounted.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	d_set_mounted
	.type	d_set_mounted, @function
d_set_mounted:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, DWORD PTR ENOENT[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	lea	rdi, rename_lock[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	neg	r13d
	call	write_seqlock@PLT
	mov	rbp, QWORD PTR 8[r12]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	spin_lock@PLT
	mov	rdi, rbp
	call	d_unhashed@PLT
	mov	edi, eax
	call	unlikely@PLT
	mov	rdi, rbp
	test	rax, rax
	jne	.L9
	call	spin_unlock@PLT
	mov	rbp, QWORD PTR 8[rbp]
.L2:
	mov	rdi, rbp
	call	IS_ROOT@PLT
	test	eax, eax
	je	.L5
	mov	rdi, r12
	call	spin_lock@PLT
	mov	rdi, r12
	call	d_unlinked@PLT
	test	eax, eax
	je	.L11
.L6:
	mov	rdi, r12
.L9:
.L4:
	endbr64
	call	spin_unlock@PLT
	lea	rdi, rename_lock[rip]
	call	write_sequnlock@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, r12
	mov	ebp, DWORD PTR EBUSY[rip]
	call	d_mountpoint@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L7
	neg	ebp
	mov	r13d, ebp
	jmp	.L6
.L7:
	mov	eax, DWORD PTR DCACHE_MOUNTED[rip]
	or	DWORD PTR 4[r12], eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	d_set_mounted, .-d_set_mounted
	.comm	rename_lock,4,4
	.comm	ENOENT,4,4
	.comm	EBUSY,4,4
	.comm	DCACHE_MOUNTED,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_dcache.c_d_set_mounted.c"
	.text
	.align	2
	.global	d_set_mounted
	.syntax unified
	.arm
	.fpu softvfp
	.type	d_set_mounted, %function
d_set_mounted:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r3, .L12
	ldr	r0, .L12+4
	ldr	r6, [r3]
	bl	write_seqlock
	rsb	r6, r6, #0
	ldr	r4, [r5, #8]
	b	.L2
.L5:
	mov	r0, r4
	bl	spin_lock
	mov	r0, r4
	bl	d_unhashed
	bl	unlikely
	cmp	r0, #0
	mov	r0, r4
	bne	.L9
	bl	spin_unlock
	ldr	r4, [r4, #8]
.L2:
	mov	r0, r4
	bl	IS_ROOT
	cmp	r0, #0
	beq	.L5
	mov	r0, r5
	bl	spin_lock
	mov	r0, r5
	bl	d_unlinked
	cmp	r0, #0
	beq	.L11
.L6:
	mov	r0, r5
.L9:
.L4:
	bl	spin_unlock
	ldr	r0, .L12+4
	bl	write_sequnlock
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L12+8
	mov	r0, r5
	ldr	r4, [r3]
	bl	d_mountpoint
	subs	r6, r0, #0
	ldreq	r2, .L12+12
	ldreq	r3, [r5, #4]
	ldreq	r2, [r2]
	rsbne	r6, r4, #0
	orreq	r3, r3, r2
	streq	r3, [r5, #4]
	b	.L6
.L13:
	.align	2
.L12:
	.word	ENOENT
	.word	rename_lock
	.word	EBUSY
	.word	DCACHE_MOUNTED
	.size	d_set_mounted, .-d_set_mounted
	.comm	rename_lock,4,4
	.comm	ENOENT,4,4
	.comm	EBUSY,4,4
	.comm	DCACHE_MOUNTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
