	.file	"extr_journal.c_ocfs2_journal_toggle_dirty.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocfs2_journal_toggle_dirty, @function
ocfs2_journal_toggle_dirty:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR 8[rdi]
	mov	rbp, QWORD PTR 8[r13]
	call	mlog_entry_void@PLT
	mov	r14, QWORD PTR 0[rbp]
	mov	rdi, r14
	call	OCFS2_IS_VALID_DINODE@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	BUG_ON@PLT
	mov	edi, DWORD PTR 4[r14]
	call	le32_to_cpu@PLT
	mov	edi, eax
	test	r15d, r15d
	je	.L2
	or	edi, DWORD PTR OCFS2_JOURNAL_DIRTY_FL[rip]
	call	cpu_to_le32@PLT
	mov	DWORD PTR 4[r14], eax
	test	ebx, ebx
	jne	.L11
.L4:
	mov	rsi, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [r12]
	mov	rdx, r14
	call	ocfs2_compute_meta_ecc@PLT
	mov	edi, DWORD PTR 0[r13]
	call	INODE_CACHE@PLT
	mov	rdi, r12
	mov	rsi, rbp
	mov	edx, eax
	call	ocfs2_write_block@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L12
.L5:
	mov	edi, r12d
	call	mlog_exit@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR OCFS2_JOURNAL_DIRTY_FL[rip]
	not	eax
	and	edi, eax
	call	cpu_to_le32@PLT
	mov	DWORD PTR 4[r14], eax
	test	ebx, ebx
	je	.L4
.L11:
	mov	rdi, r14
	call	ocfs2_bump_recovery_generation@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, eax
	call	mlog_errno@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ocfs2_journal_toggle_dirty, .-ocfs2_journal_toggle_dirty
	.comm	OCFS2_JOURNAL_DIRTY_FL,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_journal.c_ocfs2_journal_toggle_dirty.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_journal_toggle_dirty, %function
ocfs2_journal_toggle_dirty:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, [r0, #4]
	mov	r9, r1
	ldr	r6, [r8, #4]
	mov	r7, r2
	mov	r4, r0
	bl	mlog_entry_void
	ldr	r5, [r6]
	mov	r0, r5
	bl	OCFS2_IS_VALID_DINODE
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r0, [r5, #4]
	bl	le32_to_cpu
	ldr	r3, .L13
	cmp	r9, #0
	ldr	r3, [r3]
	orrne	r0, r0, r3
	biceq	r0, r0, r3
	bl	cpu_to_le32
	cmp	r7, #0
	str	r0, [r5, #4]
	bne	.L11
.L4:
	mov	r2, r5
	ldr	r1, [r6]
	ldr	r0, [r4]
	bl	ocfs2_compute_meta_ecc
	ldr	r0, [r8]
	bl	INODE_CACHE
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	ocfs2_write_block
	subs	r4, r0, #0
	blt	.L12
.L5:
	mov	r0, r4
	bl	mlog_exit
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r0, r5
	bl	ocfs2_bump_recovery_generation
	b	.L4
.L12:
	bl	mlog_errno
	b	.L5
.L14:
	.align	2
.L13:
	.word	OCFS2_JOURNAL_DIRTY_FL
	.size	ocfs2_journal_toggle_dirty, .-ocfs2_journal_toggle_dirty
	.comm	OCFS2_JOURNAL_DIRTY_FL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
