	.file	"extr_file.c_prepare_uptodate_page.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	prepare_uptodate_page, @function
prepare_uptodate_page:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	mov	r8d, edx
	lea	edx, -1[rax]
	and	edx, r8d
	or	edx, ecx
	je	.L10
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	PageUptodate@PLT
	test	eax, eax
	je	.L11
.L4:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	xor	edi, edi
	mov	rsi, rbp
	call	btrfs_readpage@PLT
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	call	lock_page@PLT
	mov	rdi, rbp
	call	PageUptodate@PLT
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 0[rbp], rax
	je	.L4
	mov	rdi, rbp
	call	unlock_page@PLT
	mov	eax, DWORD PTR EAGAIN[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	mov	rdi, rbp
	call	unlock_page@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	prepare_uptodate_page, .-prepare_uptodate_page
	.comm	PAGE_SIZE,4,4
	.comm	EIO,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_file.c_prepare_uptodate_page.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prepare_uptodate_page, %function
prepare_uptodate_page:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L13
	ldr	ip, [ip]
	sub	ip, ip, #1
	and	ip, ip, r2
	orrs	r3, ip, r3
	beq	.L10
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r0, r1
	mov	r4, r1
	bl	PageUptodate
	cmp	r0, #0
	beq	.L11
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	mov	r1, r4
	bl	btrfs_readpage
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r0, r4
	bl	lock_page
	mov	r0, r4
	bl	PageUptodate
	cmp	r0, #0
	beq	.L12
	ldr	r3, [r5]
	ldr	r2, [r4]
	cmp	r2, r3
	beq	.L4
	mov	r0, r4
	bl	unlock_page
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	mov	r0, #0
	bx	lr
.L12:
	mov	r0, r4
	bl	unlock_page
	ldr	r3, .L13+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	PAGE_SIZE
	.word	EAGAIN
	.word	EIO
	.size	prepare_uptodate_page, .-prepare_uptodate_page
	.comm	PAGE_SIZE,4,4
	.comm	EIO,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
