	.file	"extr_buffer_head_io.c_ocfs2_write_block.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"(bh->b_blocknr = %llu, ci=%p)\n"
	.text
	.p2align 4
	.globl	ocfs2_write_block
	.type	ocfs2_write_block, @function
ocfs2_write_block:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	lea	rdi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	mov	rsi, QWORD PTR [rsi]
	call	mlog_entry@PLT
	mov	rax, QWORD PTR OCFS2_SUPER_BLOCK_BLKNO[rip]
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], rax
	setl	dil
	call	BUG_ON@PLT
	mov	rdi, rbp
	call	buffer_jbd@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	mov	rdi, r13
	call	ocfs2_is_hard_readonly@PLT
	test	rax, rax
	je	.L2
	mov	r13d, DWORD PTR EROFS[rip]
	neg	r13d
.L3:
	mov	edi, r13d
	call	mlog_exit@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
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	ocfs2_metadata_cache_io_lock@PLT
	mov	rdi, rbp
	call	lock_buffer@PLT
	mov	rdi, rbp
	call	set_buffer_uptodate@PLT
	mov	rdi, rbp
	call	clear_buffer_dirty@PLT
	mov	rdi, rbp
	call	get_bh@PLT
	mov	eax, DWORD PTR end_buffer_write_sync[rip]
	mov	edi, DWORD PTR WRITE[rip]
	mov	rsi, rbp
	mov	DWORD PTR 8[rbp], eax
	call	submit_bh@PLT
	mov	rdi, rbp
	call	wait_on_buffer@PLT
	mov	rdi, rbp
	call	buffer_uptodate@PLT
	test	rax, rax
	je	.L4
	mov	rsi, rbp
	mov	rdi, r12
	xor	r13d, r13d
	call	ocfs2_set_buffer_uptodate@PLT
.L5:
	mov	rdi, r12
	call	ocfs2_metadata_cache_io_unlock@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r13d, DWORD PTR EIO[rip]
	mov	rdi, rbp
	neg	r13d
	call	put_bh@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ocfs2_write_block, .-ocfs2_write_block
	.comm	end_buffer_write_sync,4,4
	.comm	WRITE,4,4
	.comm	OCFS2_SUPER_BLOCK_BLKNO,8,8
	.comm	EROFS,4,4
	.comm	EIO,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_buffer_head_io.c_ocfs2_write_block.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(bh->b_blocknr = %llu, ci=%p)\012\000"
	.text
	.align	2
	.global	ocfs2_write_block
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_write_block, %function
ocfs2_write_block:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r2
	mov	r4, r1
	mov	r5, r0
	ldr	r2, [r1]
	sub	sp, sp, #8
	asr	r3, r2, #31
	ldr	r0, .L8
	str	r6, [sp]
	bl	mlog_entry
	ldr	r3, .L8+4
	ldr	r0, [r4]
	ldr	r3, [r3]
	cmp	r0, r3
	movge	r0, #0
	movlt	r0, #1
	bl	BUG_ON
	mov	r0, r4
	bl	buffer_jbd
	bl	BUG_ON
	mov	r0, r5
	bl	ocfs2_is_hard_readonly
	subs	r5, r0, #0
	beq	.L2
	ldr	r3, .L8+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L3:
	mov	r0, r5
	bl	mlog_exit
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r6
	bl	ocfs2_metadata_cache_io_lock
	mov	r0, r4
	bl	lock_buffer
	mov	r0, r4
	bl	set_buffer_uptodate
	mov	r0, r4
	bl	clear_buffer_dirty
	mov	r0, r4
	bl	get_bh
	ldr	r3, .L8+12
	ldr	r2, .L8+16
	ldr	r3, [r3]
	mov	r1, r4
	ldr	r0, [r2]
	str	r3, [r4, #4]
	bl	submit_bh
	mov	r0, r4
	bl	wait_on_buffer
	mov	r0, r4
	bl	buffer_uptodate
	cmp	r0, #0
	beq	.L4
	mov	r1, r4
	mov	r0, r6
	bl	ocfs2_set_buffer_uptodate
.L5:
	mov	r0, r6
	bl	ocfs2_metadata_cache_io_unlock
	b	.L3
.L4:
	ldr	r3, .L8+20
	mov	r0, r4
	ldr	r5, [r3]
	rsb	r5, r5, #0
	bl	put_bh
	b	.L5
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	OCFS2_SUPER_BLOCK_BLKNO
	.word	EROFS
	.word	end_buffer_write_sync
	.word	WRITE
	.word	EIO
	.size	ocfs2_write_block, .-ocfs2_write_block
	.comm	end_buffer_write_sync,4,4
	.comm	WRITE,4,4
	.comm	OCFS2_SUPER_BLOCK_BLKNO,4,4
	.comm	EROFS,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
