	.file	"extr_md.c_md_allow_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	md_allow_write
	.type	md_allow_write, @function
md_allow_write:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 32[rdi]
	test	rax, rax
	je	.L15
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR 40[rdi], 0
	mov	rbx, rdi
	jne	.L4
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jne	.L16
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	r12, 8[rdi]
	lea	rbp, 4[rbx]
	mov	rdi, r12
	call	spin_lock_irq@PLT
	cmp	QWORD PTR 24[rbx], 0
	jne	.L17
	mov	rdi, r12
	call	spin_unlock_irq@PLT
.L7:
	mov	edi, DWORD PTR MD_CHANGE_PENDING[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR EAGAIN[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	QWORD PTR 24[rbx], 0
	mov	edi, DWORD PTR MD_CHANGE_CLEAN[rip]
	mov	rsi, rbp
	call	set_bit@PLT
	mov	edi, DWORD PTR MD_CHANGE_PENDING[rip]
	mov	rsi, rbp
	call	set_bit@PLT
	cmp	QWORD PTR 16[rbx], 0
	je	.L6
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L6
	mov	DWORD PTR [rbx], 1
.L6:
	mov	rdi, r12
	call	spin_unlock_irq@PLT
	mov	rdi, rbx
	xor	esi, esi
	call	md_update_sb@PLT
	mov	edi, DWORD PTR 12[rbx]
	call	sysfs_notify_dirent_safe@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	md_allow_write, .-md_allow_write
	.comm	MD_CHANGE_PENDING,4,4
	.comm	MD_CHANGE_CLEAN,4,4
	.comm	EAGAIN,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_md.c_md_allow_write.c"
	.text
	.align	2
	.global	md_allow_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	md_allow_write, %function
md_allow_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #24]
	cmp	r3, #0
	beq	.L21
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0, #28]
	mov	r4, r0
	cmp	r5, #0
	bne	.L4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	add	r7, r0, #8
	mov	r0, r7
	bl	spin_lock_irq
	ldr	r3, [r4, #20]
	add	r6, r4, #4
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L23
	ldr	r8, .L23+4
	ldr	r0, [r3]
	mov	r1, r6
	str	r5, [r4, #20]
	bl	set_bit
	mov	r1, r6
	ldr	r0, [r8]
	bl	set_bit
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [r4]
	cmp	r3, #0
	moveq	r3, #1
	streq	r3, [r4]
.L6:
	mov	r0, r7
	bl	spin_unlock_irq
	mov	r1, #0
	mov	r0, r4
	bl	md_update_sb
	ldr	r0, [r4, #12]
	bl	sysfs_notify_dirent_safe
	b	.L7
.L5:
	mov	r0, r7
	bl	spin_unlock_irq
	ldr	r8, .L23+4
.L7:
	mov	r1, r6
	ldr	r0, [r8]
	bl	test_bit
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L23+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r0, #0
	bx	lr
.L24:
	.align	2
.L23:
	.word	MD_CHANGE_CLEAN
	.word	MD_CHANGE_PENDING
	.word	EAGAIN
	.size	md_allow_write, .-md_allow_write
	.comm	MD_CHANGE_PENDING,4,4
	.comm	MD_CHANGE_CLEAN,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
