	.file	"extr_file.c_btrfs_dirty_pages.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	btrfs_dirty_pages
	.type	btrfs_dirty_pages, @function
btrfs_dirty_pages:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, [r8+r9]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	i_size_read@PLT
	mov	rsi, r12
	mov	rcx, QWORD PTR 80[rsp]
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR [r14]
	mov	rdx, rax
	lea	rax, -1[rax+r13]
	neg	rdx
	and	rsi, rdx
	sub	rax, rsi
	and	rax, rdx
	lea	rdx, -1[rsi+rax]
	call	btrfs_set_extent_delalloc@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	test	r15, r15
	je	.L3
	lea	r15, [rbx+r15*8]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r14, QWORD PTR [rbx]
	add	rbx, 8
	mov	rdi, r14
	call	SetPageUptodate@PLT
	mov	rdi, r14
	call	ClearPageChecked@PLT
	mov	rdi, r14
	call	set_page_dirty@PLT
	cmp	r15, rbx
	jne	.L4
.L3:
	cmp	r13, QWORD PTR 8[rsp]
	ja	.L11
.L1:
	add	rsp, 24
	.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
.L11:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, rbp
	call	i_size_write@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	btrfs_dirty_pages, .-btrfs_dirty_pages
	.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_btrfs_dirty_pages.c"
	.text
	.align	2
	.global	btrfs_dirty_pages
	.syntax unified
	.arm
	.fpu softvfp
	.type	btrfs_dirty_pages, %function
btrfs_dirty_pages:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r10, r0
	mov	r0, r1
	ldr	r8, [sp, #32]
	mov	r6, r1
	mov	r5, r2
	mov	r4, r3
	ldr	r7, [sp, #36]
	bl	i_size_read
	ldr	ip, [r10]
	add	r7, r8, r7
	rsb	r3, ip, #0
	sub	r2, ip, #1
	and	r1, r3, r8
	add	r2, r2, r7
	sub	r2, r2, r1
	and	r2, r2, r3
	sub	r3, r1, #1
	add	r2, r2, r3
	mov	r9, r0
	ldr	r3, [sp, #40]
	mov	r0, r6
	bl	btrfs_set_extent_delalloc
	subs	r8, r0, #0
	bne	.L1
	cmp	r4, #0
	beq	.L3
	sub	r5, r5, #4
	add	r10, r5, r4, lsl #2
.L4:
	ldr	r4, [r5, #4]!
	mov	r0, r4
	bl	SetPageUptodate
	mov	r0, r4
	bl	ClearPageChecked
	mov	r0, r4
	bl	set_page_dirty
	cmp	r5, r10
	bne	.L4
.L3:
	cmp	r7, r9
	bhi	.L11
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r1, r7
	mov	r0, r6
	bl	i_size_write
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	btrfs_dirty_pages, .-btrfs_dirty_pages
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
