	.file	"extr_ordered-data.c___btrfs_add_ordered_extent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__btrfs_add_ordered_extent, @function
__btrfs_add_ordered_extent:
.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, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rdx
	mov	QWORD PTR 16[rsp], r8
	call	btrfs_sb@PLT
	mov	rdi, rbp
	mov	QWORD PTR 24[rsp], rax
	call	BTRFS_I@PLT
	mov	rdi, rbp
	mov	rbx, QWORD PTR 16[rax]
	call	BTRFS_I@PLT
	mov	esi, DWORD PTR GFP_NOFS[rip]
	mov	edi, DWORD PTR btrfs_ordered_extent_cache[rip]
	mov	QWORD PTR [rsp], rax
	call	kmem_cache_zalloc@PLT
	test	rax, rax
	je	.L16
	mov	r15, rax
	mov	QWORD PTR 96[rax], r12
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, rbp
	mov	QWORD PTR 80[r15], r13
	mov	QWORD PTR 88[r15], rax
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 64[r15], r13
	mov	QWORD PTR 72[r15], rax
	call	igrab@PLT
	cmp	DWORD PTR BTRFS_ORDERED_IO_DONE[rip], r14d
	mov	QWORD PTR 48[r15], -1
	mov	DWORD PTR 56[r15], eax
	mov	eax, DWORD PTR 104[rsp]
	mov	DWORD PTR [r15], eax
	je	.L4
	cmp	DWORD PTR BTRFS_ORDERED_COMPLETE[rip], r14d
	je	.L4
	lea	rsi, 40[r15]
	mov	edi, r14d
	call	set_bit@PLT
.L4:
	mov	eax, DWORD PTR 96[rsp]
	test	eax, eax
	jne	.L17
.L5:
	mov	esi, 1
	lea	rdi, 36[r15]
	lea	r13, 4[r15]
	call	refcount_set@PLT
	lea	rdi, 32[r15]
	call	init_waitqueue_head@PLT
	lea	rdi, 28[r15]
	call	INIT_LIST_HEAD@PLT
	mov	rdi, r13
	call	INIT_LIST_HEAD@PLT
	lea	rdi, 24[r15]
	call	INIT_LIST_HEAD@PLT
	lea	rdi, 20[r15]
	call	init_completion@PLT
	lea	rdi, 16[r15]
	call	INIT_LIST_HEAD@PLT
	lea	rdi, 12[r15]
	call	INIT_LIST_HEAD@PLT
	mov	rsi, r15
	mov	rdi, rbp
	call	trace_btrfs_ordered_extent_add@PLT
	mov	rax, QWORD PTR [rsp]
	lea	r14, 4[rax]
	mov	rdi, r14
	call	spin_lock_irq@PLT
	mov	rax, QWORD PTR [rsp]
	lea	rdx, 8[r15]
	mov	rsi, r12
	lea	rdi, 8[rax]
	call	tree_insert@PLT
	test	rax, rax
	je	.L6
	mov	esi, DWORD PTR EEXIST[rip]
	mov	rdx, r12
	mov	rdi, rbp
	neg	esi
	call	ordered_data_tree_panic@PLT
.L6:
	mov	rdi, r14
	lea	r14, 4[rbx]
	call	spin_unlock_irq@PLT
	mov	rdi, r14
	call	spin_lock@PLT
	lea	rsi, 12[rbx]
	mov	rdi, r13
	call	list_add_tail@PLT
	mov	eax, DWORD PTR [rbx]
	add	eax, 1
	mov	DWORD PTR [rbx], eax
	cmp	eax, 1
	je	.L18
.L7:
	mov	rdi, r14
	call	spin_unlock@PLT
	mov	rdi, rbp
	call	BTRFS_I@PLT
	mov	rdi, rax
	call	spin_lock@PLT
	mov	rdi, rbp
	call	BTRFS_I@PLT
	mov	esi, 1
	mov	rdi, rax
	call	btrfs_mod_outstanding_extents@PLT
	mov	rdi, rbp
	call	BTRFS_I@PLT
	mov	rdi, rax
	call	spin_unlock@PLT
	add	rsp, 40
	.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	rax, QWORD PTR 24[rsp]
	mov	rsi, r13
	mov	edx, DWORD PTR 8[rax]
	lea	rdi, 12[rax]
	call	percpu_counter_add_batch@PLT
	mov	edi, DWORD PTR BTRFS_ORDERED_DIRECT[rip]
	lea	rsi, 40[r15]
	call	set_bit@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 40
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	r15, QWORD PTR 24[rsp]
	lea	r12, 8[rbx]
	mov	rdi, r15
	call	spin_lock@PLT
	mov	rdi, r12
	call	list_empty@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	BUG_ON@PLT
	mov	rdi, r12
	lea	rsi, 4[r15]
	call	list_add_tail@PLT
	mov	rdi, r15
	call	spin_unlock@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	__btrfs_add_ordered_extent, .-__btrfs_add_ordered_extent
	.comm	btrfs_ordered_extent_cache,4,4
	.comm	GFP_NOFS,4,4
	.comm	ENOMEM,4,4
	.comm	EEXIST,4,4
	.comm	BTRFS_ORDERED_IO_DONE,4,4
	.comm	BTRFS_ORDERED_DIRECT,4,4
	.comm	BTRFS_ORDERED_COMPLETE,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_ordered-data.c___btrfs_add_ordered_extent.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__btrfs_add_ordered_extent, %function
