	.file	"extr_inode.c_cow_file_range_async.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cow_file_range_async, @function
cow_file_range_async:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR [rdi]
	mov	QWORD PTR 56[rsp], r8
	mov	QWORD PTR 32[rsp], rsi
	call	btrfs_sb@PLT
	mov	esi, DWORD PTR SZ_512K[rip]
	mov	edi, r14d
	sub	edi, ebp
	mov	QWORD PTR 16[rsp], rax
	call	DIV_ROUND_UP@PLT
	mov	rdi, r12
	mov	ebx, eax
	call	BTRFS_I@PLT
	mov	edx, r14d
	mov	esi, ebp
	lea	rdi, 4[rax]
	call	unlock_extent@PLT
	mov	rdi, r12
	call	BTRFS_I@PLT
	mov	DWORD PTR 28[rsp], 1
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR BTRFS_INODE_NOCOMPRESS[rip], eax
	jne	.L17
.L2:
	xor	eax, eax
	call	memalloc_nofs_save@PLT
	mov	r8d, DWORD PTR GFP_KERNEL[rip]
	mov	edx, ebx
	xor	edi, edi
	mov	esi, DWORD PTR chunks[rip]
	mov	r15d, eax
	mov	DWORD PTR [rsp], r8d
	call	struct_size@PLT
	mov	r8d, DWORD PTR [rsp]
	mov	edi, eax
	mov	esi, r8d
	call	kvmalloc@PLT
	mov	edi, r15d
	mov	QWORD PTR 8[rsp], rax
	call	memalloc_nofs_restore@PLT
	cmp	QWORD PTR 8[rsp], 0
	je	.L18
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, ebx
	mov	rdx, QWORD PTR 8[rdi]
	mov	QWORD PTR [rsp], rdx
	call	atomic_set@PLT
	test	ebx, ebx
	mov	rdx, QWORD PTR [rsp]
	jle	.L8
	mov	rax, QWORD PTR 16[rsp]
	lea	r15, 16[rdx]
	mov	DWORD PTR [rsp], r14d
	mov	r14, r15
	add	rax, 4
	mov	QWORD PTR 40[rsp], rax
	lea	eax, -1[rbx]
	lea	rax, [rax+rax*2]
	sal	rax, 4
	lea	rax, 64[rdx+rax]
	mov	QWORD PTR 48[rsp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r12
	lea	r15, -4[r14]
	call	ihold@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR -16[r14], ebp
	mov	rdi, r14
	mov	QWORD PTR 16[r14], r12
	add	r14, 48
	mov	QWORD PTR -24[r14], rax
	mov	rax, QWORD PTR 32[rsp]
	mov	DWORD PTR -60[r14], ebx
	mov	QWORD PTR -40[r14], rax
	mov	eax, DWORD PTR 128[rsp]
	mov	DWORD PTR -56[r14], eax
	call	INIT_LIST_HEAD@PLT
	mov	r8d, DWORD PTR async_cow_free[rip]
	mov	rdi, r15
	mov	ecx, DWORD PTR async_cow_submit[rip]
	mov	edx, DWORD PTR async_cow_start[rip]
	mov	esi, DWORD PTR btrfs_delalloc_helper[rip]
	call	btrfs_init_work@PLT
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	edi, ebx
	sub	edi, ebp
	call	DIV_ROUND_UP@PLT
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdi, rax
	mov	rbp, rax
	call	atomic_add@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	rsi, r15
	mov	edi, DWORD PTR [rax]
	call	btrfs_queue_work@PLT
	add	QWORD PTR 0[r13], rbp
	lea	ebp, 1[rbx]
	cmp	r14, QWORD PTR 48[rsp]
	je	.L8
.L7:
	mov	eax, DWORD PTR 28[rsp]
	mov	ebx, DWORD PTR [rsp]
	test	eax, eax
	je	.L6
	mov	esi, DWORD PTR SZ_512K[rip]
	mov	edi, ebx
	add	esi, ebp
	sub	esi, 1
	call	min@PLT
	mov	ebx, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 56[rsp]
	mov	DWORD PTR [rax], 1
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L17:
	.cfi_restore_state
	mov	esi, DWORD PTR FORCE_COMPRESS[rip]
	mov	rdi, QWORD PTR 16[rsp]
	call	btrfs_test_opt@PLT
	mov	DWORD PTR 28[rsp], eax
	test	eax, eax
	jne	.L19
	mov	ebx, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	mov	DWORD PTR 28[rsp], 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rcx, QWORD PTR 32[rsp]
	mov	edx, r14d
	mov	esi, ebp
	mov	rdi, r12
	mov	r9, QWORD PTR PAGE_UNLOCK[rip]
	mov	r8d, DWORD PTR EXTENT_LOCKED[rip]
	or	r9, QWORD PTR PAGE_CLEAR_DIRTY[rip]
	or	r8d, DWORD PTR EXTENT_DELALLOC[rip]
	or	r9, QWORD PTR PAGE_SET_WRITEBACK[rip]
	or	r8d, DWORD PTR EXTENT_DELALLOC_NEW[rip]
	or	r9, QWORD PTR PAGE_END_WRITEBACK[rip]
	or	r8d, DWORD PTR EXTENT_DEFRAG[rip]
	or	r9, QWORD PTR PAGE_SET_ERROR[rip]
	or	r8d, DWORD PTR EXTENT_DO_ACCOUNTING[rip]
	call	extent_clear_unlock_delalloc@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 72
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.cfi_endproc
.LFE0:
	.size	cow_file_range_async, .-cow_file_range_async
	.comm	chunks,4,4
	.comm	btrfs_delalloc_helper,4,4
	.comm	async_cow_submit,4,4
	.comm	async_cow_start,4,4
	.comm	async_cow_free,4,4
	.comm	SZ_512K,4,4
	.comm	PAGE_UNLOCK,8,8
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SET_WRITEBACK,8,8
	.comm	PAGE_SET_ERROR,8,8
	.comm	PAGE_END_WRITEBACK,8,8
	.comm	PAGE_CLEAR_DIRTY,8,8
	.comm	GFP_KERNEL,4,4
	.comm	FORCE_COMPRESS,4,4
	.comm	EXTENT_LOCKED,4,4
	.comm	EXTENT_DO_ACCOUNTING,4,4
	.comm	EXTENT_DELALLOC_NEW,4,4
	.comm	EXTENT_DELALLOC,4,4
	.comm	EXTENT_DEFRAG,4,4
	.comm	ENOMEM,4,4
	.comm	BTRFS_INODE_NOCOMPRESS,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_inode.c_cow_file_range_async.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cow_file_range_async, %function
cow_file_range_async:
	@ args = 12, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r0
	sub	sp, sp, #44
	ldr	r0, [r0]
	mov	r6, r2
	mov	r4, r3
	str	r3, [sp, #28]
	str	r1, [sp, #24]
	ldr	r10, [sp, #84]
	bl	btrfs_sb
	mov	r3, r0
	ldr	r2, .L17
	sub	r0, r4, r6
	ldr	r1, [r2]
	str	r3, [sp, #16]
	bl	DIV_ROUND_UP
	mov	r3, r0
	mov	r0, r9
	str	r3, [sp, #12]
	bl	BTRFS_I
	mov	r2, r4
	mov	r1, r6
	add	r0, r0, #4
	bl	unlock_extent
	mov	r0, r9
	bl	BTRFS_I
	ldr	r3, .L17+4
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	moveq	r3, #1
	streq	r3, [sp, #32]
	bne	.L15
.L2:
	bl	memalloc_nofs_save
	ldr	r3, .L17+8
	ldr	r2, [sp, #12]
	ldr	r1, [r3]
	mov	r4, r0
	mov	r0, #0
	bl	struct_size
	ldr	r3, .L17+12
	ldr	r1, [r3]
	bl	kvmalloc
	mov	r5, r0
	str	r0, [sp, #20]
	mov	r0, r4
	bl	memalloc_nofs_restore
	cmp	r5, #0
	beq	.L16
	ldr	r5, [sp, #12]
	ldr	r3, [sp, #20]
	mov	r1, r5
	mov	r0, r3
	ldr	r4, [r3, #4]
	bl	atomic_set
	cmp	r5, #0
	ble	.L8
	ldr	r3, [sp, #16]
	mov	r7, #0
	add	r3, r3, #4
	ldr	fp, .L17+16
	add	r4, r4, #16
	str	r3, [sp, #36]
	b	.L7
.L6:
	mov	r0, r9
	bl	ihold
	ldr	r3, [sp, #20]
	str	r6, [r4, #-16]
	str	r3, [r4, #12]
	ldr	r3, [sp, #24]
	mov	r0, r4
	str	r3, [r4, #4]
	ldr	r3, [sp, #88]
	str	r9, [r4, #8]
	str	r3, [r4, #-8]
	str	r5, [r4, #-12]
	bl	INIT_LIST_HEAD
	ldr	r3, [fp]
	ldr	r2, .L17+20
	str	r3, [sp]
	ldr	r1, .L17+24
	ldr	r3, .L17+28
	sub	r8, r4, #4
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	mov	r0, r8
	bl	btrfs_init_work
	ldr	r3, .L17+32
	sub	r0, r5, r6
	ldr	r1, [r3]
	bl	DIV_ROUND_UP
	mov	r6, r0
	ldr	r1, [sp, #36]
	bl	atomic_add
	ldr	r3, [sp, #16]
	mov	r1, r8
	ldr	r0, [r3]
	bl	btrfs_queue_work
	ldr	r3, [r10]
	ldr	r2, [sp, #12]
	add	r7, r7, #1
	add	r0, r3, r6
	cmp	r2, r7
	add	r4, r4, #32
	add	r6, r5, #1
	str	r0, [r10]
	beq	.L8
.L7:
	ldr	r3, [sp, #32]
	cmp	r3, #0
	ldreq	r5, [sp, #28]
	beq	.L6
	ldr	r3, .L17
	ldr	r0, [sp, #28]
	ldr	r1, [r3]
	add	r1, r6, r1
	sub	r1, r1, #1
	bl	min
	mov	r5, r0
	b	.L6
.L8:
	mov	r3, #1
	mov	r0, #0
	ldr	r2, [sp, #80]
	str	r3, [r2]
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, .L17+36
	ldr	r0, [sp, #16]
	ldr	r1, [r3]
	bl	btrfs_test_opt
	subs	r3, r0, #0
	movne	r3, #1
	str	r3, [sp, #32]
	ldr	r3, [sp, #12]
	moveq	r3, #1
	str	r3, [sp, #12]
	b	.L2
.L16:
	ldr	r0, .L17+40
	ldr	r1, .L17+44
	ldr	r2, .L17+48
	ldr	r3, .L17+52
	ldr	lr, [r0]
	ldr	r2, [r2]
	ldr	ip, [r1]
	ldr	r3, [r3]
	orr	lr, lr, r2
	orr	ip, ip, r3
	ldr	r2, .L17+56
	ldr	r3, .L17+60
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	lr, lr, r2
	orr	ip, ip, r3
	ldr	r2, .L17+64
	ldr	r3, .L17+68
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	lr, lr, r2
	orr	ip, ip, r3
	ldr	r2, .L17+72
	ldr	r3, .L17+76
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	lr, lr, r2
	orr	ip, ip, r3
	mov	r1, r6
	ldr	r3, [sp, #24]
	mov	r0, r9
	stm	sp, {ip, lr}
	ldr	r2, [sp, #28]
	bl	extent_clear_unlock_delalloc
	ldr	r3, .L17+80
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	SZ_512K
	.word	BTRFS_INODE_NOCOMPRESS
	.word	chunks
	.word	GFP_KERNEL
	.word	async_cow_free
	.word	async_cow_start
	.word	btrfs_delalloc_helper
	.word	async_cow_submit
	.word	PAGE_SIZE
	.word	FORCE_COMPRESS
	.word	PAGE_UNLOCK
	.word	EXTENT_LOCKED
	.word	PAGE_CLEAR_DIRTY
	.word	EXTENT_DELALLOC
	.word	PAGE_SET_WRITEBACK
	.word	EXTENT_DELALLOC_NEW
	.word	PAGE_END_WRITEBACK
	.word	EXTENT_DEFRAG
	.word	PAGE_SET_ERROR
	.word	EXTENT_DO_ACCOUNTING
	.word	ENOMEM
	.size	cow_file_range_async, .-cow_file_range_async
	.comm	chunks,4,4
	.comm	btrfs_delalloc_helper,4,4
	.comm	async_cow_submit,4,4
	.comm	async_cow_start,4,4
	.comm	async_cow_free,4,4
	.comm	SZ_512K,4,4
	.comm	PAGE_UNLOCK,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SET_WRITEBACK,4,4
	.comm	PAGE_SET_ERROR,4,4
	.comm	PAGE_END_WRITEBACK,4,4
	.comm	PAGE_CLEAR_DIRTY,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FORCE_COMPRESS,4,4
	.comm	EXTENT_LOCKED,4,4
	.comm	EXTENT_DO_ACCOUNTING,4,4
	.comm	EXTENT_DELALLOC_NEW,4,4
	.comm	EXTENT_DELALLOC,4,4
	.comm	EXTENT_DEFRAG,4,4
	.comm	ENOMEM,4,4
	.comm	BTRFS_INODE_NOCOMPRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
