	.file	"extr_journal.c_write_one_transaction.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	write_one_transaction, @function
write_one_transaction:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR LIST_TOUCHED[rip]
	or	DWORD PTR 20[rsi], eax
	call	del_from_work_list@PLT
	cmp	QWORD PTR [rbx], 0
	jne	.L32
.L2:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L32:
	.cfi_restore_state
	lea	rdi, 16[rbx]
	call	atomic_read@PLT
	test	rax, rax
	je	.L2
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	je	.L2
	xor	r12d, r12d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbx, QWORD PTR 8[rbx]
	xor	eax, eax
	call	cond_resched@PLT
	test	rbx, rbx
	je	.L1
.L9:
	cmp	QWORD PTR [rbx], 0
	je	.L3
	cmp	QWORD PTR 16[rbx], 0
	je	.L3
	mov	rdi, rbx
	call	can_dirty@PLT
	test	rax, rax
	je	.L3
	mov	rdi, QWORD PTR 16[rbx]
	call	buffer_dirty@PLT
	test	rax, rax
	je	.L3
	mov	r13, QWORD PTR 16[rbx]
	mov	rdi, r13
	call	get_bh@PLT
	mov	rdi, r13
	call	lock_buffer@PLT
	cmp	QWORD PTR 16[rbx], 0
	je	.L4
	mov	rdi, rbx
	call	can_dirty@PLT
	test	rax, rax
	jne	.L33
.L4:
	mov	rdi, r13
	call	unlock_buffer@PLT
.L8:
	mov	rdi, r13
	call	put_bh@PLT
	jmp	.L3
.L33:
	mov	rdi, r13
	call	buffer_dirty@PLT
	test	rax, rax
	je	.L4
	mov	rdi, r13
	call	buffer_journal_dirty@PLT
	test	eax, eax
	je	.L7
	mov	rdi, r13
	call	buffer_journal_prepared@PLT
	test	rax, rax
	je	.L6
.L7:
	xor	eax, eax
	call	BUG@PLT
.L6:
	mov	ecx, DWORD PTR write_chunk[rip]
	xor	edx, edx
	mov	rsi, r13
	mov	rdi, rbp
	add	r12d, 1
	call	add_to_chunk@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	write_one_transaction, .-write_one_transaction
	.comm	write_chunk,4,4
	.comm	LIST_TOUCHED,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_write_one_transaction.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_one_transaction, %function
write_one_transaction:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	ip, .L46
	ldr	r3, [r1, #12]
	ldr	ip, [ip]
	mov	r5, r2
	orr	r3, r3, ip
	str	r3, [r1, #12]
	bl	del_from_work_list
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L44
.L2:
	mov	r6, #0
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L44:
	add	r0, r4, #8
	bl	atomic_read
	cmp	r0, #0
	beq	.L2
	ldr	r4, [r4, #4]
	cmp	r4, #0
	beq	.L2
	mov	r6, #0
	ldr	r7, .L46+4
	b	.L9
.L3:
	ldr	r4, [r4, #4]
	bl	cond_resched
	cmp	r4, #0
	beq	.L1
.L9:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L3
	mov	r0, r4
	bl	can_dirty
	cmp	r0, #0
	beq	.L3
	ldr	r0, [r4, #8]
	bl	buffer_dirty
	cmp	r0, #0
	beq	.L3
	ldr	r8, [r4, #8]
	mov	r0, r8
	bl	get_bh
	mov	r0, r8
	bl	lock_buffer
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L4
	mov	r0, r4
	bl	can_dirty
	cmp	r0, #0
	bne	.L45
.L4:
	mov	r0, r8
	bl	unlock_buffer
.L8:
	mov	r0, r8
	bl	put_bh
	b	.L3
.L45:
	mov	r0, r8
	bl	buffer_dirty
	cmp	r0, #0
	beq	.L4
	mov	r0, r8
	bl	buffer_journal_dirty
	cmp	r0, #0
	beq	.L7
	mov	r0, r8
	bl	buffer_journal_prepared
	cmp	r0, #0
	beq	.L6
.L7:
	bl	BUG
.L6:
	mov	r2, #0
	mov	r1, r8
	mov	r0, r5
	ldr	r3, [r7]
	add	r6, r6, #1
	bl	add_to_chunk
	b	.L8
.L47:
	.align	2
.L46:
	.word	LIST_TOUCHED
	.word	write_chunk
	.size	write_one_transaction, .-write_one_transaction
	.comm	write_chunk,4,4
	.comm	LIST_TOUCHED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