__btrfs_add_ordered_extent:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r0, [r0]
	mov	r6, r1
	mov	r10, r2
	mov	r7, r3
	bl	btrfs_sb
	mov	r9, r0
	mov	r0, r4
	bl	BTRFS_I
	mov	r3, r0
	mov	r0, r4
	ldr	r8, [r3, #12]
	bl	BTRFS_I
	ldr	r2, .L19
	ldr	r3, .L19+4
	mov	r5, r0
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	kmem_cache_zalloc
	subs	fp, r0, #0
	beq	.L16
	ldr	r3, [sp, #40]
	mov	r0, r4
	str	r3, [fp, #56]
	str	r6, [fp, #68]
	str	r10, [fp, #64]
	str	r7, [fp, #60]
	str	r7, [fp, #52]
	bl	igrab
	mvn	r2, #0
	ldr	r3, [sp, #52]
	ldr	r1, .L19+8
	str	r0, [fp, #48]
	ldr	r1, [r1]
	str	r3, [fp]
	ldr	r3, [sp, #44]
	str	r2, [fp, #44]
	cmp	r1, r3
	beq	.L4
	ldr	r2, .L19+12
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L4
	mov	r0, r3
	add	r1, fp, #40
	bl	set_bit
.L4:
	ldr	r3, [sp, #48]
	cmp	r3, #0
	bne	.L17
.L5:
	mov	r1, #1
	add	r0, fp, #36
	bl	refcount_set
	add	r0, fp, #32
	bl	init_waitqueue_head
	add	r7, fp, #4
	add	r0, fp, #28
	bl	INIT_LIST_HEAD
	mov	r0, r7
	bl	INIT_LIST_HEAD
	add	r0, fp, #24
	bl	INIT_LIST_HEAD
	add	r0, fp, #20
	bl	init_completion
	add	r0, fp, #16
	bl	INIT_LIST_HEAD
	add	r0, fp, #12
	bl	INIT_LIST_HEAD
	add	r5, r5, #4
	mov	r1, fp
	mov	r0, r4
	bl	trace_btrfs_ordered_extent_add
	mov	r0, r5
	bl	spin_lock_irq
	mov	r1, r6
	add	r2, fp, #8
	add	r0, r5, #4
	bl	tree_insert
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L19+16
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r4
	rsb	r1, r1, #0
	bl	ordered_data_tree_panic
.L6:
	mov	r0, r5
	add	r5, r8, #4
	bl	spin_unlock_irq
	mov	r0, r5
	bl	spin_lock
	mov	r0, r7
	add	r1, r8, #12
	bl	list_add_tail
	ldr	r3, [r8]
	add	r3, r3, #1
	cmp	r3, #1
	str	r3, [r8]
	beq	.L18
.L7:
	mov	r0, r5
	bl	spin_unlock
	mov	r0, r4
	bl	BTRFS_I
	bl	spin_lock
	mov	r0, r4
	bl	BTRFS_I
	mov	r1, #1
	bl	btrfs_mod_outstanding_extents
	mov	r0, r4
	bl	BTRFS_I
	bl	spin_unlock
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mov	r1, r7
	ldr	r2, [r9, #8]
	add	r0, r9, #12
	bl	percpu_counter_add_batch
	ldr	r2, .L19+20
	add	r1, fp, #40
	ldr	r0, [r2]
	bl	set_bit
	b	.L5
.L16:
	ldr	r3, .L19+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	add	r8, r8, #8
	mov	r0, r9
	bl	spin_lock
	mov	r0, r8
	bl	list_empty
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	mov	r0, r8
	add	r1, r9, #4
	bl	list_add_tail
	mov	r0, r9
	bl	spin_unlock
	b	.L7
.L20:
	.align	2
.L19:
	.word	GFP_NOFS
	.word	btrfs_ordered_extent_cache
	.word	BTRFS_ORDERED_IO_DONE
	.word	BTRFS_ORDERED_COMPLETE
	.word	EEXIST
	.word	BTRFS_ORDERED_DIRECT
	.word	ENOMEM
	.size	__btrfs_add_ordered_extent, .-__btrfs_add_ordered_extent
	.comm	btrfs_ordered_extent_cache,4,4
	.comm	GFP_NOFS,4,4
	.comm	ENOMEM,4,4
	.comm	EEXIST,4,4
	.comm	BTRFS_ORDERED_IO_DONE,4,4
	.comm	BTRFS_ORDERED_DIRECT,4,4
	.comm	BTRFS_ORDERED_COMPLETE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
