	.file	"extr_reada.c_reada_tree_block_flagged.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	reada_tree_block_flagged, @function
reada_tree_block_flagged:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	btrfs_find_create_tree_block@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L9
.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
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR EXTENT_BUFFER_READAHEAD[rip]
	mov	rsi, rbp
	call	set_bit@PLT
	mov	esi, DWORD PTR WAIT_PAGE_LOCK[rip]
	mov	edx, r13d
	mov	rdi, rbp
	call	read_extent_buffer_pages@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L10
	mov	edi, DWORD PTR EXTENT_BUFFER_CORRUPT[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	mov	rdi, rbp
	test	rax, rax
	jne	.L11
	call	extent_buffer_uptodate@PLT
	test	rax, rax
	je	.L5
	mov	QWORD PTR [rbx], rbp
	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
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	free_extent_buffer@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	free_extent_buffer_stale@PLT
	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
.L11:
	.cfi_restore_state
	call	free_extent_buffer_stale@PLT
	mov	r12d, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	reada_tree_block_flagged, .-reada_tree_block_flagged
	.comm	WAIT_PAGE_LOCK,4,4
	.comm	EXTENT_BUFFER_READAHEAD,4,4
	.comm	EXTENT_BUFFER_CORRUPT,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_reada.c_reada_tree_block_flagged.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reada_tree_block_flagged, %function
reada_tree_block_flagged:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	mov	r6, r3
	bl	btrfs_find_create_tree_block
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	movne	r4, #0
	beq	.L9
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L12
	mov	r1, r5
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, .L12+4
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [r3]
	bl	read_extent_buffer_pages
	subs	r4, r0, #0
	bne	.L10
	ldr	r3, .L12+8
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_bit
	subs	r4, r0, #0
	mov	r0, r5
	bne	.L11
	bl	extent_buffer_uptodate
	cmp	r0, #0
	strne	r5, [r6]
	bne	.L1
	mov	r0, r5
	bl	free_extent_buffer
	b	.L1
.L10:
	mov	r0, r5
	bl	free_extent_buffer_stale
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L11:
	bl	free_extent_buffer_stale
	ldr	r3, .L12+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	EXTENT_BUFFER_READAHEAD
	.word	WAIT_PAGE_LOCK
	.word	EXTENT_BUFFER_CORRUPT
	.word	EIO
	.size	reada_tree_block_flagged, .-reada_tree_block_flagged
	.comm	WAIT_PAGE_LOCK,4,4
	.comm	EXTENT_BUFFER_READAHEAD,4,4
	.comm	EXTENT_BUFFER_CORRUPT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
